Hi,
I am getting Unresolved references to the function → do_something() when integrated the C into SV env.
Can anyone please help me figure out what the issue is.
below is how my env looks like:
Cmodel class
class model1{
int a;
void do_something{
// Do the processing
}
}
This is how my top CPP test looks like:
#include model1.cpp
extern "C" {
void do_pack(){
// FUnction implementation
}
void do_unpack(){
// FUnction implementation
}
void processing(){
do_something();
// FUnction implementation
}
}
This is how my SV top looks like:
module top;
import "DPI" function void processing();
DUT(.*)
initial
begin
// input randomization;
processing();
// output parsing
end
endmodule