From: Cary R. <cy...@ya...> - 2020-09-20 06:00:07
|
I would suggest using the SystemVerilog bit type since it is two state. I will also suggest you look at some of the online training. This is a fundamental language question and not something specific to Icarus development. You can also download the standard to know what is and is not supported in SystemVerilog. Also keep in mind that Icarus still has significant limitations and sometimes just reports missing functionality as a syntax error. That's what happens when it has not been added to the parser. Cary On Saturday, September 19, 2020, 1:37:50 PM PDT, Stephen Williams <st...@ic...> wrote: There are so many ways to do this. If you literally want to pass in the enumeration value "true" and "false", then yeah, create an enumeration. But you can also use a basic single-bit value. On Sat, Sep 19, 2020 at 9:25 AM Evan Lavelle <sa2...@cy...> wrote: > > Verilog has no boolean type, so out of luck... > > > > _______________________________________________ > Iverilog-devel mailing list > Ive...@li... > https://lists.sourceforge.net/lists/listinfo/iverilog-devel -- Steve Williams "The woods are lovely, dark and deep. st...@ic... But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." _______________________________________________ Iverilog-devel mailing list Ive...@li... https://lists.sourceforge.net/lists/listinfo/iverilog-devel |