bruno nova preparação da dissertação supervisor: antónio araújo mieic – feup

14
TOOL TO SUPPORT COMPUTER ARCHITECTURE TEACHING AND LEARNING Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Upload: dominick-redford

Post on 31-Mar-2015

232 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

TOOL TO SUPPORT COMPUTER

ARCHITECTURE TEACHING AND LEARNING

Bruno Nova

Preparação da Dissertação

Supervisor: António Araújo

MIEIC – FEUP

Page 2: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 2

Agenda

Context The problem Some existing tools Proposed solution Technology to be used Work plan

23/01/2013

Page 3: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 3

Context

Computer architectureSubject of courses like:

○ Informatics Engineering○ Electrical Engineering

Students learn topics like:○ Data representation and circuits○ Composition of a CPU○ Programming in assembly○ Processor performance

MIPS usually used

23/01/2013

Page 4: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 4

The problem

Students have difficulties understanding:CPU datapath and controlProcessor pipelining

○ General operation○ Advantages ○ Hazards

Performance calculation…

23/01/2013

Page 5: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 5

The problem

Why do students have these difficulties?Absence of tools that:

○ Are geared towards education○ Show the CPU state in each execution step○ Represent the datapath graphically○ Simulate both unicycle and pipeline versions○ Are simple to use and understand

Some tools exist, but none covers all these aspects

23/01/2013

Page 6: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 6

Some existing tools

MARS

23/01/2013

Source: [1]

No pipeline

No visual datapath

Page 7: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 7

Some existing tools

ProcSim

23/01/2013

Source: [2]

Few instructions

No pipeline

Sequential animation

Page 8: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 8

Some existing tools

MIPS-Datapath

23/01/2013

Source: [3]

Few instructions

Bad state visualization

Lim. hazards detection

Page 9: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 9

Some existing tools

WebMIPS

23/01/2013

Source: [4]

Static datapath

Click for inputs/outputs

Page 10: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 10

Proposed solution

Create a simulator of a MIPS CPU that:Integrates various features:

○ Simulate unicycle and pipelined versions○ Show detailed information step-by-step

Displaying the datapath graphically

○ Execute programs or single instructions○ Identify the critical path and performance○ Allow configuration of the datapath

By parameterizing blocks

Reuses or interacts with existing toolsIs intuitive and simple to use

23/01/2013

Page 11: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 11

Technology to be used

MIPS architecture Developed in Java

Cross-platform language Simplified version for Android tablets

Which use Java tooNothing like this exists

Reuse work already done

23/01/2013

Page 12: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 12

Work plan Requirements specification (1 week)

Interface specification (1 week)

Non-functional prototype Implementation (13 weeks)

Internal CPU representation (3 weeks)

Editor and simulation (4 weeks)

○ Unicycle○ Pipeline

Datapath configuration (2 weeks)

Android version (4 weeks)

Documentation and report (2 weeks)

23/01/2013

Page 13: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 13

References[1] Dr. Kenneth Vollmar and Dr. Pete Sanderson. MARS: An

Education-Oriented MIPS Assembly Language Simulator. March 2006. Accessed on January 7, 2013. http://www.cs.missouristate.edu/~vollmar/MARS/fp288-vollmar.pdf.

[2] James Garton. ProcessorSim – A Visual MIPS R2000 Processor Simulator, 2005. Accessed on January 7, 2013. http://jamesgart.com/procsim.

[3] Andrew Gascoyne-Cecil. MIPS-Datapath. Accessed on January 7, 2013. http://mi.eng.cam.ac.uk/~ahg/MIPS-Datapath.

[4] Irina Branovic, Roberto Giorgi, and Enrico Martinelli. WebMIPS: A New Web-Based MIPS Simulation Environment for Computer Architecture Education. Workshop on Computer Architecture Education, 31st International Symposium on Computer Architecture, 2004. Accessed on January 8, 2013. http://www4.ncsu.edu/~efg/wcae/2004/submissions/giorgi.pdf.

23/01/2013

Page 14: Bruno Nova Preparação da Dissertação Supervisor: António Araújo MIEIC – FEUP

Preparação da Dissertação - MIEIC - FEUP 14

Questions?

23/01/2013