@@ -12,7 +12,10 @@ all: \
12
12
bsram-pROM-tangnano20k.fs bsram-SDPB-tangnano20k.fs bsram-SP-tangnano20k.fs \
13
13
bsram-DPB-tangnano20k.fs bsram-pROMX9-tangnano20k.fs bsram-SDPX9B-tangnano20k.fs \
14
14
bsram-SPX9-tangnano20k.fs bsram-DPX9B-tangnano20k.fs \
15
- femto-riscv-15-tangnano20k.fs femto-riscv-16-tangnano20k.fs femto-riscv-16-tangnano20k.fs \
15
+ femto-riscv-15-tangnano20k.fs femto-riscv-16-tangnano20k.fs femto-riscv-18-tangnano20k.fs \
16
+ dsp-mult36x36-tangnano20k.fs dsp-padd9-tangnano20k.fs dsp-padd18-tangnano20k.fs \
17
+ dsp-mult9x9-tangnano20k.fs dsp-alu54d-tangnano20k.fs dsp-multalu18x18-tangnano20k.fs \
18
+ dsp-multalu36x18-tangnano20k.fs dsp-multaddalu18x18-tangnano20k.fs \
16
19
\
17
20
blinky-primer20k.fs shift-primer20k.fs blinky-tbuf-primer20k.fs blinky-oddr-primer20k.fs \
18
21
blinky-osc-primer20k.fs tlvds-primer20k.fs elvds-primer20k.fs oddr-tlvds-primer20k.fs \
@@ -22,6 +25,10 @@ all: \
22
25
bsram-pROM-primer20k.fs bsram-SDPB-primer20k.fs bsram-SP-primer20k.fs \
23
26
bsram-DPB-primer20k.fs bsram-pROMX9-primer20k.fs bsram-SDPX9B-primer20k.fs \
24
27
bsram-SPX9-primer20k.fs bsram-DPX9B-primer20k.fs \
28
+ femto-riscv-15-primer20k.fs femto-riscv-16-primer20k.fs femto-riscv-18-primer20k.fs \
29
+ dsp-mult36x36-primer20k.fs dsp-padd9-primer20k.fs dsp-padd18-primer20k.fs \
30
+ dsp-mult9x9-primer20k.fs dsp-alu54d-primer20k.fs dsp-multalu18x18-primer20k.fs \
31
+ dsp-multalu36x18-primer20k.fs dsp-multaddalu18x18-primer20k.fs \
25
32
\
26
33
blinky-tangnano.fs shift-tangnano.fs blinky-tbuf-tangnano.fs blinky-oddr-tangnano.fs \
27
34
blinky-osc-tangnano.fs elvds-tangnano.fs oddr-elvds-tangnano.fs pll-nanolcd-tangnano.fs \
@@ -46,7 +53,10 @@ all: \
46
53
ides16-tangnano4k.fs \
47
54
ides4-tangnano4k.fs ivideo-tangnano4k.fs ides8-tangnano4k.fs ides10-tangnano4k.fs \
48
55
oser10-tlvds-tangnano4k.fs \
49
- femto-riscv-15-tangnano4k.fs femto-riscv-16-tangnano4k.fs femto-riscv-16-tangnano4k.fs \
56
+ femto-riscv-15-tangnano4k.fs femto-riscv-16-tangnano4k.fs femto-riscv-18-tangnano4k.fs \
57
+ dsp-mult36x36-tangnano4k.fs dsp-padd9-tangnano4k.fs dsp-padd18-tangnano4k.fs \
58
+ dsp-mult9x9-tangnano4k.fs dsp-alu54d-tangnano4k.fs dsp-multalu18x18-tangnano4k.fs \
59
+ dsp-multalu36x18-tangnano4k.fs dsp-multaddalu18x18-tangnano4k.fs \
50
60
\
51
61
blinky-tangnano9k.fs shift-tangnano9k.fs blinky-tbuf-tangnano9k.fs blinky-oddr-tangnano9k.fs \
52
62
blinky-osc-tangnano9k.fs tlvds-tangnano9k.fs elvds-tangnano9k.fs oddr-tlvds-tangnano9k.fs \
58
68
bsram-SPX9-tangnano9k.fs bsram-DPX9B-tangnano9k.fs \
59
69
oser10-elvds-tangnano9k.fs \
60
70
femto-riscv-15-tangnano9k.fs femto-riscv-16-tangnano9k.fs femto-riscv-18-tangnano9k.fs \
71
+ dsp-mult36x36-tangnano9k.fs dsp-padd9-tangnano9k.fs dsp-padd18-tangnano9k.fs \
72
+ dsp-mult9x9-tangnano9k.fs dsp-alu54d-tangnano9k.fs dsp-multalu18x18-tangnano9k.fs \
73
+ dsp-multalu36x18-tangnano9k.fs dsp-multaddalu18x18-tangnano9k.fs \
61
74
\
62
75
blinky-szfpga.fs shift-szfpga.fs blinky-tbuf-szfpga.fs blinky-oddr-szfpga.fs \
63
76
blinky-osc-szfpga.fs tlvds-szfpga.fs elvds-szfpga.fs oddr-tlvds-szfpga.fs \
@@ -68,19 +81,29 @@ all: \
68
81
bsram-pROM-szfpga.fs bsram-SDPB-szfpga.fs bsram-SP-szfpga.fs \
69
82
bsram-pROMX9-szfpga.fs bsram-SDPX9B-szfpga.fs \
70
83
bsram-SPX9-szfpga.fs \
84
+ femto-riscv-15-szfpga.fs femto-riscv-16-szfpga.fs femto-riscv-18-szfpga.fs \
85
+ dsp-mult36x36-szfpga.fs dsp-padd9-szfpga.fs dsp-padd18-szfpga.fs \
86
+ dsp-mult9x9-szfpga.fs dsp-alu54d-szfpga.fs dsp-multalu18x18-szfpga.fs \
87
+ dsp-multalu36x18-szfpga.fs dsp-multaddalu18x18-szfpga.fs \
71
88
\
72
89
blinky-tec0117.fs shift-tec0117.fs blinky-tbuf-tec0117.fs blinky-oddr-tec0117.fs \
73
90
blinky-osc-tec0117.fs tlvds-tec0117.fs elvds-tec0117.fs oddr-tlvds-tec0117.fs \
74
91
oddr-elvds-tec0117.fs blinky-pll-tec0117.fs oser16-tec0117.fs attosoc-tec0117.fs \
75
92
oser4-tec0117.fs ovideo-tec0117.fs oser8-tec0117.fs oser10-tec0117.fs \
76
93
ides16-tec0117.fs \
77
94
ides4-tec0117.fs ivideo-tec0117.fs ides8-tec0117.fs ides10-tec0117.fs \
95
+ dsp-mult36x36-tec0117.fs dsp-padd9-tec0117.fs dsp-padd18-tec0117.fs \
96
+ dsp-mult9x9-tec0117.fs dsp-alu54d-tec0117.fs dsp-multalu18x18-tec0117.fs \
97
+ dsp-multalu36x18-tec0117.fs dsp-multaddalu18x18-tec0117.fs \
78
98
\
79
99
blinky-runber.fs shift-runber.fs blinky-tbuf-runber.fs blinky-oddr-runber.fs \
80
100
blinky-osc-runber.fs tlvds-runber.fs elvds-runber.fs oddr-tlvds-runber.fs \
81
101
oddr-elvds-runber.fs blinky-pll-runber.fs \
82
102
oser4-runber.fs ovideo-runber.fs oser8-runber.fs oser10-runber.fs \
83
- ides4-runber.fs ivideo-runber.fs ides8-runber.fs ides10-runber.fs
103
+ ides4-runber.fs ivideo-runber.fs ides8-runber.fs ides10-runber.fs \
104
+ dsp-mult36x36-runber.fs dsp-padd9-runber.fs dsp-padd18-runber.fs \
105
+ dsp-mult9x9-runber.fs dsp-alu54d-runber.fs dsp-multalu18x18-runber.fs \
106
+ dsp-multalu36x18-runber.fs dsp-multaddalu18x18-runber.fs
84
107
85
108
unpacked:\
86
109
blinky-tangnano20k-unpacked.v shift-tangnano20k-unpacked.v \
@@ -173,7 +196,8 @@ unpacked:\
173
196
elvds-runber-unpacked.v oddr-tlvds-runber-unpacked.v oddr-elvds-runber-unpacked.v \
174
197
blinky-pll-runber-unpacked.v oser4-runber-unpacked.v ovideo-runber-unpacked.v \
175
198
oser8-runber-unpacked.v oser10-runber-unpacked.v ides4-runber-unpacked.v \
176
- ivideo-runber-unpacked.v ides8-runber-unpacked.v ides10-runber-unpacked.v
199
+ ivideo-runber-unpacked.v ides8-runber-unpacked.v ides10-runber-unpacked.v
200
+
177
201
clean:
178
202
rm -f *.json *.fs *-unpacked.v
179
203
@@ -208,7 +232,7 @@ attosoc-tangnano20k-synth.json: attosoc/attosoc.v attosoc/picorv32.v
208
232
$(NEXTPNR) --json $< --write $@ --device GW2A-LV18PG256C8/I7 --vopt family=GW2A-18 --vopt cst=primer20k.cst
209
233
210
234
%-primer20k-synth.json: %.v
211
- $(YOSYS) -D LEDS_NR=6 -D OSC_TYPE_OSC -D INV_BTN=0 -p "read_verilog $^; synth_gowin -json $@"
235
+ $(YOSYS) -D LEDS_NR=6 -D OSC_TYPE_OSC -D INV_BTN=0 -D CPU_FREQ=27 -D BAUD_RATE=115200 - p "read_verilog $^; synth_gowin -json $@"
212
236
213
237
pll-nanolcd-primer20k-synth.json: pll/GW2A-18-dyn.vh pll-nanolcd/TOP.v pll-nanolcd/VGAMod.v
214
238
$(YOSYS) -D INV_BTN=0 -p "read_verilog $^; synth_gowin -json $@"
@@ -299,7 +323,7 @@ bsram-%-tangnano9k-synth.json: pll/GW1N-9C-dyn.vh %-image-rom.v %-video-ram.v %.
299
323
$(NEXTPNR) --json $< --write $@ --device GW1NR-LV9LQ144PC6/I5 --vopt family=GW1N-9 --vopt cst=szfpga.cst
300
324
301
325
%-szfpga-synth.json: %.v
302
- $(YOSYS) -D LEDS_NR=4 -D OSC_TYPE_OSC -D INV_BTN=0 -p "read_verilog $^; synth_gowin -json $@"
326
+ $(YOSYS) -D LEDS_NR=4 -D OSC_TYPE_OSC -D INV_BTN=0 -D CPU_FREQ=50 -D BAUD_RATE=115200 - p "read_verilog $^; synth_gowin -json $@"
303
327
304
328
blinky-pll-szfpga-synth.json: pll/GW1N-9-dyn.vh blinky-pll.v
305
329
$(YOSYS) -D INV_BTN=0 -D LEDS_NR=4 -p "read_verilog $^; synth_gowin -json $@"
@@ -316,7 +340,7 @@ bsram-%-szfpga-synth.json: pll/GW1N-9-dyn.vh %-image-rom.v %-video-ram.v %.v
316
340
$(NEXTPNR) --json $< --write $@ --device GW1NR-LV9QN88C6/I5 --vopt family=GW1N-9 --vopt cst=tec0117.cst
317
341
318
342
%-tec0117-synth.json: %.v
319
- $(YOSYS) -D LEDS_NR=8 -D OSC_TYPE_OSC -D INV_BTN=0 -p "read_verilog $^; synth_gowin -json $@"
343
+ $(YOSYS) -D LEDS_NR=8 -D OSC_TYPE_OSC -D INV_BTN=0 -D CPU_FREQ=12 -D BAUD_RATE=115200 - p "read_verilog $^; synth_gowin -json $@"
320
344
321
345
blinky-pll-tec0117-synth.json: pll/GW1N-9-dyn.vh blinky-pll.v
322
346
$(YOSYS) -D INV_BTN=0 -D LEDS_NR=8 -p "read_verilog $^; synth_gowin -json $@"
@@ -330,7 +354,7 @@ blinky-pll-tec0117-synth.json: pll/GW1N-9-dyn.vh blinky-pll.v
330
354
$(NEXTPNR) --json $< --write $@ --device GW1N-UV4LQ144C6/I5 --vopt cst=runber.cst
331
355
332
356
%-runber-synth.json: %.v
333
- $(YOSYS) -D LEDS_NR=8 -D OSC_TYPE_OSC -D INV_BTN=0 -p "read_verilog $^; synth_gowin -json $@"
357
+ $(YOSYS) -D LEDS_NR=8 -D OSC_TYPE_OSC -D INV_BTN=0 -D FORCE_BRAM -D CPU_FREQ=12 -D BAUD_RATE=115200 - p "read_verilog $^; synth_gowin -json $@"
334
358
335
359
blinky-pll-runber-synth.json: pll/GW1N-4-dyn.vh blinky-pll.v
336
360
$(YOSYS) -D INV_BTN=0 -D LEDS_NR=8 -p "read_verilog $^; synth_gowin -json $@"
0 commit comments