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 to use the define parameter of verilog in debussy?

Status
Not open for further replies.

richardhuang

Member level 2
Joined
May 26, 2005
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
china
Activity points
1,569
verilog define parameter

in my verilog code, i use "ifdef **" to define some module, but how can i make debussy find the correct module ?how to tell debussy the define infomation?
 

debussy ifdef

Debussy understands `define You should include `defines in one file and pass
it to debussy!
Here is an example!
Debussy will show you OR gate
Code:
`define __OR 1
module alu(
   // Outputs
   y, 
   // Inputs
   a, b
   );
   input a, b;
   output      y;

`ifdef __OR
   assign      y = a|b;
`else
   assign      y = a&b;
`endif
endmodule
Debussy will show you and gate!

Code:
module alu(
   // Outputs
   y, 
   // Inputs
   a, b
   );
   input a, b;
   output      y;

`ifdef __OR
   assign      y = a|b;
`else
   assign      y = a&b;
`endif
endmodule
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top