Go to  ECE495  Experiment  |    |    |    |     |    Parts List    |  Lab Manuals  |   ECE Lab home

 

ECE495 Computer Engineering Design Laboratory

Experiment 4

Simple CPU Design

Objectives

The objective of this experiment is to design and implement a simple CPU using the ALTERA EPM series high-density programmable logic devices. A VHDL program based on a behavioral description will be developed to model the CPU

Preparation

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

Equipment Needed

References

 

Background

In this experiment, you will design a simple CPU based on the ALTERA EPM 7128S PLD. The EEPROM will be used as both program memory and data memory. A VHDL program based on a behavioral approach will be developed to model the CPU. The design must fit the EPM 7128S device and the content of the accumulator should be displayed.

CPU Specifications

The CPU must meet the following specifications.

Table 4.1:CPU instruction set.

Instruction

Opcode

Operation

ADD

00AAAAAA

A   ¬ A   +   M [AAAAAA]

AND

01AAAAAA

A   ¬ A   &   M [AAAAAA]

JMP

10AAAAAA

PC  ¬ AAAAAA

DEC

11XXXXXX

A    ¬ A - 1

Prelab Assignment

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

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

3.      Prepare the program needed to store into the EEPROM to test the CPU.

Lab Assignment

Develop VHDL code using a behavioral approach for the CPU described above. Program, debug and test your design. For final demonstration, your CPU should be able to run a test program and display the result of A.

Go to  ECE495  Experiment  |    |    |    |     |    Parts List    |  Lab Manuals  |   ECE Lab home