Question

Daw the loguc Diagram of Darallel outs So Sdhe regster operate cccording to the lolawing table a 2-bt Parallel in ester wit m
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

The register is designed using Verilog Hardware description language.

//+++++++++++ Code starts here ++++++++++++//

module PIPO(x,clk,s0,s1,q);
input [2:0] x;
input clk,s0,s1;
output reg [2:0] q;

always @(posedge clk) begin
if(s0==0 && s1==0)
       q<=x;
else if(s0==0 && s1==1)
       q<=~q;
else if(s0==1 && s1==0)
       q<=3'b0;
else
       q<=x;
end
endmodule

//++++++++++++++++ END ++++++++++++++++//

Simulate that code and synthesize it.The corresponding schematic would be created using the view RTL schematic icon(below the synthesize - XST icon).

N.B: Copy the code and save it in a ( .v ) file and simulate using verilog simulator .

Add a comment
Know the answer?
Add Answer to:
Daw the loguc Diagram of Darallel outs So Sdhe regster operate cccording to the lolawing table a 2-bt Parallel in e...
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