electronics forum

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

verilog hdl--- instantiation


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> verilog hdl--- instantiation
Author Message
param



Joined: 09 Sep 2005
Posts: 46
Helped: 4


Post12 Apr 2006 6:45   

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




Post12 Apr 2006 6:45   

Ads




Back to top
it_boy



Joined: 18 Jul 2002
Posts: 181
Helped: 4


Post12 Apr 2006 7:31   

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
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 -> PLD, SPLD, GAL, CPLD, FPGA Design -> verilog hdl--- instantiation
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
verilog dynamic instantiation ?? (4)
Verilog Module instantiation in VHDL (5)
Conditional Instantiation of a Module in Verilog (12)
Verilog Compilation problem in module instantiation (2)
Verilog Compilation problem in module instantiation (2)
Can we use instantiation in always proceedure in verilog (1)
Verilog HDL (14)
Verilog HDL (6)
verilog hdl (10)
VERILOG HDL (5)


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