electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

How to use the define parameter of verilog in debussy?


Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> How to use the define parameter of verilog in debussy?
Author Message
richardhuang



Joined: 26 May 2005
Posts: 43
Location: china


Post13 Jul 2007 4:21   

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?
Back to top
Google
AdSense
Google Adsense




Post13 Jul 2007 4:21   

Ads




Back to top
nand_gates



Joined: 19 Jul 2004
Posts: 907
Helped: 120


Post13 Jul 2007 6:38   

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
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> How to use the define parameter of verilog in debussy?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
what is the difference of parameter and define in verilog! (3)
How to use ModelSim and Debussy produce fsdb(verilog) ? (1)
How to use the Debussy with the Modelsim in vhdl ? (2)
How to define the op-amp parameter in this low-pass filter? (2)
Verilog Code : 'define & parameter (6)
How do I use a parameter in the procedure? (1)
how to use s-parameter to characterize the RF behaviour? (4)
How to link debussy with NC-verilog in Solaris ? (1)
how to compile verilog package using debussy? (1)
How to use NC-VHDL to genrate *.fsdb file to Debussy? (13)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS