Skip to content

Commit b6d25e4

Browse files
committed
bring back EmuTest targets, compile fix for EmuTestResultStage
1 parent 0c8d9f6 commit b6d25e4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

platforms/VerilatedTester.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $(BUILD_DIR_DEPLOY)/libbismo_rt.so: hw sw script
6666
rtlib_emu: $(BUILD_DIR_DEPLOY)/libbismo_rt.so
6767

6868
# hw-sw cosimulation tests with extra HLS dependencies
69-
EmuTestVerifyHLSInstrEncoding:
69+
EmuTest%:
7070
mkdir -p $(BUILD_DIR)/$@; \
7171
$(SBT) $(SBT_FLAGS) "runMain bismo.EmuLibMain $@ $(BUILD_DIR)/$@ verilator $(DEBUG_CHISEL)"; \
7272
cp -rf $(CPPTEST_SRC_DIR)/$@.cpp $(BUILD_DIR)/$@; \

src/test/cosim/EmuTestResultStage.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@ void do_result_write(void * accel_buf, int ind_rhs, int ind_lhs, int num_rhs, in
6161
uint64_t base = sizeof(int32_t) * offset2D(ind_rhs, ind_lhs, num_lhs) + (uint64_t) accel_buf;
6262
dut->set_csr_dram_base(base);
6363
dut->set_csr_dram_skip(stride);
64-
dut->set_csr_waitComplete(0);
6564
dut->set_csr_waitCompleteBytes(0);
6665
dut->set_csr_resmem_addr(0);
6766
exec_and_wait();
6867
}
6968

7069
void do_result_waitcomplete(size_t nbytes) {
71-
dut->set_csr_waitComplete(1);
72-
dut->set_csr_waitCompleteBytes(nbytes);
70+
dut->set_csr_waitCompleteBytes(1);
7371
exec_and_wait();
7472
}
7573

0 commit comments

Comments
 (0)