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...
-
The following circle graph summarizes the results of online spending in America. Let's use these results to make predictions about the online spending behavior of a community of 2800 Internet users...
-
How would you define a good quality of work life?
-
True or False. The voltage output of an electromagnetic transducer is proportional to the relative velocity of the coil.
-
On July 1, 2012, Kim Wheeler established an interior decorating business, Aztec Designs. During the month, Kim completed the following transactions related to the business: July 1. Kim transferred...
-
5. a) Use the sine law to find the length of side c. 3 cm C A 40 2=> 65 b) Use the sine law to find the measure of ZP. Q 15 cm P 7 cm 110 R Use the cosine law to find the measure of E. 8 mm
-
Based on the information provided in the case, illustrate the pricing game between Sony and Microsoft using a 2-by-2 payoff matrix when Sony and Microsoft charge for their games $399, or lower price...
-
The market of oranges is perfectly competitive and the equilibrium price is 30. The supply function in the market has a positive slope and the government is considering imposing a tax of 2 per unit....
-
Suppose that you have isolated a mutant strain of E. coli in which the lac operon is constitutively expressed. To understand the nature of this defect, you create a merozygote in which the mutant...
-
Which of the following methods is used to detect a specific RNA within a mixture of many different RNAs? a. Site-directed mutagenesis c. Western blotting b. Northern blotting d....
-
What is the main goal of comparative genomic hybridization? Explain how the ratio of green to red fluorescence observed along a chromosome provides information about chromosome structure.
-
The basis for DNase I footprinting is that the binding of a protein to DNA a. prevents the DNA from being digested with a restriction enzyme. b. enhances the ability of the DNA to be digested with a...
-
Which is the proper order of the following steps in a genecloning experiment involving vectors? 1. Add DNA ligase. 2. Incubate the chromosomal DNA and the vector DNA with a restriction enzyme. 3....
-
The inter-planar spacing between the (2 2 1) planes of a cubic lattice of edge length 450 pm is: A 50 pm B 150 pm C 300 pm D 450 pm
-
If |62x|>9, which of the following is a possible value of x? A. 2 B. 1 C. 0 D. 4 E. 7
-
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...
-
What part should the sales function play when drawing up a detailed 12 months operational marketing plan for EMA?
-
Suggest a general outline marketing planning strategy for 12 months ahead for Graham Keddie.
-
Explain the differences between marketing strategies and sales strategies.
Study smarter with the SolutionInn App