Import function context scope should be the declaration scope not the calling scope #740
Labels
area: wrong runtime result
Issue involves an incorrect runtine result from Verilated model
resolution: fixed
Closed; fixed
Author Name: Geoff Barrett
Original Redmine Issue: 740 from https://www.veripool.org
Original Date: 2014-04-11
Original Assignee: Geoff Barrett
In the following code, the context of the import function call should be the scope at the time of declaration, not the scope at the time of calling:
{code}
module...
import "DPI-C" context function void dpi_import();
begin : caller_scope
dpi_import();
end
endmodule
{code}
Currently the scope returns .caller_scope instead of .
The text was updated successfully, but these errors were encountered: