Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

generate in Verilog 2001

Status
Not open for further replies.

steven852

Advanced Member level 4
Joined
Apr 24, 2005
Messages
100
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
2,040
Hi,

What is the benefit in using generate/endgenerate in Verilog 2001? It seems can't be simulated without going to elaborate process.

Thanks
 

steven852 said:
Hi,

What is the benefit in using generate/endgenerate in Verilog 2001? It seems can't be simulated without going to elaborate process.

Thanks
Hi,
Verilog generate (and so is VHDL generate) is an elab time loop unrolling and not run time one. It is inline with what's required for Hardware modeling, in hardware you can't have dynamic number of adders for example. Having said that some tools combine elab-and-simulation under one commonad, for instance Modelsim. I believe VCSMX also has that capability.

HTH
Ajeetha, CVC
www.noveldv.com
 

Hi ,

If you want to use same instance in mutltiple times in same way then people use generate .

Regarding unrolling of the logic some simulators will give flexibility to take generics/parameter at simulation time ( Modelsim) where you are unrolling it in simulation time but there also still it is at elobaration stage only . Bcos modelsim first it will compile then elobrate the design during simulation .


Thanks & Regards
yln
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top