https://github.com/tmc/mips
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tmc/mips
- Owner: tmc
- License: isc
- Created: 2013-09-05T07:01:42.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T19:45:58.000Z (over 10 years ago)
- Last Synced: 2025-01-22T06:16:02.449Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 164 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
mips pipeline simulator
-----------------------
Implements a subset of the instruction set to show pipelining.
license: ISC
Features:
- Implements three branch prediction policies
Example:
$ go test -short
I#1 I#2 I#3 I#4 I#5 I#6
c#1 IF1 . . . . .
c#2 IF2 IF1 . . . .
c#3 IF3 IF2 . . . .
c#4 ID IF3 IF1 . . .
c#5 EX ID IF2 IF1 . .
c#6 MEM1 EX IF3 IF2 . .
c#7 MEM2 MEM1 ID IF3 IF1 .
c#8 MEM3 MEM2 EX ID (fl) .
c#9 WB MEM3 MEM1 EX IF1
c#10 WB MEM2 MEM1 IF2
c#11 MEM3 MEM2 IF3
c#12 WB MEM3 ID
c#13 WB EX
c#14 MEM1
c#15 MEM2
c#16 MEM3
c#17 WB
PASS
ok github.com/tmc/mips0.042s