D
DW
Guest
is there such a facility in Verilog? it would be nice if there was.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The archives indicate that something like this was proposed forIcarus Verilog implements $bits(), which is like sizeof() in C.
This is copied from SystemVerilog. So far as I can tell, the
IEEE1364 ETF has not adopted this feature.
A basic implementation like this is indeed pretty straightforward.Even though Icarus Verilog handles it specially, it is possible
to write a PLI function that implements $bits.
Icarus Verilog implements $bits(), which is like sizeof() in C.is there such a facility in Verilog? it would be nice if there was.
I believe that VHDL needs something like this because it has featuresis there such a facility in Verilog? it would be nice if there was.