Skip to content

Commit 45f8cc7

Browse files
authored
[TB] Reorganize testbench code into services and mem export files (#206)
* Move MCU SRAM (DCCM, I-Cache) to dedicated VeeR export; move other logic to tb_services * Rename CSS CLK FREQ override var in Makefile
1 parent 695d7db commit 45f8cc7

File tree

10 files changed

+1188
-1169
lines changed

10 files changed

+1188
-1169
lines changed

src/integration/config/compile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ targets:
130130
- $COMPILE_ROOT/testbench/prim_generic_otp.sv
131131
- $COMPILE_ROOT/testbench/lc_ctrl_bfm.sv
132132
- $COMPILE_ROOT/testbench/caliptra_ss_tb_cmd_list.svh
133+
- $COMPILE_ROOT/testbench/caliptra_ss_veer_sram_export.sv
133134
- $COMPILE_ROOT/testbench/fc_lcc_tb_services.sv
134135
- $COMPILE_ROOT/testbench/caliptra_ss_top_tb_services.sv
135136
- $COMPILE_ROOT/testbench/caliptra_ss_top_tb.sv

src/integration/test_suites/mcu_test_rom_i3c_rand_streaming_boot/mcu_test_rom_i3c_rand_streaming_boot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pre-exec: |
44
echo "Running pre_exec for test mcu_test_rom_i3c_rand_streaming_boot "
55
echo "FIXME: Test is running at 1000MHz"
66
CALIPTRA_ROOT=$CALIPTRA_SS_ROOT/third_party/caliptra-rtl make -f $CALIPTRA_SS_ROOT/third_party/caliptra-rtl/tools/scripts/Makefile TEST_DIR=$CALIPTRA_SS_ROOT/src/integration/test_suites/cptra_test_rom_streaming_boot CALIPTRA_INTERNAL_TRNG=0 TESTNAME=cptra_test_rom_streaming_boot program.hex
7-
make -f $CALIPTRA_SS_ROOT/tools/scripts/Makefile TESTNAME=mcu_test_rom_i3c_rand_streaming_boot CSS_CLK_BUILD_FREQ=1000 mcu_program.hex
7+
make -f $CALIPTRA_SS_ROOT/tools/scripts/Makefile TESTNAME=mcu_test_rom_i3c_rand_streaming_boot CALIPTRA_SS_CLK_FREQ=1000 mcu_program.hex
88
cp $CALIPTRA_SS_ROOT/src/integration/test_suites/mcu_test_rom_i3c_rand_streaming_boot/fw_update.hex .
99
cp $CALIPTRA_SS_ROOT/src/integration/test_suites/mcu_test_rom_i3c_rand_streaming_boot/fw_update.size .
1010
plusargs:

src/integration/test_suites/mcu_test_rom_i3c_reg_rd_wr/mcu_test_rom_i3c_reg_rd_wr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pre-exec: |
44
echo "Running pre_exec for test mcu_test_rom_i3c_reg_rd_wr "
55
echo "FIXME: Test is running at 1000MHz"
66
CALIPTRA_ROOT=$CALIPTRA_SS_ROOT/third_party/caliptra-rtl make -f $CALIPTRA_SS_ROOT/third_party/caliptra-rtl/tools/scripts/Makefile TEST_DIR=$CALIPTRA_SS_ROOT/src/integration/test_suites/cptra_test_i3c_reg_rd_wr AUX_HEADER_FILES=$CALIPTRA_SS_ROOT/src/integration/rtl/soc_address_map.h CALIPTRA_INTERNAL_TRNG=0 TESTNAME=cptra_test_i3c_reg_rd_wr program.hex
7-
make -f $CALIPTRA_SS_ROOT/tools/scripts/Makefile TESTNAME=mcu_test_rom_i3c_reg_rd_wr CSS_CLK_BUILD_FREQ=1000 mcu_program.hex
7+
make -f $CALIPTRA_SS_ROOT/tools/scripts/Makefile TESTNAME=mcu_test_rom_i3c_reg_rd_wr CALIPTRA_SS_CLK_FREQ=1000 mcu_program.hex
88
cp $CALIPTRA_SS_ROOT/src/integration/test_suites/mcu_test_rom_i3c_reg_rd_wr/fw_update.hex .
99
cp $CALIPTRA_SS_ROOT/src/integration/test_suites/mcu_test_rom_i3c_reg_rd_wr/fw_update.size .
1010
plusargs:

src/integration/test_suites/mcu_test_rom_i3c_streaming_boot/mcu_test_rom_i3c_streaming_boot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pre-exec: |
44
echo "Running pre_exec for test mcu_test_rom_i3c_streaming_boot "
55
echo "FIXME: Test is running at 1000MHz"
66
CALIPTRA_ROOT=$CALIPTRA_SS_ROOT/third_party/caliptra-rtl make -f $CALIPTRA_SS_ROOT/third_party/caliptra-rtl/tools/scripts/Makefile TEST_DIR=$CALIPTRA_SS_ROOT/src/integration/test_suites/cptra_test_rom_streaming_boot AUX_HEADER_FILES=$CALIPTRA_SS_ROOT/src/integration/rtl/soc_address_map.h CALIPTRA_INTERNAL_TRNG=0 TESTNAME=cptra_test_rom_streaming_boot program.hex
7-
make -f $CALIPTRA_SS_ROOT/tools/scripts/Makefile TESTNAME=mcu_test_rom_i3c_streaming_boot CSS_CLK_BUILD_FREQ=1000 mcu_program.hex
7+
make -f $CALIPTRA_SS_ROOT/tools/scripts/Makefile TESTNAME=mcu_test_rom_i3c_streaming_boot CALIPTRA_SS_CLK_FREQ=1000 mcu_program.hex
88
cp $CALIPTRA_SS_ROOT/src/integration/test_suites/mcu_test_rom_i3c_streaming_boot/fw_update.hex .
99
cp $CALIPTRA_SS_ROOT/src/integration/test_suites/mcu_test_rom_i3c_streaming_boot/fw_update.size .
1010
plusargs:

0 commit comments

Comments
 (0)