Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Namespaces | Variables
getSpeedResults.py File Reference

Namespaces

 getSpeedResults
 

Variables

string getSpeedResults.commandLine = '--cycles_range main-_exit --profiler profOut --prof_range main-_exit -n'
 
list getSpeedResults.load_instr = ['LDSB_imm', 'LDSB_reg', 'LDSH_imm', 'LDSH_reg', 'LDUB_imm', 'LDUB_reg', 'LDUH_imm', 'LDUH_reg', 'LD_imm', 'LD_reg', 'LDD_imm', 'LDD_reg', 'LDSBA_reg', 'LDSHA_reg', 'LDUBA_reg', 'LDUHA_reg', 'LDA_reg', 'LDDA_reg']
 
list getSpeedResults.store_instr = ['STB_imm', 'STB_reg', 'STH_imm', 'STH_reg', 'ST_imm', 'ST_reg', 'STD_imm', 'STD_reg', 'STBA_reg', 'STHA_reg', 'STA_reg', 'STDA_reg']
 
list getSpeedResults.double_instr = ['LDD_imm', 'LDD_reg', 'LDDA_reg', 'STD_imm', 'STD_reg', 'STDA_reg']
 
tuple getSpeedResults.fileHandle = open('timeValidation.txt', 'w')
 
tuple getSpeedResults.orderedBenchmarks = sorted(sys.argv[2:])
 
tuple getSpeedResults.result = os.popen(sys.argv[1] + ' ' + commandLine + ' -a ' + benchmark)
 
tuple getSpeedResults.cycles = int(res.split()[6])
 
tuple getSpeedResults.profResFile = open('profOut_instr.csv', 'r')
 
tuple getSpeedResults.profResReader = csv.reader(profResFile, delimiter = ';')
 
int getSpeedResults.load = 0
 
int getSpeedResults.store = 0
 
int getSpeedResults.doubleOps = 0
 
tuple getSpeedResults.instructions = int(row[2])