Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/icestorm/Makefile b/icestorm/Makefile
- index d5afa79..9a724e1 100644
- --- a/icestorm/Makefile
- +++ b/icestorm/Makefile
- @@ -18,7 +18,7 @@ PIN_DEF = up5k_6502_top.pcf
- SDC = up5k_6502_top.sdc
- DEVICE = up5k
- -YOSYS = /usr/local/bin/yosys
- +YOSYS = yosys
- NEXTPNR = nextpnr-ice40
- #NEXTPNR_ARGS = --pre-pack $(SDC) --ignore-loops
- NEXTPNR_ARGS = --pre-pack $(SDC)
- @@ -27,7 +27,7 @@ ICETIME = icetime
- ICEPROG = iceprog
- CDCPROG = cdc_prog
- VERILATOR = verilator
- -TECH_LIB = /usr/local/share/yosys/ice40/cells_sim.v
- +TECH_LIB =`yosys-config --datdir/ice40/cells_sim.v`
- HEXDUMP = hexdump
- HEXDUMP_ARGS = -v -e '1/1 "%02x " "\n"'
- diff --git a/icestorm/up5k_6502_top.pcf b/icestorm/up5k_6502_top.pcf
- index b39ecb6..c1e4f4c 100644
- --- a/icestorm/up5k_6502_top.pcf
- +++ b/icestorm/up5k_6502_top.pcf
- @@ -1,29 +1,28 @@
- -set_io gpio_o[0] 6
- -set_io gpio_o[1] 9
- -set_io gpio_o[2] 11
- -set_io gpio_o[3] 18
- -set_io gpio_o[4] 19
- -set_io gpio_o[5] 13
- -set_io gpio_o[6] 21
- -set_io gpio_o[7] 12
- +set_io gpio_o[0] 26 # LED 1
- +set_io gpio_o[1] 27 # LED 2
- +set_io gpio_o[2] 25 # LED 3
- +set_io gpio_o[3] 23 # LED 4
- +set_io gpio_o[4] 21 # LED 5
- +set_io gpio_o[5] 11 # LED Red
- +set_io gpio_o[6] 37 # LED Green
- +set_io gpio_o[7] 48 # P1A.8
- -set_io gpio_i[0] 37
- -set_io gpio_i[1] 31
- -set_io gpio_i[2] 35
- -set_io gpio_i[3] 32
- -set_io gpio_i[4] 27
- -set_io gpio_i[5] 26
- -set_io gpio_i[6] 25
- -set_io gpio_i[7] 23
- +set_io gpio_i[0] 20 # Btn1
- +set_io gpio_i[1] 19 # Btn2
- +set_io gpio_i[2] 18 # Btn3
- +set_io gpio_i[3] 4 # P1A.1
- +set_io gpio_i[4] 2 # P!A.2
- +set_io gpio_i[5] 47 # P1A.3
- +set_io gpio_i[6] 45 # P1A.4
- +set_io gpio_i[7] 3 # P1A.5
- -set_io RX 3
- -set_io TX 4
- +set_io RX 6
- +set_io TX 9
- -set_io tst_rst 2
- -set_io tst_clk 46
- -set_io tst_irq 47
- +set_io tst_rst 43 # P2A.1
- +set_io tst_clk 38 # P2A.2
- +set_io tst_irq 34 # P2A.3
- set_io RGB0 39
- set_io RGB1 40
- set_io RGB2 41
- -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement