Question

module Lab5(Clock, Ex, Reset, W, S, L, Q); //Inputs input Clock, Ex, Reset; input [1:0] W;...

module Lab5(Clock, Ex, Reset, W, S, L, Q);

//Inputs

input Clock, Ex, Reset;

input [1:0] W;

input [2:0] S;

input [3:0] L;

//Outputs

output reg [3:0] Q;

// Inputs for FSM = Clock, Ex, Reset, W           Outputs = S, L

FSM U0 (.Clock(Clock), .Ex(Ex), .Reset(Reset), .W(W), .S(S), .L(L));

// Inputs for BUSR = Clock, Reset, L, S                       Outputs = Q

Behavioral_Universal_Shift_Register U1 (.Clock(Clock), .Reset(Reset), .L(L), .S(S), .Q(Q));

endmodule

How do you use the outputs in FSM file as inputs in the Behavioral_Universal_Shift_Register file? This Verilog code is giving me the error of "10663 Verilog HDL Port Connection error at Lab5.v(23): output or inout port "Q" must be connected to a structureal net expression".

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Declare - output reg [3:0] Q; as wire. i.e. output [3:0] Q;

No output from this uut -FSM U0 (.Clock(Clock), .Ex(Ex), .Reset(Reset), .W(W), .S(S), .L(L));

Add a comment
Know the answer?
Add Answer to:
module Lab5(Clock, Ex, Reset, W, S, L, Q); //Inputs input Clock, Ex, Reset; input [1:0] W;...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT