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.

how can we enable and disable the modules in verilog?

Status
Not open for further replies.

SantoshSoundararajan

Newbie level 5
Joined
Mar 12, 2013
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,349
hey guys help me out here...i need u to give me some examples to make a module enabled or disabled whenever we need in verilog HDL....
 

you already had some in your previous post.
 

I suggest going back to the origional thread. There was a hint given to you - you wired 4 outputs together, so they clash. Perhaps you need to google about how to build a mux.
 

So unstuck yourself by trying some more. As for enable/disable ... and also looking at the other thread ... you can only do that at SYNTHESIS time, not at run time. Assuming we are talking hardware here, not just simulation.

So assuming real hardware ... you can use a parameter in your higher level module to decide to instantiate or not. And then you use for example an initial block or generate or even `ifdef.

Anyways, if you are pro-active about your help I have now given you a couple of google terms. :p "conditional synthesis verilog parameter initial"

And just to see if that initial google query would work:

**broken link removed**

There's some inspiration you can use to solve your problem.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top