Go to  COE485  Experiment  |    |       |    3   |    4    |         ECE Lab home

COE485 Computer Engineering Design Laboratory

Experiment 5

Microcoded CPU Design

Objectives

  The objective of this experiment is to design and implement a microcoded CPU using the ALTERA EPM series high-density programmable logic devices.

Preparation

  Review Chapter 7 of Computer Systems Organization & Architecture by John Carpinelli.

Equipment Needed

Background

  In this experiment, the student will design a microcoded CPU based on the ALTERA EPM7128S PLD. A VHDL will be develop based on the CPU design.

CPU Specifications

  The CPU must meet the following specifications.

In addition to the CPU design, your system must include program memory. Configure the EEPROM as locations 00H- 7FH and the RAM as locations 80H-FFH in your design.

 

Table 5.1: CPU instruction set.

Instruction

Opcode

Operation

NOP

000X

 No operation

LOAD

0010 G

 AC ¬ M[G]

LOADSP

0011 G

 SP ¬ G

STORE

010X G

 M[G] ¬ AC

MOVE

011X

 R ¬ AC

JUMP

100D G

 If D=0 or (D=1 and Z=1), jump to address G   If D=1 and Z=0, execute the next instruction

TEST

101D

 If D=0 Z ¬ V; If D=0 Z ¬ V’

ADD

1100

 AC ¬ AC + R

AND

1101

 AC ¬ AC & R

PUSH

1110

 M[--SP] ¬ A

POP

1111

 AC ¬ M[SP++]

Prelab Assignment

1.      Prepare a preliminary hardware design for your CPU. Explain the purpose of any temporary registers. Describe how the components communicate with each other and devices outside the CPU.

2.      Prepare a preliminarily commented version of the microcode for your system.

3.      Prepare a test program which demonstrates that your CPU successfully implements the given instruction set.

4.      Prepare a .VEC file with which to simulate your design for the EPM7128S.

5.      Prepare a schedule for this project. Include sufficient time to test both the hardware and software.

Lab Assignment

Build, test, simulate and debug your design until it works.

  Go to  COE485  Experiment  |    |    |    3   |    4    |         ECE Lab home