subject

Write a behavior model for calculating the next PC for an instruction. It will use information from the processor control module and the ALU to determine the destination for the next PC. Use the following module interface: module NextPClogic(NextPC, CurrentPC, SignExtImm64, Branch, ALUZero, Uncondbranch); input [63:0] CurrentPC, SignExtImm64; input Branch, ALUZero, Uncondbranch; output [63:0] NextPC; /* write your code here */ endmodule Where SignExtImm64 is the output of the sign extender. Branch is true if the current instruction is a conditional branch instruction, Uncondbranch is true if the current instruction is an Unconditional Branch (B), and ALUZero is the Zero output of the ALU. Any additions with a constant should have a delay of 1, general addition should have a delay of 2, and any multiplexers should have a delay of 1 (This includes statements inside if/else statements). Write a test module to test your module’s correct operation. In your test code, use the $display command to print the inputs (CurrentPC, SignExtImm64, Branch, ALUZero, Uncondbranch) and the output (NextPC

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
Write a behavior model for calculating the next PC for an instruction. It will use information from...
Questions
question
Mathematics, 14.01.2021 20:30
question
Mathematics, 14.01.2021 20:30
question
Mathematics, 14.01.2021 20:30
question
English, 14.01.2021 20:30
question
Mathematics, 14.01.2021 20:30
question
Mathematics, 14.01.2021 20:30
question
Mathematics, 14.01.2021 20:30
Questions on the website: 13722363