I need the answer as soon as possible Part 1: Simple implementation of Load, Store, and Add
Fantastic news! We've Found the answer you've been seeking!
Question:
I need the answer as soon as possible
Transcribed Image Text:
Part 1: Simple implementation of Load, Store, and Add instructions. Objectives: 1- Design control sequence for a simple computer using Verilog HDL. The simple computer is a very small computer to give you practice in the ideas of designing a simple CPU with the Verilog HDL. 2- To be familiar with the instruction execution cycle: fetch the instruction from memory, instruction decode, operand fetch and execution. As shown in the figure below, the simple computer has a two-byte addressable memory with size of 256 bytes (i.e., one memory cell = 16 bits). The memory is synchronous to the CPU, and the CPU can read or write one cell (2 Bytes) in a single clock cycle. The memory can only be accessed through the Memory Address Register (MAR) and the Memory Buffer Register (MBR). To read from memory, you use: MBR Memory [MAR]; To write to memory, you use: Memory [MAR] [MBR]; The CPU has a program counter (PC) register and an instruction register (IR). This CPU has 16 general-purpose registers. You have to implement the register file as a two-dimensional array each entry has size of 16 bits. For example, to access register 0 you can use R[0] notation. You have to implement the flag register in one entry of this array. PC IR MAR MBR Execution unk This simple computer has only three instructions - Load, Store, and Add. The size of all instructions is 16 bits with the following format: Opcode(4 bits) hp Memory Register (4 bits) Memory Address (8 bits) The opcodes are: 0011 LOAD Ri, M: loads the contents of memory location M into register Ri, where Ri is the number of the register 1011 STORE Ri, M: Stores the contents of Ri into memory location M 0111 ADD Ri. M: Adds the contents of memory location M to the contents of Ri, and stores the result in Ri Part 1: Simple implementation of Load, Store, and Add instructions. Objectives: 1- Design control sequence for a simple computer using Verilog HDL. The simple computer is a very small computer to give you practice in the ideas of designing a simple CPU with the Verilog HDL. 2- To be familiar with the instruction execution cycle: fetch the instruction from memory, instruction decode, operand fetch and execution. As shown in the figure below, the simple computer has a two-byte addressable memory with size of 256 bytes (i.e., one memory cell = 16 bits). The memory is synchronous to the CPU, and the CPU can read or write one cell (2 Bytes) in a single clock cycle. The memory can only be accessed through the Memory Address Register (MAR) and the Memory Buffer Register (MBR). To read from memory, you use: MBR Memory [MAR]; To write to memory, you use: Memory [MAR] [MBR]; The CPU has a program counter (PC) register and an instruction register (IR). This CPU has 16 general-purpose registers. You have to implement the register file as a two-dimensional array each entry has size of 16 bits. For example, to access register 0 you can use R[0] notation. You have to implement the flag register in one entry of this array. PC IR MAR MBR Execution unk This simple computer has only three instructions - Load, Store, and Add. The size of all instructions is 16 bits with the following format: Opcode(4 bits) hp Memory Register (4 bits) Memory Address (8 bits) The opcodes are: 0011 LOAD Ri, M: loads the contents of memory location M into register Ri, where Ri is the number of the register 1011 STORE Ri, M: Stores the contents of Ri into memory location M 0111 ADD Ri. M: Adds the contents of memory location M to the contents of Ri, and stores the result in Ri
Expert Answer:
Answer rating: 100% (QA)
Memory Address 20 21 22 30 31 32 Load RL 1307 Contents Load Rt 30 instruction ... View the full answer
Posted Date:
Students also viewed these computer engineering questions
-
Write a code that includes CSS and html to create a web page, provided that the page has two interfaces.
-
9. Suppose we are solving for Arb with A E Rmxn being rank deficient (minimum norm solution) (a) For b(A) why wouldn't the solution (ATA)-Ab work? (b) Suppose beR(A). Show that the error vector is...
-
For blood circulation in a specific human body artery, the following data is given, Average inner diameter of the artery = 6.8 mm Average pressure gradient per meter of length = 75 pa 1- Find the...
-
In a small country near the Baltic Sea, there are only three commodities: potatoes, meatballs, and jam. Prices have been remarkably stable for the last 50 years or so. Potatoes cost 2 crowns per sack...
-
Journalize the entries to record a sale in each of the scenarios below. The sale was for $3,400 of merchandise on account. The cost of goods sold was $2,000. Assume a perpetual inventory system. On...
-
The standard cost of Product B manufactured by TLC Company includes three units of direct materials at $5.00 per unit. During June, 28,000 units of direct materials are purchased at a cost of $4.70...
-
Two parallel-plate capacitors have the same dimensions, but the space between the plates is filled with air in capacitor 1 and with plastic in capacitor 2 . The magnitude of the charge on the plates...
-
Nature's Own makes three types of wood flooring: Oak, Hickory, and Cherry. The company's tax rate is 40 percent. The following costs are expected for 2011: Per-square-yard expected selling prices are...
-
4. 5. In which of following conditions a real gas would behave ideally? (a) Low pressure and low temperature ha (b) At value of temperature equal to its Boyle's temperature (c) Between its critical...
-
Zim Company uses the following cost function: Y = $4200 + $5.25X. If the number of units produced in a month is 100, what would be the total cost?
-
When Hookes law becomes invalid?
-
You have two rods A and B, both made of a nonconducting material. Initially, neither rod is charged. A sphere carrying 100 units of surplus positive charge is placed close to the left end of...
-
An object of inertia \(m_{1}\) moving at \(v_{1 i}\) collides elastically with an object of inertia \(m_{2}\) initially at rest. Show that the following solution for the final velocities of the two...
-
Prove that, if s ( X ) s ( X ) is a martingale, then, equality (5.3.3) holds. P x ( T a < T b ) = s ( x ) s ( b ) s ( a ) s ( b ) (5.3.3) (5.3.3) P x ( T a < T b ) = s ( x ) s ( b ) s ( a ) s ( b...
-
At separation distance \(r_{1}\), charged Ping-Pong balls \(A\) and \(B\) repel each other with an electric force of magnitude 0. 40 N. At separation distance \(r_{2}\), charged Ping-Pong balls...
-
A piece of tape is pulled from a spool and lowered toward a \(100-\mathrm{mg}\) scrap of paper. Only when the tape comes within \(8.0 \mathrm{~mm}\) is the electric force magnitude great enough to...
-
1. A force of 8 x 102 N Is needed to push a car across a lot. Two Students push the car 40m . How much work is done ? 2 . How much work is done In lifting a 60 kg crate a vertical distance of 10m?
-
What impact has the Internet had on the globalization of small firms? How do you think small companies will use the Internet for business in the future?
-
In a boiler trial observations made are as: Feed water temperature \(=30^{\circ} \mathrm{C}\) Boiler pressure \(\quad=12 \mathrm{bar}\) Dryness fraction of steam \(=0.80\) Coal consumption...
-
How much heat is to be added to convert \(4 \mathrm{~kg}\) of water at \(20^{\circ} \mathrm{C}\) in to steam at 8 bar and \(200^{\circ} \mathrm{C}\). Take \(C_{p}\) of superheated steam as \(2.1...
-
What do you understand by mechanical and thermal efficiency? A steam plant uses 3 tonne of \(\mathrm{coal} / \mathrm{h}\). The steam is fed to turbine the output of which is \(4 \mathrm{MW}\). The...
Study smarter with the SolutionInn App