In this project, we need to design an accumulator computer. The memory in this computer system...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this project, we need to design an accumulator computer. The memory in this computer system is 16-bit cell memory. Assume that the memory is synchronous to the CPU, and the CPU can read/write one cell in a single clock cycle. The memory can only be accessed through the memory address register (MAR) and the memory buffer register (MBR). In addition to the accumulator register (AC), the CPU has a program counter (PC) register and an instruction register (IR). The 16-bit instruction format is as follow: Opcode(4bits) M (1bit) Mode bit: M=1 → Memory address Sub Mul M = 0 ➜ Immediate constant (signed integer 2's complement) This machine should support at least the following instructions with the following opcodes: Instruction Opcode Load 1 Store 2 ADD Memory address/constant (11bits) Div Branch BRZ 3 4 5 6 7 8 Ac Go 1) Initialize the memory with the following four instructions at memory address 0-3, and data at memory address 10-12, as shown in the following table. a) Interpret each instruction into assembly instruction and add it to its corresponding instruction in the table. Also, interpret the integer's data into decimal and add them into the table. b) Simulate the four instructions at address 0 by initializing PC =0. Provide a snapshot of your resulted waveform. Verify that it works correctly and the also verify that the result stored at address 12 is correct. Attach simulation waveform and the Verilog source file. Memory Content Address 0 1 2 3 10 11 12 0x180A 0x580B 0x3005 0x280C 0x0009 OxFFFC 0x0000 Content interpretation: assembly instruction + data in decimal 2) Assume A,B,C,D,E and Y are memory cells with addresses 20,21,22,23,24, and 25, respectively. Given, Y=E+T A+B+C-5 a) Write assembly code for implementing the above arithmetic expression? In this project, we need to design an accumulator computer. The memory in this computer system is 16-bit cell memory. Assume that the memory is synchronous to the CPU, and the CPU can read/write one cell in a single clock cycle. The memory can only be accessed through the memory address register (MAR) and the memory buffer register (MBR). In addition to the accumulator register (AC), the CPU has a program counter (PC) register and an instruction register (IR). The 16-bit instruction format is as follow: Opcode(4bits) M (1bit) Mode bit: M=1 → Memory address Sub Mul M = 0 ➜ Immediate constant (signed integer 2's complement) This machine should support at least the following instructions with the following opcodes: Instruction Opcode Load 1 Store 2 ADD Memory address/constant (11bits) Div Branch BRZ 3 4 5 6 7 8 Ac Go 1) Initialize the memory with the following four instructions at memory address 0-3, and data at memory address 10-12, as shown in the following table. a) Interpret each instruction into assembly instruction and add it to its corresponding instruction in the table. Also, interpret the integer's data into decimal and add them into the table. b) Simulate the four instructions at address 0 by initializing PC =0. Provide a snapshot of your resulted waveform. Verify that it works correctly and the also verify that the result stored at address 12 is correct. Attach simulation waveform and the Verilog source file. Memory Content Address 0 1 2 3 10 11 12 0x180A 0x580B 0x3005 0x280C 0x0009 OxFFFC 0x0000 Content interpretation: assembly instruction + data in decimal 2) Assume A,B,C,D,E and Y are memory cells with addresses 20,21,22,23,24, and 25, respectively. Given, Y=E+T A+B+C-5 a) Write assembly code for implementing the above arithmetic expression?
Expert Answer:
Related Book For
Computer Architecture A Quantitative Approach
ISBN: 978-0123704900
4th edition
Authors: John L. Hennessy, David A. Patterson
Posted Date:
Students also viewed these computer network questions
-
Choose any firm or a company for the data and find the WACC and everything use the CAPM and DGM, to estimate the cost of equity
-
The following table contains task durations for a project. Activity ID Minimum (a) Most likely (m) 0 6 8 13 5 7 14 7 4 0 A B C D E F G H I J 0 4 5 10 3 4 10 5 3 0 Maximum (b) 0 8 11 16 7 10 18 9 5 0...
-
Define the SNMP model. How many tiers of agent-manager architecture it might have? How does the SNMP model employ client-server functionality? Is the peer-to-peer SNMP model feasible?
-
The Sooner Equipment Company has total assets of $100 million. Of this total, $40 million was financed with common equity and $60 million with debt (both long- and short-term). Its average accounts...
-
A horizontal pipe contains water at a pressure of 120 kPa flowing with a speed of 1.9 m/s. When the pipe narrows to one-half its original diameter, what are (a) The speed and (b) The pressure of the...
-
York Instruments completed the following transactions and events involving its machinery. 2016 Jan. 1 Paid $107,800 cash plus $6,470 in sales tax for a new machine. The machine is estimated to have a...
-
Discuss the validity of the give, get, or get off statement.
-
La-Z-Boy Inc. is one of the worlds largest manufacturers of furniture and is best known for its reclining chairs. The following data (in thousands) were adapted from the 2008 annual report of...
-
On January 8, the end of the first weekly pay period of the year, Regis Company's employees earned $23,760 of office salaries and $60,840 of sales salaries. Withholdings from the employees' salaries...
-
Opus, Incorporated, owns 90 percent of Bloom Company. On December 31, 2012, Opus acquires half of Bloom's $500,000 outstanding bonds. These bonds had been sold on the open market on January 1, 2010,...
-
Jessie is a gang member and has been involved in a gang for five years. One day, Jessie is approached by Joe who asks him to go along with him to do a drive-by shooting on the house of a rival gang...
-
The graph of y=x is shown below. What are the coordinates of the vertex D, after a horizontal translation of 5 units right? A G B 5. D E x 5
-
Pricing and Demand Approaches In this learning activity, we will develop skills related to explaining the approaches to pricing and the major factors considered in arriving at a final price. Four...
-
Solve-4(-2 y+3)=20.
-
Juan is the newly promoted rehab director of an extensive skilled nursing and sub-acute center in Houston, Texas. Over the past few years, morale has declined, and many staff members do not focus on...
-
How many curies of 2 3 8 Np will there be present in 1 mole 2 3 7 Np after exposure to a thermal neutron flux of 1 x 1 0 1 1 sec - 1 cm - 2 for 1 0 min, 1 0 h , 3 0 h , 6 0 h , 1 0 0 h , 3 0 0 h ?...
-
Southwest Hospital has an operating room used only for eye surgery. The annual cost of rent, heat, and electricity for the operating room and its equipment is $360,000, and the annual salaries of the...
-
Give codons for the following amino acids: (a) Th (b) Asp (c) Thr
-
Modify the code in Figure 5.32 to measure the following system characteristics. Plot the experimental results with elapsed time on the y-axis and the memory stride on the x-axis. Use logarithmic...
-
You have been asked to investigate the relative performance of a banked versus pipelined level 1 data cache for a new microprocessor. Assume a 64 KB two-way set-associative cache with 64 B blocks....
-
Let's consider what dynamic scheduling might achieve here. Assume a microarchitecture as shown in Figure 2.42. Assume that the ALUs can do all arithmetic ops (MULTD, DIVD, ADDD, ADDI, SUB) and...
-
Describe what a badly run stock exchange would be like and explain how society would be poorer as a result.
-
Many countries are encouraging small investors to buy quoted shares. Why might they be doing this? Write an essay to include a discussion of the societal benefits of a stock exchange.
-
Frame-up plc is considering a flotation on the Main Market of the London Stock Exchange. The managing director has asked you to produce a 1,000-word report explaining the advantages of such a move.
Study smarter with the SolutionInn App