Skip to content

This is a simulator for Speculative Tomasulo algorithm as a homework in SYSU.

License

Notifications You must be signed in to change notification settings

yixiak/tomasulo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tomasulo Simulator

This is a simulator for Speculative Tomasulo algorithm.

Detail

The project is based on the following principles:

  • There is 1 FP Adder and 1 FP Multipler
  • In reservation station,there are 3 Load,3 Store,2 fadd and 2 fmult.
  • Record Buffer has 8 entries.
  • the instruction will begin execute 1 cycle after others write back the required result.
  • floatpoit registers are initialized to 1.00
Instruction Ex cycle
Load 2
Store 2
Fadd 2
Fmult 10
Fdiv 20

Test Instruction

// input1
LD F6 34+ R2
LD F2 45+ R3
MULTD 0 F2 F4
SUBD F8 F6 F2
DIVD F10 F0 F6
ADDD F6 F8 F2
// input 2
LD F2 0 R2
LD F4 0 R3
DIVD F0 F4 F2
MULTD F6 F0 F2
ADDD F0 F4 F2
SD F6 0 R3
MULTD F6 F0 F2
SD F6 0 R1

Reference

GZTimeWalker/tomasulo-sim

About

This is a simulator for Speculative Tomasulo algorithm as a homework in SYSU.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages