Original RTL language

From Verific Design Automation FAQ
Revision as of 12:20, 8 December 2016 by Hoa (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()