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.

A question for mixed Language RTL coding

Status
Not open for further replies.

windowX

Newbie level 6
Joined
Mar 1, 2007
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,351
hi, all
I am RTL coding with mixed language and I am confused by
a problem. when writing a Verilog HDL program, I want to instant
a component defined in VHDL, but in the VHDL, there is some "generic",
how can I pass the value to these "geneic" in Verilog.

Plz help me, thanks very much.
 

windowX said:
hi, all
I am RTL coding with mixed language and I am confused by
a problem. when writing a Verilog HDL program, I want to instant
a component defined in VHDL, but in the VHDL, there is some "generic",
how can I pass the value to these "geneic" in Verilog.

Plz help me, thanks very much.

Use Verilog parameters for the same. Since your post asked for simple instantion use model, a sample code is:

Code:
module my_vlog_top;

parameter VLOG_Param_1=10;
parameter VLOG_Param_2=1;


  vhdl_dut #(.VHDL_Generic_1(VLOG_Param_1), 
                  .VHDL_Generic_2(VLOG_Param_2) ) 
     dut_0 (<ports>);

Good Luck
Ajeetha, CVC
www.noveldv.com
 

Thanks so much, and I will try it now.

btw:your website seem wonderfull...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top