- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to instantiate different modules controlled by an input "Mode".
Here are my code in Verilog: generate case (Mode) 1: begin : case1 (instantiate module 1) end 0: begin : case0 (instantiate module 0) end endcase [/INDENT]endgenerate Quartus II 9.1 gives an error Error (10734): Verilog HDL error at Test.v(215): Mode is not a constant. Does generate statement only use constant as conditions?Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Does generate statement only use constant as conditions? --- Quote End --- Obviously. Generate means building a particular design part once or repeatedly, or omit it. This must be determined at compile time. What do you want to achieve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to make it work with different plug-in devices which require different timing signals. It seems the only way I can do is to instantiate both modules and use muxers.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page