spydrnet.parse

spydrnet.parse(filename, architecture=None)[source]

The parse function is able to parse an EDIF (.edf) file, a Verilog file (.v), or an EBLIF file (.eblif).

This functions also supports the parsing of .zip files. Such as the ones in support_files folder

Returns:

The netlist that comes as the result of the parsing of the file if the file was parsed successfully

Return type:

Netlist

Examples

>>> import spydrnet as sdn
>>> netlist = sdn.parse('<netlist_filename>.edf')

Or we can parse a verilog file

>>> netlist = sdn.parse('<netlist_filename>.v')

Or a zip file that contains the edif or verilog file

>>> netlist = sdn.parse('4bitadder.edf.zip')

The same applies for EBLIF files