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

 

COE485 Computer Engineering Design Laboratory

Experiment 4

Hardwired CPU Design

Objectives

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

Preparation

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

Equipment Needed

Background

In this experiment, the student will design a hardwired CPU based on the ALTERA EPM 7128S PLD. The EEPROM will be used as both program memory and data memory. A VHDL program will be developed based on the CPU design. The design must fit the EPM 7128S. The content of the accumulator must be displayed on the LEDs of the UP1 board.

CPU Specifications

Table 4.1:CPU instruction set.

Instruction

Opcode

Operation

ADD

00AAAAAA

AC ¬ AC + M[AAAAAA]

AND

01AAAAAA

AC ¬ AC & M[AAAAAA]

JMP

10AAAAAA

PC   ¬ AAAAAA

DEC

11XXXXXX

AC  ¬ AC - 1

Prelab Assignment

1.      Prepare a preliminary design for your CPU. Include a commented .VHD file.

2.      Prepare a .VEC file to simulate your design.

3.      Prepare a test program which, when stored in external memory, demonstrates that your CPU successfully implements the given instruction set.

Lab Assignment

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

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