Docsity

Project 3 Report - Processor Design | CS 3220, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
GEORGIA INSTITUTE OF TECHNOLOGY
College of Computing
CS3220 | Processor Design
Spring 2000
CS3220 Issued: March 20, 2000
Project 3 Due: April 5, 2000
Purpose:
This project embodies the second ma jor point of the course: you
will build a translator to extend a hardware implementation to a
dierent instruction set.
Reading:
none
Problems:
1. Translator
2. Demo
HEADS UP:
Like Project 2, this pro ject requires a signicant amountofwork. Start early.
On-line copies of the linker and circuit (for reference) may be found on the project web
page:
http://www.cc.gatech.edu/classes/AY2000/cs3220 spring/project3/
CS3220 Spring 2000 {1{ March 20, 2000
pf2

Partial preview of the text

Download Project 3 Report - Processor Design | CS 3220 and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

GEORGIA INSTITUTE OF TECHNOLOGY

College of Computing

CS3220 | Pro cessor Design Spring 2000

CS3220 Issued: March 20, 2000 Pro ject 3 Due: April 5, 2000

Purp ose: This pro ject emb o dies the second ma jor p oint of the course: you will build a translator to extend a hardware implementation to a di erent instruction set.

Reading: none

Problems: 1. Translator

  1. Demo

HEADS UP:

Like Pro ject 2, this pro ject requires a signi cant amount of work. Start early.

On-line copies of the linker and circuit (for reference) may b e found on the pro ject web page: http://www.cc.gatech.edu /classe s/AY200 0/cs32 20 spring/project3/

CS3220 Spring 2000 { 1 { March 20, 2000

Problem 1: Translator

Mo dify the linker program to translate iJVM instructions to iMIPS instructions. The output should b e a .hex le which will execute on the msim simulator or on the iMIPS hardware.

We recommend the following approach (as discussed in class):

 Convert iJVM instructions into equivalent op erations on \virtual registers". Basically this amounts to converting each iJVM instruction into an iMIPS instruction except for pretending you have unlimited registers to b egin with. Extend the control- ow graph data structures (bb t and method info t) as required.  Assign virtual register numb ers to each argument, lo cal or temp orary data item by simulating the action of the iJVM instructions in the control- ow graph. Handle convergent edges in the graph by intro ducing extra MOVE instructions to rename any live registers.  Finish the data- ow analysis by determining the KILL p oints (and thus the live ranges) for the virtual registers.  OPTIONAL: Perform optimizations. E.g., remove dead MOVE instructions, do p eep- hole reordering to remove pip eline-induced NOP instructions, mayb e do constant prop- agation.  Perform physical register allo cation to convert the intermediate format into true iMIPS instructions.  Finish co de generation by mo difying linker.c as necessary, e.g., to insert iMIPS GOTOs and iMIPS startup co de.

Make your changes primarily by adding new passes over the BB data structure in the manner of rewrite method() along with any required changes to the wrapp er co de in linker.c.

A: Turn in your mo di ed co de indicating the changes.

Problem 2: Demo

Test your translator on the Fib.java and Mul.java programs in cs3220 tools/example/.

A: Turn in the Fib.hex and Mul.hex as generated by your trans- lator.

B: Demonstrate your translator converting and then executing one of the ab ove programs to a memb er of the course sta.

CS3220 Spring 2000 { 2 { March 20, 2000