Skip to content

Commit 9da0db8

Browse files
committed
fixes clk_if initialization of ISS SC wrapper
1 parent b4e498a commit 9da0db8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sysc/core_complex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ void core_complex<BUSWIDTH, QK>::create_cpu(std::string const& type, std::string
170170
SCCFATAL() << "Could not create vm for isa " << type << " and backend " << backend;
171171
} else {
172172
core->set_hartid(hart_id);
173-
core->set_clk_if(clk_i.get_interface(0));
174173
core->set_clint_irq_count(clint_irq_i.size());
175174
auto* srv = debugger::server<debugger::gdb_session>::get();
176175
if(srv)
@@ -313,6 +312,7 @@ template <unsigned int BUSWIDTH, typename QK> void core_complex<BUSWIDTH, QK>::s
313312
sc_core::sc_stop();
314313
return;
315314
}
315+
core->set_clk_if(clk_i.get_interface(0));
316316
if(GET_PROP_VALUE(elf_file).size() > 0) {
317317
auto file_names = util::split(GET_PROP_VALUE(elf_file), ',');
318318
for(auto& s : file_names) {

0 commit comments

Comments
 (0)