What is the purpose of the giant nested statement

Assignment Help Other Engineering
Reference no: EM131100758

E15: Fundamentals of Digital Systems - Fall 2015 - HOMEWORK 13

1. Download the Verilog code for our example simple CPU from https://www.swarthmore.edu/NatSci/mzucker1/e15_f2014/SimpleCPU.zip and look for the five new CPU instructions added since class.

a. What five instructions were added? Describe how each one works in terms of the source register (or immediate data), destination register, and what operation is being performed.

b. How did the ALU need to get modified to implement these instructions? What is the purpose of the giant nested ?: statement inside the updated ALU module?

2. What bitwise binary operation is being performed by mystery.v ROM locations 2-7? Write pseudocode to illustrate how this particular operation is being performed. Note: You can run this program (or any other one) by modifying the 'include directive inside of E15Process.v. For this particular problem, if you want to view the contents of the registers inside your waveform viewer to determine what's going on, you will likely want to display the results in binary, not decimal.

3. Write a program called triangle.v, similar to fibonacci.v, which instead generates the sequence of triangular numbers, stored in register 3. Include a printout of your triangle.v program along with a printout from your waveform viewer showing a successful run of the program. Please adjust the horizontal scale on your waveform plot to make sure it's clear what's going on inside your program.

4. Difficult: Write a program called rightshift.v. Use ROM location 0 to store a 4-bit initial value into register 0. The remainder of the program, beginning at ROM location 1, should right-shift the value stored in register 0 by one bit, and store the result into register 3 before halting. For instance, if R0 contains the value 4'b1101 at the start of the program, the value 4'b0110 should be stored into R3 when it halts.

Please hand in a printout of your rightshift.v program, along with two printouts of waveform traces demonstrating successful runs of your program on both the input 4'b1101 and the input 4'b1010.

Attachment:- SimpleCPU.zip

Reference no: EM131100758

Questions Cloud

What is the yield to maturity at a current market price : The Heymann Company's bonds have 4 years remaining to maturity. Interest is paid annually; the bonds have a $1,000 par value; and the coupon interest rate is 9 percent. a. What is the yield to maturity at a current market price of (1) $829 or (2) $1,..
Describe how this problem fits the network description : The Wirehouse Lumber Company will soon begin logging eight groves of trees in the same general area. Therefore, it must develop a system of dirt roads that makes each grove accessible from every other grove. The distance (in miles) between every p..
Promise and perils of globalization : In its 45 years of existence, Nike has developed from a small operation to a household name, present on all continents. However, in the 1990's Nike came under scrutiny for various unethical practices.
What will be the value of each of these bonds : The Garraty Company has two bond issues outstanding. Both bonds pay $100 annual interest plus $1,000 at maturity. Bond L has a maturity of 15 years, and Bond S a maturity of 1 year. a. What will be the value of each of these bonds when the going rate..
What is the purpose of the giant nested statement : How did the ALU need to get modified to implement these instructions? What is the purpose of the giant nested ?: statement inside the updated ALU module
What is the price of the bonds : Nungesser Corporation has issued bonds that have a 9 percent coupon rate, payable semiannually. The bonds mature in 8 years, have a face value of $1,000, and a yield to maturity of 8.5 percent. What is the price of the bonds?
Actual distances between the corresponding nodes : Reconsider the networks shown in Prob. 9.3-3. Use the algorithm described in Sec. 9.4 to find the minimum spanning tree for each of these networks.
Find the charge on each sphere : Two identical pith balls, each carrying a charge q, are suspended from a common point by two strings of equal length I. Find the mass of each ball if the angle between the strings is 20 in equilibrium.
Describe the role of technology in the administration : Describe and evaluate common errors made in the administration, scoring, and interpretation of psychological tests - Analyze how these sources of bias can impact the validity of results for an individual.

Reviews

Write a Review

Other Engineering Questions & Answers

  Two-stage cascade refrigeration cycle

Would you recommend a simple refrigeration cycle with refrigerant-134a or a two-stage cascade refrigeration cycle with a different refrigerant at the bottoming cycle? Why?

  Constant pressure combustion chamber

Saturated liquid butane enters an insulated constant pressure combustion chamber at 25?C, and x times theoretical oxygen gas enters at the same pressure and temperature. The combustion products exit at 3400 K.

  How is personal health record utilised in other organisation

Demonstrate effective communication by composing writing that communicates ideas, meaning and/or argument in a format that broadly follows conventions in the information systems field.

  Demonstrate knowledge of it structures

Radio Frequency Identification Tags (RFIDs) are being used in ever greater numbers for an increasing diverse number of applications, from libraries to retail shops to Oyster cards.

  A square wave with a peak value

12-2 Given the same values as in the previous problem, calculate Id for the enhancement mode only. 12-6 Using fig 12-49 find rd, Av and Vout if RD = 680Ω  and RL = 10KΩ

  Takeoff and landing performance

What is the rule of thumb increase in takeoff distance and rotation speed in percentage and what is the climb gradient (%) and climb angle (deg)?

  Difference between digital immigrants and digital natives

Describe at least three ways in which digitization has changed the manner in which society consumes information - Which of the following statements best describes the main difference between digital immigrants and digital natives?

  Produce the component within the customers specification

Evaluate which of the processes would be capable of producing the component within the customer's specification. Use appropriate calculations and control charts to support your statement.

  An inclined plane has a mechanical advantage of 10

An inclined plane has a mechanical advantage of 10. If an effort of 20 pounds is needed to push a wheelchair up the inclined plane. What is the weight of the wheelchair?

  Consolidation test experiment

write just an introduction and methodology about Consolidation Test Experiment,

  Investigate how a temperature sensor used in lab works

Investigate how a temperature sensor such as the TMP36 used in this lab works. In other words, describe the relationship between the values read from this device and how it correlates to temperature.

  Draw a suitable circuit consisting of them voltage source

We have a load resistance of 50Ω that we wish to supply with 5V. A 12.6-V voltage source and resistors of any value needed are available. Draw a suitable circuit consisting of them voltage source, the load, and one additional resistor. Specify the..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd