Hi All,
I got this Fatal error while running a sim :
** Fatal: (SIGSEGV) Bad handle or reference.
Fatal error in Module spi_if at /***/***/***/spi_if.sv line 651
I saw line 651 of the SPI interface i see this code :
always @(SCK)
begin
if (curr_mode) begin
MinData = spi_cfg.Mindr * DELAY_UNIT * 1ps;
end
else begin
#651 MinData = spi_cfg.Minsr * DELAY_UNIT * 1ps;
end
end
spi_cfg is handle of class spi_agent_config
spi_agent_config spi_cfg;
The variable Minsr is defined as int in the class spi_agent_config
Not sure what to debug in this case, any pointers
Thanks,
Tejas