1
\$\begingroup\$

Say I have a module foo(in1,in2,out); and module mad1(in,out); module mad2(in,out); module mad3(in,out); While instantiating these modules I want to use the output (out) of foo as an input to each of the mad modules. Something like this:

input in1,in2;
output out1,out2,out3;
wire w_out;
foo i_foo(.in1(in1),.in2(in2),.out(w_out));
mad1 i_mad1(,in(w_out),.out(out1));
mad2 i_mad2(,in(w_out),.out(out2));
mad3 i_mad3(,in(w_out),.out(out3));

Is that approach correct or should I save the output of the foo module to a register?

PeterJ
17.3k37 gold badges58 silver badges91 bronze badges
asked Aug 17, 2013 at 9:08
\$\endgroup\$
0

1 Answer 1

1
\$\begingroup\$

This approach is perfectly correct.

answered Aug 17, 2013 at 9:59
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.