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

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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