This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pip install pyverilog | |
| from pyverilog.vparser.ast import Inout, Input, Localparam, ModuleDef, Output, Parameter, Supply | |
| from pyverilog.vparser.parser import VerilogCodeParser | |
| parser = VerilogCodeParser([]) | |
| # Hack: Get rid of the icarus verilog dependency | |
| # Place your Verilog in a lambda function |