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 module hierarchy and nets

Status
Not open for further replies.

ktsangop

Junior Member level 1
Joined
Apr 2, 2008
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,424
Hello everyone!

I have a question for a module design in verilog.

I have two modules as this :

Code:
module top(...IN,....,OUT);
...
reg [7:0] in_register;
reg [7:0] out_register;
 
wire [7:0] wire_in;
wire [7:0] wire_out;

assign wire_in=in_register;
...
bottom instance1(..... wire_in, ....., wire_out);
...
endmodule 

module bottom (......data_in, ......, data_out);
...........
endmodule

So the top module sends data through wire_in to the bottom module and gets data back through wire_out.
I want to store the wire_out data to the out_register before i send it to the OUT.
How can i do this? I cannot use an assignment and i am stuck in here...

Thanks in advance!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top