Design and simulation of a simple cpu architecture

Assignment Help Other Engineering
Reference no: EM131486731

Laboratory Project

Design and Simulation of a Simple CPU Architecture

Objective

This project consists of a series of assignments that will guide the students to the step-by-step approach in building their own simple CPU architecture. A logic circuit simulator such as LogicWorks will be used to implement the designed circuit. The aim of this project is to:
- Gain an insight into the layers of computer organization from the digital logic level up to the assembly language level.
- Design and verify the various microoperations that can be implemented with the data path unit of the CPU.
- Provide a team of students with an opportunity to work on a more open-ended CPU design problem.

This lab activity is an open ended design project in the sense that each group of students have to come up with their own CPU design using a set of guidelines provided in this assignment. Students are encouraged to design an efficient and elegant approach in designing the different components of the datapath unit. All assumptions and design approach must be clearly explained in the laboratory report.

Part 1: Design and Implementation of the CPU Datapath

Datapath specification

The following specifications must be achieved by the datapath of the 8-bit CPU to be designed:

Register file: consist of eight registers, R0 to R7, each is 8-bit wide.

Function Unit:
The function unit receives data from two 8-bit buses A and B.

Inputs:

  • Control word: 16 bits
  • Constant in: 8-bit operand that can be fed to the function unit
  • Data in: 8-bit external data that can be loaded into any register

Outputs:

  • Data out: 8-bit Output from Bus A
  • Address out: 8-bit Output from Bus B
  • Status bits: Carry (C), Sign (N), Overflow (V), Zero (Z)

The arithmetic circuit:

Generates the following eight arithmetic operations according to two selection lines S1, S0 in conjunction with carry Cin

S1

S0

 

 

 

0

0

Add

A + B

 

A + B + 1

0

1

Transfer A

A

Increment

A + 1

1

0

1's complement

B'

2;s complement

B' + 1

1

1

 

A + B'

Subtract

A + B' + 1

The Logic unit:

Generates the following operations according to the two selection lines S1, S0:

S1

S0

Logic Function

0

0

A ^ B

0

1

A ? B

1

0

A     B

1

1

A'

Project Requirements

A. Design, simulate and verify the functionality of the ALU and Shifter Unit and check the status bits. (For the ALU, design a 1-bit arithmetic unit and 1-bit logic unit, then use them to generate 8-bits ALU)

B. Design, simulate and verify the operation of the register file.

C. Specify the 16-bit control word that must be applied to your datapath to implement each of the following microoperations:

1) R0 ← 28 H

2) R1 ← BC H

3) R2 ← AD H

4) R3 ← A5 H

5) R4 ← 39 H

6) R5 ← F5 H

7) R6 ← 6A H

8) R7 ← 90 H

9) R4 ← R2 + FF H

10) R1 ← sr R2

11) R6 ← R5 - 1

12) R2 ← R2 ^ R5

13) R1 ← R2    R4

14) R0 ← R3 - 1

15) R2 ← R2 - R5

16) R0 ← - R1

17) Data out ← R7 18)  R4 ← 0

D. Apply the above microoperations to your circuit and record the generated output in a table.

Report

The report is an important part of the project. It must be clear and well organized. It is the only way to convey that you did a great job in the lab. You have to submit a lab report that contains the following:

- Course Title, Lab no, Lab title, Team members and date of submission

Section on the lab experiment:

1) The project objectives.

Explanation of the design approach for each unit with its schematic circuit captured from the simulator. Present the circuits in a buttom-up approach.

2) A schematic that shows the different fields of the 16-bit control word

3) The 16-bit control word that must be applied to the datapath to implement the sequence of microoperations listed in the example above.

4) A printout of the timing diagram generated by the simulator when the above set of microoperations are applied to the data path.

5) Analysis of the results indicating that the circuit functions properly.

Conclusion and discussion

Discuss the results obtained. What problems did you face in the design? How did you solve them? How to improve your design? What did you learn from this assignment.

Reference no: EM131486731

Questions Cloud

Human resource professional at a large retail chain : Suppose you are a human resource professional at a large retail chain. Cashier at one of the company’s stores.
What is the book value for a share of casper stock : Casper Energy Exploration reports that the corporation's assets are valued at $185,000,000, its liabilities are $80,000,000, and it has issued 6,000,000 shares.
Class is intro to transportation management : What are the advantages and disadvantages of transporting product via pipeline? Research the web and supply the name, website, and the basic mission statement.
Define the elements of a legal contract : Identify the facts from the scenario which support your decision on whether or not a contract exists for the purchase of the automobile.
Design and simulation of a simple cpu architecture : ECCE 303: Computer Organization and Architecture - Design and Simulation of a Simple CPU Architecture - simulate and verify the functionality of the ALU
Insurance payers support the business of medicine : Insurance payers support the business of Medicine. Whether the insurance is government-backed or private pay
Conduct a search in our library and learning center : Conduct a search in our library and learning center or with your web search engine on "disaster planning for EHR." Create a disaster plan for a small physician.
What is the average cost per share of marty investment : For four years, Marty Campbell invested $4,000 each year in HarleyDavidson. The stock was selling for $36 in 2011, $45 in 2012, $52 in 2013, and $70 in 2014.
Role of an insurance payer in the quality of services : The role of an insurance payer in the quality of services in the healthcare organization

Reviews

Write a Review

Other Engineering Questions & Answers

  Measurement models goal programming outranking

I would like to use the each following methods to answer the (same question) as attached : VALUE MEASUREMENT MODELS GOAL PROGRAMMING OUTRANKING (ELECTRE I)

  Find the gate threshold in the cases

Consider the two-inputCMOSNORgate of Fig. 14.7 whose transistors are properly sized so that the current-driving capability in each direction is equal to that of a matched inverter. For / Vt / =1 V and VDD =5 V, find the gate threshold in the case..

  Making use of the passive sign convention

1. Making use of the passive sign convention, determine the current flowing through a 220 nF capacitor for t>=0 if its voltage vc(t) is given by (a) -3.35V.  (b) 16.2e-9tV; (c) 8cos0.01tmV; (d) 5+9sin 0.08tV

  Calculate the formation factor for both cores and the model

Calculate the formation factor (F) for both cores and the model (using both values of mf) and plot all your results on a standard log-log cross-plot of F vs. porosity.

  What is the minimum required w/l for q5

Consider another possibility for the circuit in Fig. 16.7: Relabel the R input as S and the S input as R. Let S and R normally rest at VDD. Let the flip-flop be storing a 0; thus VQ = 0 V and VQ = VDD. To set the flip-flop, the S terminal is lower..

  What factor must the width of all transistors be increased

For the sense amplifier of Fig. 16.20, show that the time required for the bit lines to reach 0.9VDD and 0.1VDD is given by td = (CB/Gm ) ln (0.8VDD/?V ) , where ?V is the initial difference voltage between the two bit ines.

  Calculate the oil flow rate into the well

Calculate the oil flow rate into the well (bbl/D), if the bottomhole(well) pressure is 1800 psi and what is the value of skin factor?

  Sketch the following periodic wave-forms

Problem 2. Sketch  the following periodic wave-forms

  Floating point implementation of the radix

Fixed point and floating point implementation of the radix 2 FFT algorithm. Comparison of accuracy of the fixed point with floating point, sensitivity analysis to word size, pre-scaling and rounding.

  Plot frequency-gain dependence plot using plotting software

Write a report that summarizes this experiment. Your report brief must include: Plot the frequency-gain dependence plot using a plotting software (such as excel) and include it in your lab report.

  Comparison of d-type versus j-k flip-flops

The most common use for the NAND latch is as a switch debouncer. What is switch bounce, and why do we need to eliminate it?

  Identify relevant major processes in an apparel factory

Identify relevant major processes in an apparel factory. (you need a web survey). List and prioritize the processes suitable for conversion to a CIM environment.

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