Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. diff --git a/icestorm/Makefile b/icestorm/Makefile
  2. index d5afa79..9a724e1 100644
  3. --- a/icestorm/Makefile
  4. +++ b/icestorm/Makefile
  5. @@ -18,7 +18,7 @@ PIN_DEF = up5k_6502_top.pcf
  6. SDC = up5k_6502_top.sdc
  7. DEVICE = up5k
  8.  
  9. -YOSYS = /usr/local/bin/yosys
  10. +YOSYS = yosys
  11. NEXTPNR = nextpnr-ice40
  12. #NEXTPNR_ARGS = --pre-pack $(SDC) --ignore-loops
  13. NEXTPNR_ARGS = --pre-pack $(SDC)
  14. @@ -27,7 +27,7 @@ ICETIME = icetime
  15. ICEPROG = iceprog
  16. CDCPROG = cdc_prog
  17. VERILATOR = verilator
  18. -TECH_LIB = /usr/local/share/yosys/ice40/cells_sim.v
  19. +TECH_LIB =`yosys-config --datdir/ice40/cells_sim.v`
  20. HEXDUMP = hexdump
  21. HEXDUMP_ARGS = -v -e '1/1 "%02x " "\n"'
  22.  
  23. diff --git a/icestorm/up5k_6502_top.pcf b/icestorm/up5k_6502_top.pcf
  24. index b39ecb6..c1e4f4c 100644
  25. --- a/icestorm/up5k_6502_top.pcf
  26. +++ b/icestorm/up5k_6502_top.pcf
  27. @@ -1,29 +1,28 @@
  28. -set_io gpio_o[0] 6
  29. -set_io gpio_o[1] 9
  30. -set_io gpio_o[2] 11
  31. -set_io gpio_o[3] 18
  32. -set_io gpio_o[4] 19
  33. -set_io gpio_o[5] 13
  34. -set_io gpio_o[6] 21
  35. -set_io gpio_o[7] 12
  36. +set_io gpio_o[0] 26 # LED 1
  37. +set_io gpio_o[1] 27 # LED 2
  38. +set_io gpio_o[2] 25 # LED 3
  39. +set_io gpio_o[3] 23 # LED 4
  40. +set_io gpio_o[4] 21 # LED 5
  41. +set_io gpio_o[5] 11 # LED Red
  42. +set_io gpio_o[6] 37 # LED Green
  43. +set_io gpio_o[7] 48 # P1A.8
  44.  
  45. -set_io gpio_i[0] 37
  46. -set_io gpio_i[1] 31
  47. -set_io gpio_i[2] 35
  48. -set_io gpio_i[3] 32
  49. -set_io gpio_i[4] 27
  50. -set_io gpio_i[5] 26
  51. -set_io gpio_i[6] 25
  52. -set_io gpio_i[7] 23
  53. +set_io gpio_i[0] 20 # Btn1
  54. +set_io gpio_i[1] 19 # Btn2
  55. +set_io gpio_i[2] 18 # Btn3
  56. +set_io gpio_i[3] 4 # P1A.1
  57. +set_io gpio_i[4] 2 # P!A.2
  58. +set_io gpio_i[5] 47 # P1A.3
  59. +set_io gpio_i[6] 45 # P1A.4
  60. +set_io gpio_i[7] 3 # P1A.5
  61.  
  62. -set_io RX 3
  63. -set_io TX 4
  64. +set_io RX 6
  65. +set_io TX 9
  66.  
  67. -set_io tst_rst 2
  68. -set_io tst_clk 46
  69. -set_io tst_irq 47
  70. +set_io tst_rst 43 # P2A.1
  71. +set_io tst_clk 38 # P2A.2
  72. +set_io tst_irq 34 # P2A.3
  73.  
  74. set_io RGB0 39
  75. set_io RGB1 40
  76. set_io RGB2 41
  77. -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement