subject

For this part of Lab you will design the sign extender module for your ARMv8 processor in Verilog. Your module should take two inputs: Instruction bits 25-0 and a two-bit control signal, and should output a 64-bit extended immediate. As an example, a rudimentary 16-to-32 bit sign extender is below. module SignExtender(BusImm, Imm16, Ctrl);
output (31:0] BusImm;
input (15:0] Imm16;
input Ctrl;
wire extBit;
assign #1 extBit = (Ctrl ? 1'be : Imm16[15]);
assign BusImm = {{16{extBit}}, Imm16};
endmodule
Re-write this module to meet the needs of your ARMv8 processor. Depending on the control signal, it should extend the right set of bits in the instruction up to a full 64-bits. Save this module in a file called SignExtender. v. You may determine how the control signal maps to the functions of the sign extender, but your sign extender should support the following: I-type instructions (ADD, SUB), D-type instructions (LDUR, STUR), B, and CBZ.
Implement a testbench for the module, SignExtender, and simulate the testbench with iVerilog. Your testbench should be self-checking, i. e. it should not only set inputs but it should also check for expected outputs and print a failure message in the event of unexpected output. You may use the testbenches provided in Lab06 as an example of an exhaustive, self-checking testbench. Simulate your testbench and show that your new SignExtender works properly.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Colby works as a shipping clerk for a major package delivery service. some of his daily tasks include tracking shipments and entering orders. which aspect of the information technology cluster would he most likely be trained in? a.networkingb.databasesc.hardwared.software
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
You know the right answer?
For this part of Lab you will design the sign extender module for your ARMv8 processor in Verilog. Y...
Questions
question
English, 11.10.2020 08:01
question
English, 11.10.2020 08:01
question
Mathematics, 11.10.2020 08:01
question
Biology, 11.10.2020 08:01
question
World Languages, 11.10.2020 08:01
question
Mathematics, 11.10.2020 08:01
question
Mathematics, 11.10.2020 08:01
Questions on the website: 13722367