R
RI
Guest
Hi all,
I am a novice Verilog user. I want to connect two modules, to pass the
2 bits wide quad generated in module aaa to tie to module bbb. However
I do not need quad in the top module.
My kludge is not working. What's the correct way?
module aaa (clock,quad);
input clock;
output reg [1:0]quad;
//code
endmodule
module bbb (clock,quad,foo);
input clock;
input [1:0]quad;
output foo;
//code
endmodule
module top(CLOCK,FOO)
input clock;
output foo;
aaa aa(CLOCK,quad);
bbb bb(CLOCK,quad,FOO);
wire [1:0]quad;
endmodule
Istvan
I am a novice Verilog user. I want to connect two modules, to pass the
2 bits wide quad generated in module aaa to tie to module bbb. However
I do not need quad in the top module.
My kludge is not working. What's the correct way?
module aaa (clock,quad);
input clock;
output reg [1:0]quad;
//code
endmodule
module bbb (clock,quad,foo);
input clock;
input [1:0]quad;
output foo;
//code
endmodule
module top(CLOCK,FOO)
input clock;
output foo;
aaa aa(CLOCK,quad);
bbb bb(CLOCK,quad,FOO);
wire [1:0]quad;
endmodule
Istvan