steveicarus / iverilog

Icarus Verilog
https://steveicarus.github.io/iverilog/
GNU General Public License v2.0
2.86k stars 530 forks source link

Icarus not recognizing the $past function #340

Open mickey4u opened 4 years ago

mickey4u commented 4 years ago

I am getting an error for using $past in my testbench. Does Icarus support $past? If not are there any other alternatives to achieve the same functionality?

caryr commented 4 years ago

Icarus has no support for any of the sampling functions. $past and $sampled are particularly hard to implement since we use the VPI interface to implement all system functions and it does not have the ability to declare the return type of a function to match the type of an argument. We will need to invent something to allow this before this can be implemented.