Is it possible to use assign
keyword with module instances?
Lets assume I have a module logarithm
which works as it's intended. In some other module, I want to have: A = log(B) + log(C)
.
Is there any efficient way other than the following to do so?
wire [3:0] logB;
wire [3:0] logC;
Logarithm log(logB, B);
Logarithm log(logC, C);
assign A = logB + logC;
And is it known as a gate-level design or a data-flow one? If it is not data-flow, would you please present a data-flow alternative to this code?