Difference between revisions of "Original RTL language"

From Verific Design Automation FAQ
Jump to: navigation, search
(Created page with "'''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("...")
 
m
 
Line 7: Line 7:
  
 
returns one of "vhdl", "verilog", "edif", "synlib".
 
returns one of "vhdl", "verilog", "edif", "synlib".
 +
 +
Or you can use one of these APIs:
 +
 +
    Netlist::IsFromVerilog()
 +
    Netlist::IsFromVhdl()
 +
    Netlist::IsFromEdif()
 +
    Netlist::IsFromSynlib()

Latest revision as of 12:20, 8 December 2016

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()