Skip to content

Commit

Permalink
[FIFO] call get_simkernel_so for xsicpp FIFO sizing too
Browse files Browse the repository at this point in the history
  • Loading branch information
maltanar authored and auphelia committed Jan 8, 2025
1 parent afda943 commit 6522c49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/finn/core/rtlsim_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def rtlsim_exec_cppxsi(model, execution_context, dummy_data_mode=False, postproc
"TRACE_CMD": "" if trace_file is None else "top->trace_all();",
# code to post-process final sim status to extract more data
"POSTPROC_CPP": postproc_cpp,
# sim kernel .so to use (depends on Vivado version)
"SIMKERNEL_SO": pyxsi_utils.get_simkernel_so(),
}
for key, val in template_dict.items():
fifosim_cpp_template = fifosim_cpp_template.replace(f"@{key}@", str(val))
Expand Down
2 changes: 1 addition & 1 deletion src/finn/qnn-data/cpp/xsi_simdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void reset() {

int main(int argc, char *argv[]) {
// load pre-compiled rtl simulation
std::string simengine_libname = "librdi_simulator_kernel.so";
std::string simengine_libname = "@SIMKERNEL_SO@";
std::string design_libname = "xsim.dir/@TOP_MODULE_NAME@/xsimk.so";
top = new Xsi::Loader(design_libname, simengine_libname);
s_xsi_setup_info info;
Expand Down

0 comments on commit 6522c49

Please sign in to comment.