iedition
Newbie level 3
Using VHDL generic and configuration after synthesis to verilog netlist
Hi all,
Actually, all of my designs is VHDL file and use 'generic' and 'configuration' features.
Although I synthesized VHDL files to the verilog netlist, test bench files are still VHDL.
You know, sysnthesis tools such as DC don't support 'generic' and 'configuration'.
My question is how can I use only one test bench file in case of both RTL simulation and gate-level netlist simulation.
The most simple solution is just deleting generic and configuration lines in gate-level simulation. But I want use this tb in case of RTL sim(VHDL) and gate-level sim(verilog) like as '#ifdef' in C language.
For example, following code is part of a VHDL test bench.
Thanks.
Hi all,
Actually, all of my designs is VHDL file and use 'generic' and 'configuration' features.
Although I synthesized VHDL files to the verilog netlist, test bench files are still VHDL.
You know, sysnthesis tools such as DC don't support 'generic' and 'configuration'.
My question is how can I use only one test bench file in case of both RTL simulation and gate-level netlist simulation.
The most simple solution is just deleting generic and configuration lines in gate-level simulation. But I want use this tb in case of RTL sim(VHDL) and gate-level sim(verilog) like as '#ifdef' in C language.
For example, following code is part of a VHDL test bench.
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 INST1 : TOP_MODULE generic map( length => 5 ) ..... configuration CFG_TB of TB is for behavior for INST1: TOP_MODULE use configuration WORK.CFG_TOP_MODULE; end for; end for; end CFG_TB;
Thanks.
Last edited: