Skip to content

Commit

Permalink
MAIN modes driver
Browse files Browse the repository at this point in the history
  • Loading branch information
mnb27 authored Jun 23, 2020
1 parent de58781 commit 000d12e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions MAIN.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import subprocess
print('\n')
print(":::::::::: RISC V SIMULATOR :::::::::::::")
print('\n')

#cmd = input("Enable cache ? (y/n) ")

op = input("Press 1 for GUI and 2 to continue in terminal: ")

if op=="2": #in terminal
print(":: Modes ::")
print("1) Without Pipelining")
print("2) With Pipelining but no data forwarding")
print("3) With Pipelining and data forwarding")
print('\n')

mode = input("Enter Mode 1/2/3: ")

if mode!="1":
knob1 = input("Enable 1-bit branch predictor ? (y/n) ")

if mode=="1":
subprocess.call(['python3', 'unpipelined.py']) #unpipelined
elif mode=="2" and knob1!="y":
subprocess.call(['python3', 'stall_no_dataforwarding.py']) #pipline without datafrwd
elif mode=="3" and knob1!="y":
subprocess.call(['python3', 'stalling_dataforwarding.py']) #pipline with dataforwd
elif knob1=="y":
subprocess.call(['python3', 'predictor.py']) #pipeline with 1 bit predictor


elif op=="1": #in GUI
subprocess.call(['python3', 'simulator_front_end.py'])


0 comments on commit 000d12e

Please sign in to comment.