Question: Table 5 : Bit definitions for micro _ stim.v . else D = my _ rom [ A ] ; end initial begin my _

Table 5: Bit definitions for micro_stim.v. else
D = my_rom[A];
end
initial begin
my_rom[0]=14'h1205;
my_rom[1]=14'h234;
my_rom[2]=14'h0;
my_rom[3]=14'h0;
my_rom[4]=14'h1205;
my_rom[5]=14'h294;
my_rom[6]=14'h0;
my_rom[7]=14'h0;
my_rom[8]=14'h1205;
my_rom[9]=14'h1000;
my_rom[10]=14'h0;
my_rom[11]=14'h0;
my_rom[12]=14'h1205;
my_rom[13]=14'h0;
my_rom[14]=14'h0;
my_rom[15]=14'h0;
my_rom[16]=14'h1205;
my_rom[17]=14'h0;
my_rom[18]=14'h0;
my_rom[19]=14'h0;
my_rom[20]=14'h1205;
my_rom[21]=14'h0;
my_rom[22]=14'h0;
my_rom[23]=14'h0;
my_rom[24]=14'h1205;
my_rom[25]=14'h0;
my_rom[26]=14'h0;
my_rom[27]=14'h0;
my_rom[28]=14'h1205;
my_rom[29]=14'h0;
my_rom[30]=14'h0;
my_rom[31]=14'h3fff;
end
endmoduleTask 4-5: Add the AND, ZERO, SUB, and STORE ACC Instructions
In this task you get to demonstrate your understanding of your microprocessor by adding
instructions to your instruction set. Add the AND, ZERO, SUB, and STORE ACC instructions to
your microprocessor circuit.
The AND instruction should perform a bitwise AND operation of the value in the
accumulator with an operand from the RAM and store the result in the accumulator.
The ZERO instruction should store the hex digit 0 in the accumulator by subtracting the
accumulator from itself and storing the result back in the accumulator.
Version 1.1 Fall 202422
The SUB instruction gets the next value in the RAM and subtracts it from the
accumulator by forming its two's complement, adding the result to the value already in
the accumulator, and then storing this result back into the accumulator.
The STORE ACC instruction should write the contents of the ACC into a location in RAM
specified by the instructions operand
Table 5 : Bit definitions for micro _ stim.v .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!