diff --git a/difftest/online_dpi/src/dpi.rs b/difftest/online_dpi/src/dpi.rs index 27094033b..cec292c0e 100644 --- a/difftest/online_dpi/src/dpi.rs +++ b/difftest/online_dpi/src/dpi.rs @@ -215,7 +215,7 @@ unsafe extern "C" fn axi_write_indexedAccessPort( } #[no_mangle] -unsafe extern "C" fn cosim_init() { +unsafe extern "C" fn t1_cosim_init() { let args = OfflineArgs::parse(); args.common_args.setup_logger().unwrap(); @@ -223,7 +223,7 @@ unsafe extern "C" fn cosim_init() { let mut dpi_target = DPI_TARGET.lock().unwrap(); assert!( dpi_target.is_none(), - "cosim_init should be called only once" + "t1_cosim_init should be called only once" ); *dpi_target = Some(driver); } diff --git a/ipemu/src/TestBench.scala b/ipemu/src/TestBench.scala index bd019a81e..3e23afc8c 100644 --- a/ipemu/src/TestBench.scala +++ b/ipemu/src/TestBench.scala @@ -49,9 +49,9 @@ class TestBench(generator: SerializableModuleGenerator[T1, T1Parameter]) extends |`endif | endfunction; | - | import "DPI-C" function void cosim_init(); + | import "DPI-C" function void t1_cosim_init(); | initial begin - | cosim_init(); + | t1_cosim_init(); | clock = 1'b0; | reset = 1'b1; | end