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.

verilog hdl--- instantiation

Status
Not open for further replies.

param

Member level 2
Joined
Sep 9, 2005
Messages
49
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,286
Activity points
1,649
verilog hdl, instantiation

hi,
how to instantiate a module in another module with output port of the the instantiated module to map the input port of instantiating module...
let me give an example...
there are two modules xxx and yyy;

module xxx (in1,in2, out);
input in1,in2;
output out;
endmodule

module yyy(a,b,c);
input a,b;
output c;
endmodule

now i want output 'out' of xxx module to be connected to input 'a' of module yyy;
i.e., a<=out;
i tried like...
module yyy(a,b,c);
input a,b;
output c;
xxx ttt(.out(a));
endmodule

it dint work...

plese help regarding this doubt, in anticipation of ur help,
thanx in advance
take care
 

verilog instantiation -vhdl

Try this..

module zzz;
wire in1, in2, out, b, c;
xxx xxx_inst (in1,in2, out);
yyy yyy_inst (out,b,c);

endmodule
 

    param

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top