SPARCjnr - Simulation of a Pipelined Processor


A SPARC like pipelined processor has been designed using Verilog Hardware Description Language. The design uses a 5 stage pipeline and a Harvard memory architecture. A subset of the full SPARC instruction set is supported. The subset is that described within your course notes and in the SPARCjnr - Introduction and Instruction Set documentation.

For this exercise you must investigate the behaviour of the design using the Verilog XL simulator. This advanced digital simulator allows you to track bus and register values as the simulated machine executes a machine code program.

Exercise Format

No formal lab time is set aside for this exercise and no marks will be awarded for completion. Completion of this exercise is therefore solely to help you to understand the detailed operation of a pipelined processor (this should help with your exam).

The exercise should take about 4 hours to complete.

The simulation will only run on a Sun computer, in particular the Sun computers in the Shackleton computer room (Building 44 room 1061).

Exercise 1

Exercise 2

The file ex2.asm is an assembly laguage version of the program defined in ex1.v.

Exercise 3

Exercise 3a

Exercise 3b

Exercise 3c


Iain McNally

12-2-2002