Original RTL language

From Verific Design Automation FAQ
Jump to: navigation, search

Q: How do I know what language a Netlist in the netlist database comes from?

Use attribute " language" (note the leading space):

   Netlist *nl;
   nl->GetAttValue(" language") 

returns one of "vhdl", "verilog", "edif", "synlib".

Or you can use one of these APIs:

   Netlist::IsFromVerilog()
   Netlist::IsFromVhdl()
   Netlist::IsFromEdif()
   Netlist::IsFromSynlib()