You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to call sim_t function from spike.cc , in my cpp(c++) wrapper API (provided riscv-isa-sim build as input for compilation) to create shared object, which I will call in System verilog (SV) using DPI call. Idea is to use SPIKE source functions in SV testbench to get SPIKE results for an instruction as input. Will not cal SPIKE coammand in this flow. Alos loaded the elf file with linker script and program.S file (instruction input) to SPIKE and expecting SPIKE to execute its own flow/stack and then will call processor functions to get states, csr, registers in CPP file. however SPIKE stuck in mmu.cc flush_icache, I think i need to initialize ic, dc.
Question is this flow will work?
I
The text was updated successfully, but these errors were encountered:
HI Jerryz123,
Thanks a lot. While making an instance sim_t and calling run in cpp wrapper function, found that SPIKE stuck at function for icache. Not sure what could be the reason. In inital cfg-> ic/dc should we provide init values to it.
Also I am not calling SPIKE as such , wanted to sue only functions.
I am trying to call sim_t function from spike.cc , in my cpp(c++) wrapper API (provided riscv-isa-sim build as input for compilation) to create shared object, which I will call in System verilog (SV) using DPI call. Idea is to use SPIKE source functions in SV testbench to get SPIKE results for an instruction as input. Will not cal SPIKE coammand in this flow. Alos loaded the elf file with linker script and program.S file (instruction input) to SPIKE and expecting SPIKE to execute its own flow/stack and then will call processor functions to get states, csr, registers in CPP file. however SPIKE stuck in mmu.cc flush_icache, I think i need to initialize ic, dc.
Question is this flow will work?
I
The text was updated successfully, but these errors were encountered: