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

  Force with an equivalent force-couple system

A plumber applies a 220-N force to the handle of a wrench as she removes a coupling from the end of a pipe. Knowing that the wrench and the force lie in a vertical plane parallel to the yz plane, replace the force with an equivalent force-couple s..

  The importance of impedance, rise-time and bandwidth

Discuss the connection between rise-time and bandwidth in amplifier circuits.

  Briefly explain why a baseline audit is required

What is the definition of sustainability when viewed from an industry stance and what is sustainability - Briefly explain why a baseline audit is required.

  Draw shear-force and moment diagram of the steel frame

Draw shear-force and moment diagram of the steel frame and design the member and calculate the structural design calculation and detailing in the form of a drawing

  Accelerating power pss model - simulink model

There is block diagram called PSS2A, Ineed this block diagram at simulink model which will give graphs like below. so I also need those graphs. So basically i need PSS2A simulink model which will produce those graphs shown below.

  Process of transforming data using an algorithm

Do project title is Data Encryption and hide in Images the title is in fill (project proposal) and all steps of the project in fill (project planning).

  Determine the dielectric thickness

Determine the sheet resistance RSH (ohms/square), the contact resistance RC (ohms) and the doping density ND (cm-3) and draw the T- 1/λ curve where the semiconductor wafer is thinned, i.e. d is reduced.

  Environmental issue

CEE 357 Winter 2014. Independent writing assignment. Choose any current environmental issue on which a civil/environmental engineer might reasonably work.

  Describe the basis for a step response

Q1: A first order system was assessed using a step response method and was found to have a time constant of 1.5s. a) Describe the basis for a step response

  Design a folding bicycle of very less space

The main objective of this project is to design and analysis of fold able bicycle frame. The main aim of this project is to design a folding bicycle of very less space after folding with a low possible cost to manufacture it. The maximum cost of b..

  Design problem

Des ign   Problems,  You are required to report on an operating medium to large underground mining operation. Included in your report should be all or most of the items listed below:Production Methods Development Requirements Plans and Sections, Roc..

  Crystal orientation of silicon

How long does it take to grow 100nm of oxide in wet oxygen at 1000oc (assume 100crystal orientation of silicon) ? In dry oxygen? Which process would be perfect?

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