Skip to content

Commit 6a02cba

Browse files
committed
boot_syn.vh now goes under /build
1 parent 86be381 commit 6a02cba

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ obj_dir/
22
sim_build/
33
__pycache__/
44

5+
/build/
56
/poly94.json
67
/results.xml
78
*.bit

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ endif
6363

6464

6565
ulx3s.bit: boot/boot.vh ulx3s_out.config
66-
ecpbram --from boot/boot_syn.vh --to boot/boot.vh --in ulx3s_out.config --out ulx3s_final.config
66+
ecpbram --from build/boot_syn.vh --to boot/boot.vh --in ulx3s_out.config --out ulx3s_final.config
6767
ecppack ulx3s_final.config ulx3s.bit
6868

6969
ulx3s_out.config: poly94.json ulx3s_v20.lpf
@@ -74,8 +74,9 @@ ulx3s_out.config: poly94.json ulx3s_v20.lpf
7474
--report build/nextpnr-report.json \
7575
2>&1 | tee nextpnr.log
7676

77-
boot/boot_syn.vh:
78-
ecpbram --generate boot/boot_syn.vh --width 32 --depth 1024 --seed 0
77+
build/boot_syn.vh:
78+
mkdir -p build
79+
ecpbram --generate build/boot_syn.vh --width 32 --depth 1024 --seed 0
7980

8081
poly94.json: poly94.ys \
8182
lib/verilog-uart/rtl/uart_rx.v \
@@ -98,7 +99,7 @@ poly94.json: poly94.ys \
9899
rtl/ecp5/ecp5pll.sv \
99100
rtl/ip/sdram_pnru.v \
100101
rtl/ip/VexRiscv.v \
101-
boot/boot_syn.vh
102+
build/boot_syn.vh
102103
yosys -m ghdl poly94.ys | tee yosys.log
103104

104105
prog: ulx3s.bit

rtl/CPU_Rom.sv

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module CPU_Rom(
1212
initial
1313
begin
1414
`ifdef SYNTHESIS
15-
$readmemh("boot/boot_syn.vh", rom); // placeholder that is patched at later stage
15+
$readmemh("build/boot_syn.vh", rom); // placeholder that is patched at later stage
1616
// thus permitting ROM update without resynthesis
1717
`else
1818
$readmemh("boot/boot.vh", rom);

0 commit comments

Comments
 (0)