Skip to content

Commit 74c3de7

Browse files
a-willHU90m
andcommitted
[otbn] Remove dependency on prim_generic:all
Add the choice of prims to the fusesoc call instead. Co-authored-by: Hugo McNally <[email protected]> Signed-off-by: Alexander Williams <[email protected]>
1 parent f1efd82 commit 74c3de7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

hw/ip/otbn/dv/smoke/run_smoke.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ $OTBN_UTIL/otbn_ld.py -o $SMOKE_BIN_DIR/smoke.elf $SMOKE_BIN_DIR/smoke_test.o ||
3434

3535
(cd $REPO_TOP;
3636
fusesoc --cores-root=. run --target=sim --setup --build \
37-
lowrisc:ip:otbn_top_sim --make_options="-j$(nproc)" || fail "HW Sim build failed")
37+
--mapping=lowrisc:prim_generic:all:0.1 lowrisc:ip:otbn_top_sim \
38+
--make_options="-j$(nproc)" || fail "HW Sim build failed")
3839

3940
RUN_LOG=`mktemp`
4041
readonly RUN_LOG

hw/ip/otbn/dv/verilator/otbn_top_sim.core

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ filesets:
1212
- lowrisc:dv:otbn_model
1313
- lowrisc:ip:otbn_tracer
1414
- lowrisc:ip:keymgr_pkg
15-
- lowrisc:prim_generic:all
1615
files_verilator:
1716
depend:
1817
- lowrisc:dv:otbn_memutil

hw/ip/otbn/dv/verilator/run-some.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def write_ninja(handle: TextIO,
8989
# The rule to build the Verilated system
9090
handle.write('rule fusesoc\n'
9191
f' command = fusesoc --cores-root={projdir_from_destdir} '
92-
'run --target=sim --setup --build lowrisc:ip:otbn_top_sim '
92+
'run --target=sim --setup --build '
93+
'--mapping=lowrisc:prim_generic:all:0.1 lowrisc:ip:otbn_top_sim '
9394
'>fusesoc.log 2>&1\n\n')
9495
handle.write('tb = build/lowrisc_ip_otbn_top_sim_0.1/'
9596
'sim-verilator/Votbn_top_sim\n\n')

0 commit comments

Comments
 (0)