1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200 |
- # test case 0
- # pc old out
- 0001100111111001
- # pc new out
- 0011001000010011
- # aluresult
- 01111001011111101111111010111110
- # zero
- -
- # wrdata
- 01111001010111101111101000001110
- # aluop
- ALU_OR
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01100001001011001110011010111000
- # readdata2
- 01111001010111101111101000001110
- # imm
- 01011000011110010001100000011010
- # branchtype
- BR_NOP
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_HU
- # wb rd
- 01001
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 1
- # pc old out
- 1010110011101101
- # pc new out
- 1010110011101101
- # aluresult
- 01001111101101001110111110110010
- # zero
- -
- # wrdata
- 00001001110010111100111110110001
- # aluop
- ALU_ADD
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01100100110001111011101010111010
- # readdata2
- 00001001110010111100111110110001
- # imm
- 01001111101101000100001011000101
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_B
- # wb rd
- 10001
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 2
- # pc old out
- 1000011111100100
- # pc new out
- 1110000011110101
- # aluresult
- 10110100000110111001011111011111
- # zero
- 0
- # wrdata
- 01100011000110111010101101001111
- # aluop
- ALU_SUB
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01111111111101101111000011110000
- # readdata2
- 01100011000110111010101101001111
- # imm
- 01001011111001001111000000000101
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_B
- # wb rd
- 00101
- # wb write
- 0
- # wb src
- WBS_OPC
- # test case 3
- # pc old out
- 0110101010101000
- # pc new out
- 0110101010101000
- # aluresult
- 11101100000110110111110001101100
- # zero
- 0
- # wrdata
- 00010011111001001110111000111100
- # aluop
- ALU_SUB
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01101000001111110110110011001111
- # readdata2
- 00010011111001001110111000111100
- # imm
- 00111011000011110100101110010010
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_B
- # wb rd
- 01111
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 4
- # pc old out
- 0100100100010111
- # pc new out
- 1100110110110001
- # aluresult
- 00001001001000101110000000000000
- # zero
- -
- # wrdata
- 01010100101000010101110011101101
- # aluop
- ALU_SLL
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01100100011111100111001001101111
- # readdata2
- 01010100101000010101110011101101
- # imm
- 01111011001100111000010010011010
- # branchtype
- BR_CNDI
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_B
- # wb rd
- 11100
- # wb write
- 0
- # wb src
- WBS_OPC
- # test case 5
- # pc old out
- 1111111000101011
- # pc new out
- 1010001001100001
- # aluresult
- 00100000010011001111111011111011
- # zero
- -
- # wrdata
- 01101010110101010010101001010001
- # aluop
- ALU_OR
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00011011001010001111011110010001
- # readdata2
- 01101010110101010010101001010001
- # imm
- 00100000010011001010101011010000
- # branchtype
- BR_BR
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_HU
- # wb rd
- 10100
- # wb write
- 0
- # wb src
- WBS_MEM
- # test case 6
- # pc old out
- 1100101000100000
- # pc new out
- 1100101000100000
- # aluresult
- 11010101100100010001110100011011
- # zero
- -
- # wrdata
- 01100111111110001000101100110101
- # aluop
- ALU_ADD
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01101101100110001001000111100110
- # readdata2
- 01100111111110001000101100110101
- # imm
- 01110010111000100100000011010101
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_B
- # wb rd
- 10000
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 7
- # pc old out
- 1010101010101010
- # pc new out
- 1010101010101010
- # aluresult
- 01101011011001111001111110011000
- # zero
- -
- # wrdata
- 01101011011001111001111110011000
- # aluop
- ALU_NOP
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01011110101010011101000100011100
- # readdata2
- 01101011011001111001111110011000
- # imm
- 00101000010100111000100001001110
- # branchtype
- BR_BR
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_H
- # wb rd
- 10010
- # wb write
- 0
- # wb src
- WBS_MEM
- # test case 8
- # pc old out
- 0111110001000011
- # pc new out
- 0111110001000011
- # aluresult
- 00000000000000000011110000000010
- # zero
- -
- # wrdata
- 01011100110111011010001011101011
- # aluop
- ALU_AND
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01000111001100000001110110101010
- # readdata2
- 01011100110111011010001011101011
- # imm
- 00101111110100100011111000100110
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 11010
- # wb write
- 1
- # wb src
- WBS_OPC
- # test case 9
- # pc old out
- 0101001010011110
- # pc new out
- 0011111010000101
- # aluresult
- 01000000110011110110000101111011
- # zero
- -
- # wrdata
- 01001111010001000000011001001001
- # aluop
- ALU_XOR
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00001101010001101000101010011100
- # readdata2
- 01001111010001000000011001001001
- # imm
- 01001101100010011110101111100111
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_H
- # wb rd
- 11001
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 10
- # pc old out
- 0100100100101100
- # pc new out
- 0100100100101100
- # aluresult
- 00000000000000000000000000000001
- # zero
- 0
- # wrdata
- 01001111010001011001000111100001
- # aluop
- ALU_SLTU
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00011000001010110110010011100001
- # readdata2
- 01001111010001011001000111100001
- # imm
- 01110101010011111110100010010001
- # branchtype
- BR_BR
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_BU
- # wb rd
- 00011
- # wb write
- 0
- # wb src
- WBS_OPC
- # test case 11
- # pc old out
- 1100101111010101
- # pc new out
- 1100101111010101
- # aluresult
- 00000000000001100101111010101000
- # zero
- -
- # wrdata
- 01100100000100011100101100000011
- # aluop
- ALU_SLL
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01011111101100000100110011100011
- # readdata2
- 01100100000100011100101100000011
- # imm
- 01101010000010001011000000101100
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_W
- # wb rd
- 00100
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 12
- # pc old out
- 0010001010010111
- # pc new out
- 0010001010010111
- # aluresult
- 00000000010010100100000010000001
- # zero
- -
- # wrdata
- 01111110100101111011111110100110
- # aluop
- ALU_AND
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00011100010011110101000010010011
- # readdata2
- 01111110100101111011111110100110
- # imm
- 01100011111110100100001011100101
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_HU
- # wb rd
- 11100
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 13
- # pc old out
- 1100011101001101
- # pc new out
- 1100011101001101
- # aluresult
- 00101110011111010101110001010111
- # zero
- -
- # wrdata
- 00100001000110100111000101010110
- # aluop
- ALU_ADD
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00000010101110111010111011111111
- # readdata2
- 00100001000110100111000101010110
- # imm
- 00101110011111001001010100001010
- # branchtype
- BR_CND
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 10101
- # wb write
- 1
- # wb src
- WBS_OPC
- # test case 14
- # pc old out
- 1010000010001111
- # pc new out
- 1010000010001111
- # aluresult
- 10111101000111010000001000010011
- # zero
- -
- # wrdata
- 01111000010000101101010001011110
- # aluop
- ALU_ADD
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01000100110110100010110110110101
- # readdata2
- 01111000010000101101010001011110
- # imm
- 00011000110100010111000100000011
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_W
- # wb rd
- 01101
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 15
- # pc old out
- 1010001000100001
- # pc new out
- 0100101100110111
- # aluresult
- 00111111011111111010101110010111
- # zero
- -
- # wrdata
- 00110000001111010011011111100110
- # aluop
- ALU_OR
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00111101001101101000001010000101
- # readdata2
- 00110000001111010011011111100110
- # imm
- 00000010011111011010100100010110
- # branchtype
- BR_CNDI
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_B
- # wb rd
- 01010
- # wb write
- 1
- # wb src
- WBS_OPC
- # test case 16
- # pc old out
- 0101010011010010
- # pc new out
- 1001000010101101
- # aluresult
- 00000000000000000000000000000001
- # zero
- 0
- # wrdata
- 01100101010100000101011100111001
- # aluop
- ALU_SLT
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00111010101100111101100111111001
- # readdata2
- 01100101010100000101011100111001
- # imm
- 00111010100011110011101111011011
- # branchtype
- BR_NOP
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_HU
- # wb rd
- 10010
- # wb write
- 0
- # wb src
- WBS_MEM
- # test case 17
- # pc old out
- 1110111100101011
- # pc new out
- 0110101001100110
- # aluresult
- 00000000000000000000000000110100
- # zero
- -
- # wrdata
- 01111101111010010110100010111000
- # aluop
- ALU_SRA
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00110100111001001000010010001011
- # readdata2
- 01111101111010010110100010111000
- # imm
- 00010111110001010111101100111011
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_W
- # wb rd
- 01100
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 18
- # pc old out
- 0101101001100011
- # pc new out
- 0101101001100011
- # aluresult
- 00011111110111111011011110000111
- # zero
- 0
- # wrdata
- 00100001100011011010011001001110
- # aluop
- ALU_SUB
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01110000000001100000010110100101
- # readdata2
- 00100001100011011010011001001110
- # imm
- 01010000001001100100111000011110
- # branchtype
- BR_BR
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_W
- # wb rd
- 00000
- # wb write
- 0
- # wb src
- WBS_OPC
- # test case 19
- # pc old out
- 0000000100101011
- # pc new out
- 0001010010110000
- # aluresult
- 01111111011111111101111111111111
- # zero
- -
- # wrdata
- 01111101001101100100101110111011
- # aluop
- ALU_OR
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01101111011011111101110011000111
- # readdata2
- 01111101001101100100101110111011
- # imm
- 01001111000100100001001110000101
- # branchtype
- BR_BR
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_H
- # wb rd
- 10001
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 20
- # pc old out
- 0100110001010010
- # pc new out
- 1100100000110011
- # aluresult
- 01111100010100111010101000011000
- # zero
- -
- # wrdata
- 00111010010010011110111000110011
- # aluop
- ALU_XOR
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01001100000110001110000111101001
- # readdata2
- 00111010010010011110111000110011
- # imm
- 01111100010100111110011001001010
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 01111
- # wb write
- 1
- # wb src
- WBS_OPC
- # test case 21
- # pc old out
- 1100001010011101
- # pc new out
- 1010101010011100
- # aluresult
- 00011011010000001000111111011100
- # zero
- -
- # wrdata
- 00000111111000111111111001011000
- # aluop
- ALU_XOR
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01001100100100000101110101011011
- # readdata2
- 00000111111000111111111001011000
- # imm
- 00011011010000000100110101000001
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_BU
- # wb rd
- 00001
- # wb write
- 0
- # wb src
- WBS_OPC
- # test case 22
- # pc old out
- 0111001111010101
- # pc new out
- 0111001111010101
- # aluresult
- 00111000100110010010110010101010
- # zero
- -
- # wrdata
- 01001110010100110100100010000100
- # aluop
- ALU_NOP
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00111110011010010001100111110001
- # readdata2
- 01001110010100110100100010000100
- # imm
- 00111000100110010010110010101010
- # branchtype
- BR_CND
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 10000
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 23
- # pc old out
- 0101011111110110
- # pc new out
- 0101011111110110
- # aluresult
- 01111100010111111011010001000001
- # zero
- 0
- # wrdata
- 00000001101010101010000011111101
- # aluop
- ALU_SUB
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01111110000010100101010100111110
- # readdata2
- 00000001101010101010000011111101
- # imm
- 01100111101001110001010101011000
- # branchtype
- BR_BR
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_B
- # wb rd
- 10011
- # wb write
- 1
- # wb src
- WBS_OPC
- # test case 24
- # pc old out
- 0001000110000100
- # pc new out
- 0001010100111000
- # aluresult
- 11111100110111111111010000100110
- # zero
- 0
- # wrdata
- 01110001100111010010110011100101
- # aluop
- ALU_SUB
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00011001100100001111011111011010
- # readdata2
- 01110001100111010010110011100101
- # imm
- 00000011001000000001110101011110
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 01110
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 25
- # pc old out
- 1100000110110001
- # pc new out
- 1100000110110001
- # aluresult
- 00000000000000000000000000000001
- # zero
- 0
- # wrdata
- 01101010100000110101000101010001
- # aluop
- ALU_SLT
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00110011111100011001110101011011
- # readdata2
- 01101010100000110101000101010001
- # imm
- 00001001000110101001000111000000
- # branchtype
- BR_BR
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_B
- # wb rd
- 01110
- # wb write
- 0
- # wb src
- WBS_MEM
- # test case 26
- # pc old out
- 0111111011011111
- # pc new out
- 1111000001011110
- # aluresult
- 01010011000101010111011001110101
- # zero
- -
- # wrdata
- 01001110001011110110111011111110
- # aluop
- ALU_ADD
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01010011111110011111100011001000
- # readdata2
- 01001110001011110110111011111110
- # imm
- 01010011000101001111011110010110
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_W
- # wb rd
- 00100
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 27
- # pc old out
- 1100011000000001
- # pc new out
- 1100011000000001
- # aluresult
- 00110001100000000100000000000000
- # zero
- -
- # wrdata
- 01101110011011001101111000001110
- # aluop
- ALU_SLL
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00110010111100000001001010100100
- # readdata2
- 01101110011011001101111000001110
- # imm
- 00101100110111001000110001100111
- # branchtype
- BR_BR
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_W
- # wb rd
- 10101
- # wb write
- 1
- # wb src
- WBS_OPC
- # test case 28
- # pc old out
- 1010101011101001
- # pc new out
- 1010101011101001
- # aluresult
- 00000000000000000000000000000000
- # zero
- -
- # wrdata
- 01100011000001101111011111011110
- # aluop
- ALU_SRL
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00111100110111101100100010101011
- # readdata2
- 01100011000001101111011111011110
- # imm
- 01101010101111101100111110001010
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_HU
- # wb rd
- 11001
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 29
- # pc old out
- 1110110010100010
- # pc new out
- 1110110010100010
- # aluresult
- 00011110000111000001010101111110
- # zero
- -
- # wrdata
- 01110001110111000110100111111101
- # aluop
- ALU_XOR
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01010111001100000000011000010001
- # readdata2
- 01110001110111000110100111111101
- # imm
- 00011110000111001111100111011100
- # branchtype
- BR_CNDI
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_BU
- # wb rd
- 01100
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 30
- # pc old out
- 0100010011100111
- # pc new out
- 0100000011111100
- # aluresult
- 00000000000000000000000000000000
- # zero
- 1
- # wrdata
- 01000000110010010110101101101000
- # aluop
- ALU_SLTU
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01110111010111011000110100010110
- # readdata2
- 01000000110010010110101101101000
- # imm
- 01001111011100101111110000010101
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_W
- # wb rd
- 01001
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 31
- # pc old out
- 0111000111110110
- # pc new out
- 0111000111110110
- # aluresult
- 11110000011111011000011111111100
- # zero
- 0
- # wrdata
- 00001111100000101110100111111010
- # aluop
- ALU_SUB
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00011101001010110010100000010100
- # readdata2
- 00001111100000101110100111111010
- # imm
- 01101001101000100111010100011011
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 10010
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 32
- # pc old out
- 0000000011010001
- # pc new out
- 1100111101011100
- # aluresult
- 10111100101111010010100010100010
- # zero
- 0
- # wrdata
- 01000011010000101101100000101111
- # aluop
- ALU_SUB
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00000011001110010010000001111100
- # readdata2
- 01000011010000101101100000101111
- # imm
- 01111001001000101100111010001011
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 11110
- # wb write
- 0
- # wb src
- WBS_OPC
- # test case 33
- # pc old out
- 0000000000110110
- # pc new out
- 0000000000110110
- # aluresult
- 10111011100110100100011100100101
- # zero
- -
- # wrdata
- 00001000101101100010011100110111
- # aluop
- ALU_ADD
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01000011011101010100111100101001
- # readdata2
- 00001000101101100010011100110111
- # imm
- 01111000001001001111011111111100
- # branchtype
- BR_CND
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_HU
- # wb rd
- 00011
- # wb write
- 1
- # wb src
- WBS_OPC
- # test case 34
- # pc old out
- 1000110011101110
- # pc new out
- 1011101001110101
- # aluresult
- 00000001000110011101110000000000
- # zero
- -
- # wrdata
- 00110101001000011111001100101001
- # aluop
- ALU_SLL
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00100101101000101111111011110001
- # readdata2
- 00110101001000011111001100101001
- # imm
- 01011011110110000010110110000111
- # branchtype
- BR_BR
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_W
- # wb rd
- 00011
- # wb write
- 0
- # wb src
- WBS_MEM
- # test case 35
- # pc old out
- 1011010111011110
- # pc new out
- 1110001100010010
- # aluresult
- 01100010111011101010000100100011
- # zero
- -
- # wrdata
- 01100000000100000010011001100100
- # aluop
- ALU_XOR
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00011111110101011100111000010101
- # readdata2
- 01100000000100000010011001100100
- # imm
- 01100010111011100001010011111101
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_B
- # wb rd
- 00101
- # wb write
- 0
- # wb src
- WBS_OPC
- # test case 36
- # pc old out
- 1111000100011011
- # pc new out
- 1001111010101010
- # aluresult
- 00000000000000000000000000000000
- # zero
- 1
- # wrdata
- 00111100101000010000010011101011
- # aluop
- ALU_SLT
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01001100011011101110111100001001
- # readdata2
- 00111100101000010000010011101011
- # imm
- 00100000101001111010110110001111
- # branchtype
- BR_NOP
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_BU
- # wb rd
- 00110
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 37
- # pc old out
- 1000101110111111
- # pc new out
- 1110011100011111
- # aluresult
- 00110011001110110101101101100000
- # zero
- -
- # wrdata
- 01010101010001001011110000110001
- # aluop
- ALU_NOP
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00010011001001101001000011101000
- # readdata2
- 01010101010001001011110000110001
- # imm
- 00110011001110110101101101100000
- # branchtype
- BR_NOP
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_HU
- # wb rd
- 01111
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 38
- # pc old out
- 0010011000001101
- # pc new out
- 0101011110110110
- # aluresult
- 10011011100110001001110100110101
- # zero
- 0
- # wrdata
- 01110111011000001001101110001001
- # aluop
- ALU_SUB
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00001010100011011100111011011110
- # readdata2
- 01110111011000001001101110001001
- # imm
- 01101110111101010011000110101001
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_H
- # wb rd
- 01001
- # wb write
- 0
- # wb src
- WBS_MEM
- # test case 39
- # pc old out
- 1110101101000101
- # pc new out
- 1000011001000000
- # aluresult
- 00000001110011111111111111010101
- # zero
- -
- # wrdata
- 01101011010001100110111001100010
- # aluop
- ALU_OR
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00010110010111111110100001101100
- # readdata2
- 01101011010001100110111001100010
- # imm
- 00000001110011111001110111010100
- # branchtype
- BR_BR
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_W
- # wb rd
- 10110
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 40
- # pc old out
- 1010100001001110
- # pc new out
- 0100111010010011
- # aluresult
- 00001010111110001001101100001010
- # zero
- -
- # wrdata
- 00110001010001111110011000100000
- # aluop
- ALU_XOR
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01101111010011010011110101001111
- # readdata2
- 00110001010001111110011000100000
- # imm
- 01100101101101011010011001000101
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_B
- # wb rd
- 01001
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 41
- # pc old out
- 1110010000011110
- # pc new out
- 1110010000011110
- # aluresult
- 00110101011100011101010001011010
- # zero
- -
- # wrdata
- 00000100110110000100100111111100
- # aluop
- ALU_NOP
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00001111100010000111000000101100
- # readdata2
- 00000100110110000100100111111100
- # imm
- 00110101011100011101010001011010
- # branchtype
- BR_BR
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_HU
- # wb rd
- 11100
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 42
- # pc old out
- 1111000011111110
- # pc new out
- 1000000011010110
- # aluresult
- 00000000000000001101000101010100
- # zero
- -
- # wrdata
- 00111011100010100101000100001111
- # aluop
- ALU_SRL
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01101000101010100100100000100000
- # readdata2
- 00111011100010100101000100001111
- # imm
- 01101100000001101000111111011000
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_HU
- # wb rd
- 11100
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 43
- # pc old out
- 0001000011111011
- # pc new out
- 0001000011111011
- # aluresult
- 00000000000000000000000000000000
- # zero
- 1
- # wrdata
- 01000101010010011110000111011010
- # aluop
- ALU_SLT
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01101001101110001101000010101011
- # readdata2
- 01000101010010011110000111011010
- # imm
- 01010111100000001110010101110100
- # branchtype
- BR_CNDI
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_BU
- # wb rd
- 10101
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 44
- # pc old out
- 0010101000011000
- # pc new out
- 1001000011101011
- # aluresult
- 00000000000000000000000000000001
- # zero
- 0
- # wrdata
- 00011000010100011100011110010001
- # aluop
- ALU_SLT
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00001101100100111011101001110111
- # readdata2
- 00011000010100011100011110010001
- # imm
- 00010001101110001101011001110100
- # branchtype
- BR_BR
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_H
- # wb rd
- 11000
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 45
- # pc old out
- 1111100000101011
- # pc new out
- 0001111001001101
- # aluresult
- 00000000000000000000000000000000
- # zero
- 1
- # wrdata
- 00111110010010001001011001110001
- # aluop
- ALU_SLT
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01111011001111110010001101000101
- # readdata2
- 00111110010010001001011001110001
- # imm
- 01110110101111000010011000100010
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_BU
- # wb rd
- 00010
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 46
- # pc old out
- 0010100011101111
- # pc new out
- 0010100011101111
- # aluresult
- 01110011100110000010100101001000
- # zero
- -
- # wrdata
- 00011111011001011000000001000100
- # aluop
- ALU_XOR
- # alusrc1
- 1
- # alusrc2
- 1
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00001101101001111011011101111000
- # readdata2
- 00011111011001011000000001000100
- # imm
- 01110011100110000000000110100111
- # branchtype
- BR_CND
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_BU
- # wb rd
- 01001
- # wb write
- 1
- # wb src
- WBS_ALU
- # test case 47
- # pc old out
- 0010111000010100
- # pc new out
- 0010111000010100
- # aluresult
- 00000000000000000000010101111101
- # zero
- -
- # wrdata
- 00100001010011010110000011010001
- # aluop
- ALU_SRA
- # alusrc1
- 0
- # alusrc2
- 0
- # alusrc3
- 0
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00001010111110101100100110111010
- # readdata2
- 00100001010011010110000011010001
- # imm
- 01010110011010011000111101101001
- # branchtype
- BR_NOP
- # memread
- 0
- # memwrite
- 1
- # memtype
- MEM_HU
- # wb rd
- 01111
- # wb write
- 0
- # wb src
- WBS_ALU
- # test case 48
- # pc old out
- 0000010100010001
- # pc new out
- 1101111000010100
- # aluresult
- 01101001000110100000010001001010
- # zero
- -
- # wrdata
- 01101001000110100000000101011011
- # aluop
- ALU_XOR
- # alusrc1
- 1
- # alusrc2
- 0
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 00000110111001101000000101100001
- # readdata2
- 01101001000110100000000101011011
- # imm
- 00100110101110111101100100000011
- # branchtype
- BR_NOP
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_B
- # wb rd
- 11100
- # wb write
- 1
- # wb src
- WBS_MEM
- # test case 49
- # pc old out
- 1000101111100101
- # pc new out
- 1011111010111000
- # aluresult
- 11111011110010001100110010011100
- # zero
- 0
- # wrdata
- 01110110001110100101101101111111
- # aluop
- ALU_SUB
- # alusrc1
- 0
- # alusrc2
- 1
- # alusrc3
- 1
- # rs1
- 00000
- # rs2
- 00000
- # readdata1
- 01011001001010111111111101101111
- # readdata2
- 01110110001110100101101101111111
- # imm
- 01011101011000110011001011010011
- # branchtype
- BR_CNDI
- # memread
- 1
- # memwrite
- 0
- # memtype
- MEM_B
- # wb rd
- 00000
- # wb write
- 1
- # wb src
- WBS_OPC
|