input.txt 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600
  1. # test case 0
  2. # stall
  3. 0
  4. # flush
  5. 0
  6. # pc
  7. 0001100111111001
  8. # aluop
  9. ALU_OR
  10. # alusrc1
  11. 0
  12. # alusrc2
  13. 0
  14. # alusrc3
  15. 1
  16. # rs1
  17. 00000
  18. # rs2
  19. 00000
  20. # readdata1
  21. 01100001001011001110011010111000
  22. # readdata2
  23. 01111001010111101111101000001110
  24. # imm
  25. 01011000011110010001100000011010
  26. # branchtype
  27. BR_NOP
  28. # memread
  29. 1
  30. # memwrite
  31. 0
  32. # memtype
  33. MEM_HU
  34. # wb rd
  35. 01001
  36. # wb write
  37. 1
  38. # wb src
  39. WBS_MEM
  40. # reg write mem write
  41. 1
  42. # reg write mem reg
  43. 00001
  44. # reg write mem data
  45. 00100001011110110100100101010010
  46. # reg write wr write
  47. 0
  48. # reg write wr reg
  49. 11101
  50. # reg write wr data
  51. 01110010101101001011100111101011
  52. # test case 1
  53. # stall
  54. 0
  55. # flush
  56. 0
  57. # pc
  58. 1010110011101101
  59. # aluop
  60. ALU_ADD
  61. # alusrc1
  62. 1
  63. # alusrc2
  64. 1
  65. # alusrc3
  66. 0
  67. # rs1
  68. 00000
  69. # rs2
  70. 00000
  71. # readdata1
  72. 01100100110001111011101010111010
  73. # readdata2
  74. 00001001110010111100111110110001
  75. # imm
  76. 01001111101101000100001011000101
  77. # branchtype
  78. BR_CNDI
  79. # memread
  80. 0
  81. # memwrite
  82. 1
  83. # memtype
  84. MEM_B
  85. # wb rd
  86. 10001
  87. # wb write
  88. 1
  89. # wb src
  90. WBS_ALU
  91. # reg write mem write
  92. 1
  93. # reg write mem reg
  94. 10110
  95. # reg write mem data
  96. 01010111111111110001111100100010
  97. # reg write wr write
  98. 1
  99. # reg write wr reg
  100. 10000
  101. # reg write wr data
  102. 00000100010110110001111001011010
  103. # test case 2
  104. # stall
  105. 0
  106. # flush
  107. 0
  108. # pc
  109. 1000011111100100
  110. # aluop
  111. ALU_SUB
  112. # alusrc1
  113. 1
  114. # alusrc2
  115. 1
  116. # alusrc3
  117. 1
  118. # rs1
  119. 00000
  120. # rs2
  121. 00000
  122. # readdata1
  123. 01111111111101101111000011110000
  124. # readdata2
  125. 01100011000110111010101101001111
  126. # imm
  127. 01001011111001001111000000000101
  128. # branchtype
  129. BR_NOP
  130. # memread
  131. 0
  132. # memwrite
  133. 1
  134. # memtype
  135. MEM_B
  136. # wb rd
  137. 00101
  138. # wb write
  139. 0
  140. # wb src
  141. WBS_OPC
  142. # reg write mem write
  143. 0
  144. # reg write mem reg
  145. 11001
  146. # reg write mem data
  147. 01001000100011111001110111111001
  148. # reg write wr write
  149. 0
  150. # reg write wr reg
  151. 11110
  152. # reg write wr data
  153. 00100000010101010011000110110000
  154. # test case 3
  155. # stall
  156. 0
  157. # flush
  158. 0
  159. # pc
  160. 0110101010101000
  161. # aluop
  162. ALU_SUB
  163. # alusrc1
  164. 1
  165. # alusrc2
  166. 0
  167. # alusrc3
  168. 0
  169. # rs1
  170. 00000
  171. # rs2
  172. 00000
  173. # readdata1
  174. 01101000001111110110110011001111
  175. # readdata2
  176. 00010011111001001110111000111100
  177. # imm
  178. 00111011000011110100101110010010
  179. # branchtype
  180. BR_CND
  181. # memread
  182. 1
  183. # memwrite
  184. 0
  185. # memtype
  186. MEM_B
  187. # wb rd
  188. 01111
  189. # wb write
  190. 1
  191. # wb src
  192. WBS_MEM
  193. # reg write mem write
  194. 0
  195. # reg write mem reg
  196. 01100
  197. # reg write mem data
  198. 01110000010101010111011110111111
  199. # reg write wr write
  200. 1
  201. # reg write wr reg
  202. 10010
  203. # reg write wr data
  204. 00010011001100011110011101010111
  205. # test case 4
  206. # stall
  207. 0
  208. # flush
  209. 0
  210. # pc
  211. 0100100100010111
  212. # aluop
  213. ALU_SLL
  214. # alusrc1
  215. 1
  216. # alusrc2
  217. 0
  218. # alusrc3
  219. 1
  220. # rs1
  221. 00000
  222. # rs2
  223. 00000
  224. # readdata1
  225. 01100100011111100111001001101111
  226. # readdata2
  227. 01010100101000010101110011101101
  228. # imm
  229. 01111011001100111000010010011010
  230. # branchtype
  231. BR_CNDI
  232. # memread
  233. 1
  234. # memwrite
  235. 0
  236. # memtype
  237. MEM_B
  238. # wb rd
  239. 11100
  240. # wb write
  241. 0
  242. # wb src
  243. WBS_OPC
  244. # reg write mem write
  245. 0
  246. # reg write mem reg
  247. 00010
  248. # reg write mem data
  249. 01100011111001110000001001111011
  250. # reg write wr write
  251. 0
  252. # reg write wr reg
  253. 10101
  254. # reg write wr data
  255. 01001101101001011111011011000110
  256. # test case 5
  257. # stall
  258. 0
  259. # flush
  260. 0
  261. # pc
  262. 1111111000101011
  263. # aluop
  264. ALU_OR
  265. # alusrc1
  266. 1
  267. # alusrc2
  268. 1
  269. # alusrc3
  270. 1
  271. # rs1
  272. 00000
  273. # rs2
  274. 00000
  275. # readdata1
  276. 00011011001010001111011110010001
  277. # readdata2
  278. 01101010110101010010101001010001
  279. # imm
  280. 00100000010011001010101011010000
  281. # branchtype
  282. BR_BR
  283. # memread
  284. 1
  285. # memwrite
  286. 0
  287. # memtype
  288. MEM_HU
  289. # wb rd
  290. 10100
  291. # wb write
  292. 0
  293. # wb src
  294. WBS_MEM
  295. # reg write mem write
  296. 0
  297. # reg write mem reg
  298. 01000
  299. # reg write mem data
  300. 01110000101010000000100001110100
  301. # reg write wr write
  302. 1
  303. # reg write wr reg
  304. 00010
  305. # reg write wr data
  306. 01101010110001011011100100101000
  307. # test case 6
  308. # stall
  309. 0
  310. # flush
  311. 0
  312. # pc
  313. 1100101000100000
  314. # aluop
  315. ALU_ADD
  316. # alusrc1
  317. 0
  318. # alusrc2
  319. 0
  320. # alusrc3
  321. 0
  322. # rs1
  323. 00000
  324. # rs2
  325. 00000
  326. # readdata1
  327. 01101101100110001001000111100110
  328. # readdata2
  329. 01100111111110001000101100110101
  330. # imm
  331. 01110010111000100100000011010101
  332. # branchtype
  333. BR_NOP
  334. # memread
  335. 0
  336. # memwrite
  337. 1
  338. # memtype
  339. MEM_B
  340. # wb rd
  341. 10000
  342. # wb write
  343. 1
  344. # wb src
  345. WBS_ALU
  346. # reg write mem write
  347. 1
  348. # reg write mem reg
  349. 11100
  350. # reg write mem data
  351. 00001001000001111010001000100010
  352. # reg write wr write
  353. 0
  354. # reg write wr reg
  355. 01101
  356. # reg write wr data
  357. 01110101000111101100100110011111
  358. # test case 7
  359. # stall
  360. 0
  361. # flush
  362. 0
  363. # pc
  364. 1010101010101010
  365. # aluop
  366. ALU_NOP
  367. # alusrc1
  368. 1
  369. # alusrc2
  370. 0
  371. # alusrc3
  372. 0
  373. # rs1
  374. 00000
  375. # rs2
  376. 00000
  377. # readdata1
  378. 01011110101010011101000100011100
  379. # readdata2
  380. 01101011011001111001111110011000
  381. # imm
  382. 00101000010100111000100001001110
  383. # branchtype
  384. BR_BR
  385. # memread
  386. 1
  387. # memwrite
  388. 0
  389. # memtype
  390. MEM_H
  391. # wb rd
  392. 10010
  393. # wb write
  394. 0
  395. # wb src
  396. WBS_MEM
  397. # reg write mem write
  398. 0
  399. # reg write mem reg
  400. 00010
  401. # reg write mem data
  402. 01100011110100111010011111100000
  403. # reg write wr write
  404. 1
  405. # reg write wr reg
  406. 11000
  407. # reg write wr data
  408. 01101111110001111110010101100101
  409. # test case 8
  410. # stall
  411. 0
  412. # flush
  413. 0
  414. # pc
  415. 0111110001000011
  416. # aluop
  417. ALU_AND
  418. # alusrc1
  419. 1
  420. # alusrc2
  421. 1
  422. # alusrc3
  423. 0
  424. # rs1
  425. 00000
  426. # rs2
  427. 00000
  428. # readdata1
  429. 01000111001100000001110110101010
  430. # readdata2
  431. 01011100110111011010001011101011
  432. # imm
  433. 00101111110100100011111000100110
  434. # branchtype
  435. BR_NOP
  436. # memread
  437. 0
  438. # memwrite
  439. 1
  440. # memtype
  441. MEM_BU
  442. # wb rd
  443. 11010
  444. # wb write
  445. 1
  446. # wb src
  447. WBS_OPC
  448. # reg write mem write
  449. 1
  450. # reg write mem reg
  451. 00111
  452. # reg write mem data
  453. 01101011111011000001001100010100
  454. # reg write wr write
  455. 1
  456. # reg write wr reg
  457. 10110
  458. # reg write wr data
  459. 00010101100011111101100000000110
  460. # test case 9
  461. # stall
  462. 0
  463. # flush
  464. 0
  465. # pc
  466. 0101001010011110
  467. # aluop
  468. ALU_XOR
  469. # alusrc1
  470. 0
  471. # alusrc2
  472. 1
  473. # alusrc3
  474. 1
  475. # rs1
  476. 00000
  477. # rs2
  478. 00000
  479. # readdata1
  480. 00001101010001101000101010011100
  481. # readdata2
  482. 01001111010001000000011001001001
  483. # imm
  484. 01001101100010011110101111100111
  485. # branchtype
  486. BR_CND
  487. # memread
  488. 1
  489. # memwrite
  490. 0
  491. # memtype
  492. MEM_H
  493. # wb rd
  494. 11001
  495. # wb write
  496. 1
  497. # wb src
  498. WBS_MEM
  499. # reg write mem write
  500. 0
  501. # reg write mem reg
  502. 11001
  503. # reg write mem data
  504. 00001100110000100001000000001011
  505. # reg write wr write
  506. 0
  507. # reg write wr reg
  508. 11111
  509. # reg write wr data
  510. 01111101101101110101010010011100
  511. # test case 10
  512. # stall
  513. 0
  514. # flush
  515. 0
  516. # pc
  517. 0100100100101100
  518. # aluop
  519. ALU_SLTU
  520. # alusrc1
  521. 0
  522. # alusrc2
  523. 0
  524. # alusrc3
  525. 0
  526. # rs1
  527. 00000
  528. # rs2
  529. 00000
  530. # readdata1
  531. 00011000001010110110010011100001
  532. # readdata2
  533. 01001111010001011001000111100001
  534. # imm
  535. 01110101010011111110100010010001
  536. # branchtype
  537. BR_BR
  538. # memread
  539. 1
  540. # memwrite
  541. 0
  542. # memtype
  543. MEM_BU
  544. # wb rd
  545. 00011
  546. # wb write
  547. 0
  548. # wb src
  549. WBS_OPC
  550. # reg write mem write
  551. 0
  552. # reg write mem reg
  553. 01011
  554. # reg write mem data
  555. 00011000001001001011001001001011
  556. # reg write wr write
  557. 0
  558. # reg write wr reg
  559. 10010
  560. # reg write wr data
  561. 00011010101010111110101110100001
  562. # test case 11
  563. # stall
  564. 0
  565. # flush
  566. 0
  567. # pc
  568. 1100101111010101
  569. # aluop
  570. ALU_SLL
  571. # alusrc1
  572. 1
  573. # alusrc2
  574. 0
  575. # alusrc3
  576. 0
  577. # rs1
  578. 00000
  579. # rs2
  580. 00000
  581. # readdata1
  582. 01011111101100000100110011100011
  583. # readdata2
  584. 01100100000100011100101100000011
  585. # imm
  586. 01101010000010001011000000101100
  587. # branchtype
  588. BR_CNDI
  589. # memread
  590. 0
  591. # memwrite
  592. 1
  593. # memtype
  594. MEM_W
  595. # wb rd
  596. 00100
  597. # wb write
  598. 0
  599. # wb src
  600. WBS_ALU
  601. # reg write mem write
  602. 0
  603. # reg write mem reg
  604. 00011
  605. # reg write mem data
  606. 00010011011101001010110110000000
  607. # reg write wr write
  608. 1
  609. # reg write wr reg
  610. 10100
  611. # reg write wr data
  612. 00011011101010011101001100000101
  613. # test case 12
  614. # stall
  615. 0
  616. # flush
  617. 0
  618. # pc
  619. 0010001010010111
  620. # aluop
  621. ALU_AND
  622. # alusrc1
  623. 0
  624. # alusrc2
  625. 1
  626. # alusrc3
  627. 0
  628. # rs1
  629. 00000
  630. # rs2
  631. 00000
  632. # readdata1
  633. 00011100010011110101000010010011
  634. # readdata2
  635. 01111110100101111011111110100110
  636. # imm
  637. 01100011111110100100001011100101
  638. # branchtype
  639. BR_CNDI
  640. # memread
  641. 0
  642. # memwrite
  643. 1
  644. # memtype
  645. MEM_HU
  646. # wb rd
  647. 11100
  648. # wb write
  649. 1
  650. # wb src
  651. WBS_MEM
  652. # reg write mem write
  653. 1
  654. # reg write mem reg
  655. 11000
  656. # reg write mem data
  657. 01011000111100010001110010100101
  658. # reg write wr write
  659. 0
  660. # reg write wr reg
  661. 00100
  662. # reg write wr data
  663. 01111010100101001011100000011101
  664. # test case 13
  665. # stall
  666. 0
  667. # flush
  668. 0
  669. # pc
  670. 1100011101001101
  671. # aluop
  672. ALU_ADD
  673. # alusrc1
  674. 1
  675. # alusrc2
  676. 1
  677. # alusrc3
  678. 0
  679. # rs1
  680. 00000
  681. # rs2
  682. 00000
  683. # readdata1
  684. 00000010101110111010111011111111
  685. # readdata2
  686. 00100001000110100111000101010110
  687. # imm
  688. 00101110011111001001010100001010
  689. # branchtype
  690. BR_CND
  691. # memread
  692. 0
  693. # memwrite
  694. 1
  695. # memtype
  696. MEM_BU
  697. # wb rd
  698. 10101
  699. # wb write
  700. 1
  701. # wb src
  702. WBS_OPC
  703. # reg write mem write
  704. 0
  705. # reg write mem reg
  706. 01111
  707. # reg write mem data
  708. 01011101100100010000001111001011
  709. # reg write wr write
  710. 0
  711. # reg write wr reg
  712. 10101
  713. # reg write wr data
  714. 01101110010110000110000000010010
  715. # test case 14
  716. # stall
  717. 0
  718. # flush
  719. 0
  720. # pc
  721. 1010000010001111
  722. # aluop
  723. ALU_ADD
  724. # alusrc1
  725. 0
  726. # alusrc2
  727. 0
  728. # alusrc3
  729. 0
  730. # rs1
  731. 00000
  732. # rs2
  733. 00000
  734. # readdata1
  735. 01000100110110100010110110110101
  736. # readdata2
  737. 01111000010000101101010001011110
  738. # imm
  739. 00011000110100010111000100000011
  740. # branchtype
  741. BR_NOP
  742. # memread
  743. 0
  744. # memwrite
  745. 1
  746. # memtype
  747. MEM_W
  748. # wb rd
  749. 01101
  750. # wb write
  751. 0
  752. # wb src
  753. WBS_ALU
  754. # reg write mem write
  755. 0
  756. # reg write mem reg
  757. 11001
  758. # reg write mem data
  759. 01001001001011100111010011100000
  760. # reg write wr write
  761. 1
  762. # reg write wr reg
  763. 00011
  764. # reg write wr data
  765. 01101010110111101100011111111111
  766. # test case 15
  767. # stall
  768. 0
  769. # flush
  770. 0
  771. # pc
  772. 1010001000100001
  773. # aluop
  774. ALU_OR
  775. # alusrc1
  776. 0
  777. # alusrc2
  778. 1
  779. # alusrc3
  780. 1
  781. # rs1
  782. 00000
  783. # rs2
  784. 00000
  785. # readdata1
  786. 00111101001101101000001010000101
  787. # readdata2
  788. 00110000001111010011011111100110
  789. # imm
  790. 00000010011111011010100100010110
  791. # branchtype
  792. BR_CNDI
  793. # memread
  794. 1
  795. # memwrite
  796. 0
  797. # memtype
  798. MEM_B
  799. # wb rd
  800. 01010
  801. # wb write
  802. 1
  803. # wb src
  804. WBS_OPC
  805. # reg write mem write
  806. 1
  807. # reg write mem reg
  808. 10101
  809. # reg write mem data
  810. 01110000111011111011111100001100
  811. # reg write wr write
  812. 1
  813. # reg write wr reg
  814. 11001
  815. # reg write wr data
  816. 00100011011101100101110101001100
  817. # test case 16
  818. # stall
  819. 0
  820. # flush
  821. 0
  822. # pc
  823. 0101010011010010
  824. # aluop
  825. ALU_SLT
  826. # alusrc1
  827. 1
  828. # alusrc2
  829. 0
  830. # alusrc3
  831. 1
  832. # rs1
  833. 00000
  834. # rs2
  835. 00000
  836. # readdata1
  837. 00111010101100111101100111111001
  838. # readdata2
  839. 01100101010100000101011100111001
  840. # imm
  841. 00111010100011110011101111011011
  842. # branchtype
  843. BR_NOP
  844. # memread
  845. 1
  846. # memwrite
  847. 0
  848. # memtype
  849. MEM_HU
  850. # wb rd
  851. 10010
  852. # wb write
  853. 0
  854. # wb src
  855. WBS_MEM
  856. # reg write mem write
  857. 1
  858. # reg write mem reg
  859. 11011
  860. # reg write mem data
  861. 00111101110011111100010000010100
  862. # reg write wr write
  863. 1
  864. # reg write wr reg
  865. 10001
  866. # reg write wr data
  867. 01011011101010010100101100001111
  868. # test case 17
  869. # stall
  870. 0
  871. # flush
  872. 0
  873. # pc
  874. 1110111100101011
  875. # aluop
  876. ALU_SRA
  877. # alusrc1
  878. 0
  879. # alusrc2
  880. 0
  881. # alusrc3
  882. 1
  883. # rs1
  884. 00000
  885. # rs2
  886. 00000
  887. # readdata1
  888. 00110100111001001000010010001011
  889. # readdata2
  890. 01111101111010010110100010111000
  891. # imm
  892. 00010111110001010111101100111011
  893. # branchtype
  894. BR_CND
  895. # memread
  896. 1
  897. # memwrite
  898. 0
  899. # memtype
  900. MEM_W
  901. # wb rd
  902. 01100
  903. # wb write
  904. 0
  905. # wb src
  906. WBS_ALU
  907. # reg write mem write
  908. 1
  909. # reg write mem reg
  910. 00101
  911. # reg write mem data
  912. 01110100110110110111010101011010
  913. # reg write wr write
  914. 0
  915. # reg write wr reg
  916. 00001
  917. # reg write wr data
  918. 00001100011100011101011111001010
  919. # test case 18
  920. # stall
  921. 0
  922. # flush
  923. 0
  924. # pc
  925. 0101101001100011
  926. # aluop
  927. ALU_SUB
  928. # alusrc1
  929. 0
  930. # alusrc2
  931. 1
  932. # alusrc3
  933. 0
  934. # rs1
  935. 00000
  936. # rs2
  937. 00000
  938. # readdata1
  939. 01110000000001100000010110100101
  940. # readdata2
  941. 00100001100011011010011001001110
  942. # imm
  943. 01010000001001100100111000011110
  944. # branchtype
  945. BR_BR
  946. # memread
  947. 1
  948. # memwrite
  949. 0
  950. # memtype
  951. MEM_W
  952. # wb rd
  953. 00000
  954. # wb write
  955. 0
  956. # wb src
  957. WBS_OPC
  958. # reg write mem write
  959. 0
  960. # reg write mem reg
  961. 01000
  962. # reg write mem data
  963. 00010011110101001001000001010011
  964. # reg write wr write
  965. 0
  966. # reg write wr reg
  967. 00011
  968. # reg write wr data
  969. 01000010101111111111101100101101
  970. # test case 19
  971. # stall
  972. 0
  973. # flush
  974. 0
  975. # pc
  976. 0000000100101011
  977. # aluop
  978. ALU_OR
  979. # alusrc1
  980. 0
  981. # alusrc2
  982. 0
  983. # alusrc3
  984. 1
  985. # rs1
  986. 00000
  987. # rs2
  988. 00000
  989. # readdata1
  990. 01101111011011111101110011000111
  991. # readdata2
  992. 01111101001101100100101110111011
  993. # imm
  994. 01001111000100100001001110000101
  995. # branchtype
  996. BR_BR
  997. # memread
  998. 0
  999. # memwrite
  1000. 1
  1001. # memtype
  1002. MEM_H
  1003. # wb rd
  1004. 10001
  1005. # wb write
  1006. 0
  1007. # wb src
  1008. WBS_ALU
  1009. # reg write mem write
  1010. 0
  1011. # reg write mem reg
  1012. 00010
  1013. # reg write mem data
  1014. 00100011101001101100110101010010
  1015. # reg write wr write
  1016. 1
  1017. # reg write wr reg
  1018. 00001
  1019. # reg write wr data
  1020. 01011011110100110011010000100111
  1021. # test case 20
  1022. # stall
  1023. 0
  1024. # flush
  1025. 0
  1026. # pc
  1027. 0100110001010010
  1028. # aluop
  1029. ALU_XOR
  1030. # alusrc1
  1031. 1
  1032. # alusrc2
  1033. 1
  1034. # alusrc3
  1035. 1
  1036. # rs1
  1037. 00000
  1038. # rs2
  1039. 00000
  1040. # readdata1
  1041. 01001100000110001110000111101001
  1042. # readdata2
  1043. 00111010010010011110111000110011
  1044. # imm
  1045. 01111100010100111110011001001010
  1046. # branchtype
  1047. BR_NOP
  1048. # memread
  1049. 0
  1050. # memwrite
  1051. 1
  1052. # memtype
  1053. MEM_BU
  1054. # wb rd
  1055. 01111
  1056. # wb write
  1057. 1
  1058. # wb src
  1059. WBS_OPC
  1060. # reg write mem write
  1061. 1
  1062. # reg write mem reg
  1063. 01101
  1064. # reg write mem data
  1065. 01001010011101110111100100011000
  1066. # reg write wr write
  1067. 1
  1068. # reg write wr reg
  1069. 10010
  1070. # reg write wr data
  1071. 01110010101100111100111100000110
  1072. # test case 21
  1073. # stall
  1074. 0
  1075. # flush
  1076. 0
  1077. # pc
  1078. 1100001010011101
  1079. # aluop
  1080. ALU_XOR
  1081. # alusrc1
  1082. 1
  1083. # alusrc2
  1084. 1
  1085. # alusrc3
  1086. 1
  1087. # rs1
  1088. 00000
  1089. # rs2
  1090. 00000
  1091. # readdata1
  1092. 01001100100100000101110101011011
  1093. # readdata2
  1094. 00000111111000111111111001011000
  1095. # imm
  1096. 00011011010000000100110101000001
  1097. # branchtype
  1098. BR_CND
  1099. # memread
  1100. 1
  1101. # memwrite
  1102. 0
  1103. # memtype
  1104. MEM_BU
  1105. # wb rd
  1106. 00001
  1107. # wb write
  1108. 0
  1109. # wb src
  1110. WBS_OPC
  1111. # reg write mem write
  1112. 0
  1113. # reg write mem reg
  1114. 11111
  1115. # reg write mem data
  1116. 00010111100010001110110101111000
  1117. # reg write wr write
  1118. 1
  1119. # reg write wr reg
  1120. 01001
  1121. # reg write wr data
  1122. 01011001010001111000111111011100
  1123. # test case 22
  1124. # stall
  1125. 0
  1126. # flush
  1127. 0
  1128. # pc
  1129. 0111001111010101
  1130. # aluop
  1131. ALU_NOP
  1132. # alusrc1
  1133. 0
  1134. # alusrc2
  1135. 1
  1136. # alusrc3
  1137. 0
  1138. # rs1
  1139. 00000
  1140. # rs2
  1141. 00000
  1142. # readdata1
  1143. 00111110011010010001100111110001
  1144. # readdata2
  1145. 01001110010100110100100010000100
  1146. # imm
  1147. 00111000100110010010110010101010
  1148. # branchtype
  1149. BR_CND
  1150. # memread
  1151. 0
  1152. # memwrite
  1153. 1
  1154. # memtype
  1155. MEM_BU
  1156. # wb rd
  1157. 10000
  1158. # wb write
  1159. 1
  1160. # wb src
  1161. WBS_ALU
  1162. # reg write mem write
  1163. 1
  1164. # reg write mem reg
  1165. 01000
  1166. # reg write mem data
  1167. 01001010011011101101100001100011
  1168. # reg write wr write
  1169. 1
  1170. # reg write wr reg
  1171. 01001
  1172. # reg write wr data
  1173. 00110010100010111011101000010001
  1174. # test case 23
  1175. # stall
  1176. 0
  1177. # flush
  1178. 0
  1179. # pc
  1180. 0101011111110110
  1181. # aluop
  1182. ALU_SUB
  1183. # alusrc1
  1184. 0
  1185. # alusrc2
  1186. 0
  1187. # alusrc3
  1188. 0
  1189. # rs1
  1190. 00000
  1191. # rs2
  1192. 00000
  1193. # readdata1
  1194. 01111110000010100101010100111110
  1195. # readdata2
  1196. 00000001101010101010000011111101
  1197. # imm
  1198. 01100111101001110001010101011000
  1199. # branchtype
  1200. BR_BR
  1201. # memread
  1202. 0
  1203. # memwrite
  1204. 1
  1205. # memtype
  1206. MEM_B
  1207. # wb rd
  1208. 10011
  1209. # wb write
  1210. 1
  1211. # wb src
  1212. WBS_OPC
  1213. # reg write mem write
  1214. 0
  1215. # reg write mem reg
  1216. 11001
  1217. # reg write mem data
  1218. 00100101011101001111001010010010
  1219. # reg write wr write
  1220. 0
  1221. # reg write wr reg
  1222. 00011
  1223. # reg write wr data
  1224. 01111001011000000011111011000101
  1225. # test case 24
  1226. # stall
  1227. 0
  1228. # flush
  1229. 0
  1230. # pc
  1231. 0001000110000100
  1232. # aluop
  1233. ALU_SUB
  1234. # alusrc1
  1235. 1
  1236. # alusrc2
  1237. 1
  1238. # alusrc3
  1239. 1
  1240. # rs1
  1241. 00000
  1242. # rs2
  1243. 00000
  1244. # readdata1
  1245. 00011001100100001111011111011010
  1246. # readdata2
  1247. 01110001100111010010110011100101
  1248. # imm
  1249. 00000011001000000001110101011110
  1250. # branchtype
  1251. BR_NOP
  1252. # memread
  1253. 0
  1254. # memwrite
  1255. 1
  1256. # memtype
  1257. MEM_BU
  1258. # wb rd
  1259. 01110
  1260. # wb write
  1261. 1
  1262. # wb src
  1263. WBS_ALU
  1264. # reg write mem write
  1265. 1
  1266. # reg write mem reg
  1267. 11111
  1268. # reg write mem data
  1269. 00010101011000110001010011000001
  1270. # reg write wr write
  1271. 0
  1272. # reg write wr reg
  1273. 11000
  1274. # reg write wr data
  1275. 01101010000101001100010101011110
  1276. # test case 25
  1277. # stall
  1278. 0
  1279. # flush
  1280. 0
  1281. # pc
  1282. 1100000110110001
  1283. # aluop
  1284. ALU_SLT
  1285. # alusrc1
  1286. 1
  1287. # alusrc2
  1288. 0
  1289. # alusrc3
  1290. 0
  1291. # rs1
  1292. 00000
  1293. # rs2
  1294. 00000
  1295. # readdata1
  1296. 00110011111100011001110101011011
  1297. # readdata2
  1298. 01101010100000110101000101010001
  1299. # imm
  1300. 00001001000110101001000111000000
  1301. # branchtype
  1302. BR_BR
  1303. # memread
  1304. 0
  1305. # memwrite
  1306. 1
  1307. # memtype
  1308. MEM_B
  1309. # wb rd
  1310. 01110
  1311. # wb write
  1312. 0
  1313. # wb src
  1314. WBS_MEM
  1315. # reg write mem write
  1316. 1
  1317. # reg write mem reg
  1318. 00100
  1319. # reg write mem data
  1320. 01101000010111110001010111110101
  1321. # reg write wr write
  1322. 1
  1323. # reg write wr reg
  1324. 00010
  1325. # reg write wr data
  1326. 01010111000100011011011001101101
  1327. # test case 26
  1328. # stall
  1329. 0
  1330. # flush
  1331. 0
  1332. # pc
  1333. 0111111011011111
  1334. # aluop
  1335. ALU_ADD
  1336. # alusrc1
  1337. 1
  1338. # alusrc2
  1339. 1
  1340. # alusrc3
  1341. 1
  1342. # rs1
  1343. 00000
  1344. # rs2
  1345. 00000
  1346. # readdata1
  1347. 01010011111110011111100011001000
  1348. # readdata2
  1349. 01001110001011110110111011111110
  1350. # imm
  1351. 01010011000101001111011110010110
  1352. # branchtype
  1353. BR_CNDI
  1354. # memread
  1355. 0
  1356. # memwrite
  1357. 1
  1358. # memtype
  1359. MEM_W
  1360. # wb rd
  1361. 00100
  1362. # wb write
  1363. 1
  1364. # wb src
  1365. WBS_ALU
  1366. # reg write mem write
  1367. 0
  1368. # reg write mem reg
  1369. 10001
  1370. # reg write mem data
  1371. 00100101101001100100010000100001
  1372. # reg write wr write
  1373. 1
  1374. # reg write wr reg
  1375. 10010
  1376. # reg write wr data
  1377. 00100111010100011101110110001011
  1378. # test case 27
  1379. # stall
  1380. 0
  1381. # flush
  1382. 0
  1383. # pc
  1384. 1100011000000001
  1385. # aluop
  1386. ALU_SLL
  1387. # alusrc1
  1388. 1
  1389. # alusrc2
  1390. 0
  1391. # alusrc3
  1392. 0
  1393. # rs1
  1394. 00000
  1395. # rs2
  1396. 00000
  1397. # readdata1
  1398. 00110010111100000001001010100100
  1399. # readdata2
  1400. 01101110011011001101111000001110
  1401. # imm
  1402. 00101100110111001000110001100111
  1403. # branchtype
  1404. BR_BR
  1405. # memread
  1406. 0
  1407. # memwrite
  1408. 1
  1409. # memtype
  1410. MEM_W
  1411. # wb rd
  1412. 10101
  1413. # wb write
  1414. 1
  1415. # wb src
  1416. WBS_OPC
  1417. # reg write mem write
  1418. 0
  1419. # reg write mem reg
  1420. 11000
  1421. # reg write mem data
  1422. 01011000011100011110101001111000
  1423. # reg write wr write
  1424. 0
  1425. # reg write wr reg
  1426. 01110
  1427. # reg write wr data
  1428. 00000001100001101100111000101011
  1429. # test case 28
  1430. # stall
  1431. 0
  1432. # flush
  1433. 0
  1434. # pc
  1435. 1010101011101001
  1436. # aluop
  1437. ALU_SRL
  1438. # alusrc1
  1439. 1
  1440. # alusrc2
  1441. 0
  1442. # alusrc3
  1443. 0
  1444. # rs1
  1445. 00000
  1446. # rs2
  1447. 00000
  1448. # readdata1
  1449. 00111100110111101100100010101011
  1450. # readdata2
  1451. 01100011000001101111011111011110
  1452. # imm
  1453. 01101010101111101100111110001010
  1454. # branchtype
  1455. BR_NOP
  1456. # memread
  1457. 0
  1458. # memwrite
  1459. 1
  1460. # memtype
  1461. MEM_HU
  1462. # wb rd
  1463. 11001
  1464. # wb write
  1465. 1
  1466. # wb src
  1467. WBS_ALU
  1468. # reg write mem write
  1469. 1
  1470. # reg write mem reg
  1471. 11001
  1472. # reg write mem data
  1473. 01110010100000000100100000110010
  1474. # reg write wr write
  1475. 1
  1476. # reg write wr reg
  1477. 00000
  1478. # reg write wr data
  1479. 00011100011111100001000111101000
  1480. # test case 29
  1481. # stall
  1482. 0
  1483. # flush
  1484. 0
  1485. # pc
  1486. 1110110010100010
  1487. # aluop
  1488. ALU_XOR
  1489. # alusrc1
  1490. 1
  1491. # alusrc2
  1492. 1
  1493. # alusrc3
  1494. 0
  1495. # rs1
  1496. 00000
  1497. # rs2
  1498. 00000
  1499. # readdata1
  1500. 01010111001100000000011000010001
  1501. # readdata2
  1502. 01110001110111000110100111111101
  1503. # imm
  1504. 00011110000111001111100111011100
  1505. # branchtype
  1506. BR_CNDI
  1507. # memread
  1508. 1
  1509. # memwrite
  1510. 0
  1511. # memtype
  1512. MEM_BU
  1513. # wb rd
  1514. 01100
  1515. # wb write
  1516. 1
  1517. # wb src
  1518. WBS_MEM
  1519. # reg write mem write
  1520. 1
  1521. # reg write mem reg
  1522. 10110
  1523. # reg write mem data
  1524. 00110001111010100000010001000001
  1525. # reg write wr write
  1526. 1
  1527. # reg write wr reg
  1528. 00000
  1529. # reg write wr data
  1530. 01000000110000110111001101011001
  1531. # test case 30
  1532. # stall
  1533. 0
  1534. # flush
  1535. 0
  1536. # pc
  1537. 0100010011100111
  1538. # aluop
  1539. ALU_SLTU
  1540. # alusrc1
  1541. 0
  1542. # alusrc2
  1543. 0
  1544. # alusrc3
  1545. 1
  1546. # rs1
  1547. 00000
  1548. # rs2
  1549. 00000
  1550. # readdata1
  1551. 01110111010111011000110100010110
  1552. # readdata2
  1553. 01000000110010010110101101101000
  1554. # imm
  1555. 01001111011100101111110000010101
  1556. # branchtype
  1557. BR_CNDI
  1558. # memread
  1559. 0
  1560. # memwrite
  1561. 1
  1562. # memtype
  1563. MEM_W
  1564. # wb rd
  1565. 01001
  1566. # wb write
  1567. 1
  1568. # wb src
  1569. WBS_ALU
  1570. # reg write mem write
  1571. 0
  1572. # reg write mem reg
  1573. 00001
  1574. # reg write mem data
  1575. 01111111111000100110111010001011
  1576. # reg write wr write
  1577. 1
  1578. # reg write wr reg
  1579. 11101
  1580. # reg write wr data
  1581. 00111111101100001000111100101111
  1582. # test case 31
  1583. # stall
  1584. 0
  1585. # flush
  1586. 0
  1587. # pc
  1588. 0111000111110110
  1589. # aluop
  1590. ALU_SUB
  1591. # alusrc1
  1592. 1
  1593. # alusrc2
  1594. 0
  1595. # alusrc3
  1596. 0
  1597. # rs1
  1598. 00000
  1599. # rs2
  1600. 00000
  1601. # readdata1
  1602. 00011101001010110010100000010100
  1603. # readdata2
  1604. 00001111100000101110100111111010
  1605. # imm
  1606. 01101001101000100111010100011011
  1607. # branchtype
  1608. BR_CNDI
  1609. # memread
  1610. 0
  1611. # memwrite
  1612. 1
  1613. # memtype
  1614. MEM_BU
  1615. # wb rd
  1616. 10010
  1617. # wb write
  1618. 1
  1619. # wb src
  1620. WBS_ALU
  1621. # reg write mem write
  1622. 1
  1623. # reg write mem reg
  1624. 10010
  1625. # reg write mem data
  1626. 00111101011001000001110111111100
  1627. # reg write wr write
  1628. 1
  1629. # reg write wr reg
  1630. 00111
  1631. # reg write wr data
  1632. 01111110111010110110110111000100
  1633. # test case 32
  1634. # stall
  1635. 0
  1636. # flush
  1637. 0
  1638. # pc
  1639. 0000000011010001
  1640. # aluop
  1641. ALU_SUB
  1642. # alusrc1
  1643. 1
  1644. # alusrc2
  1645. 0
  1646. # alusrc3
  1647. 1
  1648. # rs1
  1649. 00000
  1650. # rs2
  1651. 00000
  1652. # readdata1
  1653. 00000011001110010010000001111100
  1654. # readdata2
  1655. 01000011010000101101100000101111
  1656. # imm
  1657. 01111001001000101100111010001011
  1658. # branchtype
  1659. BR_CNDI
  1660. # memread
  1661. 0
  1662. # memwrite
  1663. 1
  1664. # memtype
  1665. MEM_BU
  1666. # wb rd
  1667. 11110
  1668. # wb write
  1669. 0
  1670. # wb src
  1671. WBS_OPC
  1672. # reg write mem write
  1673. 0
  1674. # reg write mem reg
  1675. 01010
  1676. # reg write mem data
  1677. 01000111111101011110000010001010
  1678. # reg write wr write
  1679. 0
  1680. # reg write wr reg
  1681. 00101
  1682. # reg write wr data
  1683. 01110011010110111100110111010101
  1684. # test case 33
  1685. # stall
  1686. 0
  1687. # flush
  1688. 0
  1689. # pc
  1690. 0000000000110110
  1691. # aluop
  1692. ALU_ADD
  1693. # alusrc1
  1694. 0
  1695. # alusrc2
  1696. 1
  1697. # alusrc3
  1698. 0
  1699. # rs1
  1700. 00000
  1701. # rs2
  1702. 00000
  1703. # readdata1
  1704. 01000011011101010100111100101001
  1705. # readdata2
  1706. 00001000101101100010011100110111
  1707. # imm
  1708. 01111000001001001111011111111100
  1709. # branchtype
  1710. BR_CND
  1711. # memread
  1712. 0
  1713. # memwrite
  1714. 1
  1715. # memtype
  1716. MEM_HU
  1717. # wb rd
  1718. 00011
  1719. # wb write
  1720. 1
  1721. # wb src
  1722. WBS_OPC
  1723. # reg write mem write
  1724. 0
  1725. # reg write mem reg
  1726. 00011
  1727. # reg write mem data
  1728. 01100100000000000011000001101010
  1729. # reg write wr write
  1730. 1
  1731. # reg write wr reg
  1732. 01110
  1733. # reg write wr data
  1734. 01110010100110000011000100110001
  1735. # test case 34
  1736. # stall
  1737. 0
  1738. # flush
  1739. 0
  1740. # pc
  1741. 1000110011101110
  1742. # aluop
  1743. ALU_SLL
  1744. # alusrc1
  1745. 1
  1746. # alusrc2
  1747. 0
  1748. # alusrc3
  1749. 1
  1750. # rs1
  1751. 00000
  1752. # rs2
  1753. 00000
  1754. # readdata1
  1755. 00100101101000101111111011110001
  1756. # readdata2
  1757. 00110101001000011111001100101001
  1758. # imm
  1759. 01011011110110000010110110000111
  1760. # branchtype
  1761. BR_BR
  1762. # memread
  1763. 0
  1764. # memwrite
  1765. 1
  1766. # memtype
  1767. MEM_W
  1768. # wb rd
  1769. 00011
  1770. # wb write
  1771. 0
  1772. # wb src
  1773. WBS_MEM
  1774. # reg write mem write
  1775. 0
  1776. # reg write mem reg
  1777. 01000
  1778. # reg write mem data
  1779. 00010101111000010100101010001110
  1780. # reg write wr write
  1781. 1
  1782. # reg write wr reg
  1783. 00100
  1784. # reg write wr data
  1785. 01011010010111010101010001000000
  1786. # test case 35
  1787. # stall
  1788. 0
  1789. # flush
  1790. 0
  1791. # pc
  1792. 1011010111011110
  1793. # aluop
  1794. ALU_XOR
  1795. # alusrc1
  1796. 1
  1797. # alusrc2
  1798. 1
  1799. # alusrc3
  1800. 1
  1801. # rs1
  1802. 00000
  1803. # rs2
  1804. 00000
  1805. # readdata1
  1806. 00011111110101011100111000010101
  1807. # readdata2
  1808. 01100000000100000010011001100100
  1809. # imm
  1810. 01100010111011100001010011111101
  1811. # branchtype
  1812. BR_CNDI
  1813. # memread
  1814. 0
  1815. # memwrite
  1816. 1
  1817. # memtype
  1818. MEM_B
  1819. # wb rd
  1820. 00101
  1821. # wb write
  1822. 0
  1823. # wb src
  1824. WBS_OPC
  1825. # reg write mem write
  1826. 1
  1827. # reg write mem reg
  1828. 11000
  1829. # reg write mem data
  1830. 00001111110011101110100100001111
  1831. # reg write wr write
  1832. 0
  1833. # reg write wr reg
  1834. 11111
  1835. # reg write wr data
  1836. 01010101111100100010110011111101
  1837. # test case 36
  1838. # stall
  1839. 0
  1840. # flush
  1841. 0
  1842. # pc
  1843. 1111000100011011
  1844. # aluop
  1845. ALU_SLT
  1846. # alusrc1
  1847. 0
  1848. # alusrc2
  1849. 1
  1850. # alusrc3
  1851. 1
  1852. # rs1
  1853. 00000
  1854. # rs2
  1855. 00000
  1856. # readdata1
  1857. 01001100011011101110111100001001
  1858. # readdata2
  1859. 00111100101000010000010011101011
  1860. # imm
  1861. 00100000101001111010110110001111
  1862. # branchtype
  1863. BR_NOP
  1864. # memread
  1865. 1
  1866. # memwrite
  1867. 0
  1868. # memtype
  1869. MEM_BU
  1870. # wb rd
  1871. 00110
  1872. # wb write
  1873. 0
  1874. # wb src
  1875. WBS_ALU
  1876. # reg write mem write
  1877. 0
  1878. # reg write mem reg
  1879. 00111
  1880. # reg write mem data
  1881. 00111000110010010010111010101000
  1882. # reg write wr write
  1883. 0
  1884. # reg write wr reg
  1885. 00100
  1886. # reg write wr data
  1887. 00011101110010010100010000111111
  1888. # test case 37
  1889. # stall
  1890. 0
  1891. # flush
  1892. 0
  1893. # pc
  1894. 1000101110111111
  1895. # aluop
  1896. ALU_NOP
  1897. # alusrc1
  1898. 0
  1899. # alusrc2
  1900. 1
  1901. # alusrc3
  1902. 1
  1903. # rs1
  1904. 00000
  1905. # rs2
  1906. 00000
  1907. # readdata1
  1908. 00010011001001101001000011101000
  1909. # readdata2
  1910. 01010101010001001011110000110001
  1911. # imm
  1912. 00110011001110110101101101100000
  1913. # branchtype
  1914. BR_NOP
  1915. # memread
  1916. 1
  1917. # memwrite
  1918. 0
  1919. # memtype
  1920. MEM_HU
  1921. # wb rd
  1922. 01111
  1923. # wb write
  1924. 1
  1925. # wb src
  1926. WBS_MEM
  1927. # reg write mem write
  1928. 0
  1929. # reg write mem reg
  1930. 01111
  1931. # reg write mem data
  1932. 00101101000001101110100010000111
  1933. # reg write wr write
  1934. 1
  1935. # reg write wr reg
  1936. 11110
  1937. # reg write wr data
  1938. 01110111001100000111110010101111
  1939. # test case 38
  1940. # stall
  1941. 0
  1942. # flush
  1943. 0
  1944. # pc
  1945. 0010011000001101
  1946. # aluop
  1947. ALU_SUB
  1948. # alusrc1
  1949. 0
  1950. # alusrc2
  1951. 1
  1952. # alusrc3
  1953. 1
  1954. # rs1
  1955. 00000
  1956. # rs2
  1957. 00000
  1958. # readdata1
  1959. 00001010100011011100111011011110
  1960. # readdata2
  1961. 01110111011000001001101110001001
  1962. # imm
  1963. 01101110111101010011000110101001
  1964. # branchtype
  1965. BR_CND
  1966. # memread
  1967. 1
  1968. # memwrite
  1969. 0
  1970. # memtype
  1971. MEM_H
  1972. # wb rd
  1973. 01001
  1974. # wb write
  1975. 0
  1976. # wb src
  1977. WBS_MEM
  1978. # reg write mem write
  1979. 1
  1980. # reg write mem reg
  1981. 10001
  1982. # reg write mem data
  1983. 01001110001001001110110110010101
  1984. # reg write wr write
  1985. 0
  1986. # reg write wr reg
  1987. 10010
  1988. # reg write wr data
  1989. 01111011010101000001101111001010
  1990. # test case 39
  1991. # stall
  1992. 0
  1993. # flush
  1994. 0
  1995. # pc
  1996. 1110101101000101
  1997. # aluop
  1998. ALU_OR
  1999. # alusrc1
  2000. 1
  2001. # alusrc2
  2002. 1
  2003. # alusrc3
  2004. 1
  2005. # rs1
  2006. 00000
  2007. # rs2
  2008. 00000
  2009. # readdata1
  2010. 00010110010111111110100001101100
  2011. # readdata2
  2012. 01101011010001100110111001100010
  2013. # imm
  2014. 00000001110011111001110111010100
  2015. # branchtype
  2016. BR_BR
  2017. # memread
  2018. 0
  2019. # memwrite
  2020. 1
  2021. # memtype
  2022. MEM_W
  2023. # wb rd
  2024. 10110
  2025. # wb write
  2026. 0
  2027. # wb src
  2028. WBS_ALU
  2029. # reg write mem write
  2030. 0
  2031. # reg write mem reg
  2032. 01111
  2033. # reg write mem data
  2034. 00101111111101011011000000011000
  2035. # reg write wr write
  2036. 1
  2037. # reg write wr reg
  2038. 11001
  2039. # reg write wr data
  2040. 01111000101110011010110110000010
  2041. # test case 40
  2042. # stall
  2043. 0
  2044. # flush
  2045. 0
  2046. # pc
  2047. 1010100001001110
  2048. # aluop
  2049. ALU_XOR
  2050. # alusrc1
  2051. 0
  2052. # alusrc2
  2053. 1
  2054. # alusrc3
  2055. 1
  2056. # rs1
  2057. 00000
  2058. # rs2
  2059. 00000
  2060. # readdata1
  2061. 01101111010011010011110101001111
  2062. # readdata2
  2063. 00110001010001111110011000100000
  2064. # imm
  2065. 01100101101101011010011001000101
  2066. # branchtype
  2067. BR_CNDI
  2068. # memread
  2069. 0
  2070. # memwrite
  2071. 1
  2072. # memtype
  2073. MEM_B
  2074. # wb rd
  2075. 01001
  2076. # wb write
  2077. 0
  2078. # wb src
  2079. WBS_ALU
  2080. # reg write mem write
  2081. 0
  2082. # reg write mem reg
  2083. 01111
  2084. # reg write mem data
  2085. 00111001011010111110010110010100
  2086. # reg write wr write
  2087. 0
  2088. # reg write wr reg
  2089. 00100
  2090. # reg write wr data
  2091. 01100000110010101000000000111110
  2092. # test case 41
  2093. # stall
  2094. 0
  2095. # flush
  2096. 0
  2097. # pc
  2098. 1110010000011110
  2099. # aluop
  2100. ALU_NOP
  2101. # alusrc1
  2102. 0
  2103. # alusrc2
  2104. 1
  2105. # alusrc3
  2106. 0
  2107. # rs1
  2108. 00000
  2109. # rs2
  2110. 00000
  2111. # readdata1
  2112. 00001111100010000111000000101100
  2113. # readdata2
  2114. 00000100110110000100100111111100
  2115. # imm
  2116. 00110101011100011101010001011010
  2117. # branchtype
  2118. BR_BR
  2119. # memread
  2120. 1
  2121. # memwrite
  2122. 0
  2123. # memtype
  2124. MEM_HU
  2125. # wb rd
  2126. 11100
  2127. # wb write
  2128. 1
  2129. # wb src
  2130. WBS_MEM
  2131. # reg write mem write
  2132. 1
  2133. # reg write mem reg
  2134. 00111
  2135. # reg write mem data
  2136. 00101101100000001111010111010111
  2137. # reg write wr write
  2138. 1
  2139. # reg write wr reg
  2140. 01100
  2141. # reg write wr data
  2142. 01010001010101111111010111111011
  2143. # test case 42
  2144. # stall
  2145. 0
  2146. # flush
  2147. 0
  2148. # pc
  2149. 1111000011111110
  2150. # aluop
  2151. ALU_SRL
  2152. # alusrc1
  2153. 0
  2154. # alusrc2
  2155. 0
  2156. # alusrc3
  2157. 1
  2158. # rs1
  2159. 00000
  2160. # rs2
  2161. 00000
  2162. # readdata1
  2163. 01101000101010100100100000100000
  2164. # readdata2
  2165. 00111011100010100101000100001111
  2166. # imm
  2167. 01101100000001101000111111011000
  2168. # branchtype
  2169. BR_CND
  2170. # memread
  2171. 1
  2172. # memwrite
  2173. 0
  2174. # memtype
  2175. MEM_HU
  2176. # wb rd
  2177. 11100
  2178. # wb write
  2179. 1
  2180. # wb src
  2181. WBS_MEM
  2182. # reg write mem write
  2183. 1
  2184. # reg write mem reg
  2185. 11101
  2186. # reg write mem data
  2187. 01011001001110001100000100110111
  2188. # reg write wr write
  2189. 0
  2190. # reg write wr reg
  2191. 10111
  2192. # reg write wr data
  2193. 01110010110010101111110000100100
  2194. # test case 43
  2195. # stall
  2196. 0
  2197. # flush
  2198. 0
  2199. # pc
  2200. 0001000011111011
  2201. # aluop
  2202. ALU_SLT
  2203. # alusrc1
  2204. 0
  2205. # alusrc2
  2206. 1
  2207. # alusrc3
  2208. 0
  2209. # rs1
  2210. 00000
  2211. # rs2
  2212. 00000
  2213. # readdata1
  2214. 01101001101110001101000010101011
  2215. # readdata2
  2216. 01000101010010011110000111011010
  2217. # imm
  2218. 01010111100000001110010101110100
  2219. # branchtype
  2220. BR_CNDI
  2221. # memread
  2222. 0
  2223. # memwrite
  2224. 1
  2225. # memtype
  2226. MEM_BU
  2227. # wb rd
  2228. 10101
  2229. # wb write
  2230. 1
  2231. # wb src
  2232. WBS_MEM
  2233. # reg write mem write
  2234. 1
  2235. # reg write mem reg
  2236. 00100
  2237. # reg write mem data
  2238. 01111001101001110000010011110011
  2239. # reg write wr write
  2240. 0
  2241. # reg write wr reg
  2242. 11100
  2243. # reg write wr data
  2244. 01001110000111100010001000110001
  2245. # test case 44
  2246. # stall
  2247. 0
  2248. # flush
  2249. 0
  2250. # pc
  2251. 0010101000011000
  2252. # aluop
  2253. ALU_SLT
  2254. # alusrc1
  2255. 1
  2256. # alusrc2
  2257. 1
  2258. # alusrc3
  2259. 1
  2260. # rs1
  2261. 00000
  2262. # rs2
  2263. 00000
  2264. # readdata1
  2265. 00001101100100111011101001110111
  2266. # readdata2
  2267. 00011000010100011100011110010001
  2268. # imm
  2269. 00010001101110001101011001110100
  2270. # branchtype
  2271. BR_BR
  2272. # memread
  2273. 0
  2274. # memwrite
  2275. 1
  2276. # memtype
  2277. MEM_H
  2278. # wb rd
  2279. 11000
  2280. # wb write
  2281. 0
  2282. # wb src
  2283. WBS_ALU
  2284. # reg write mem write
  2285. 1
  2286. # reg write mem reg
  2287. 11001
  2288. # reg write mem data
  2289. 01011111101111101000001010100100
  2290. # reg write wr write
  2291. 1
  2292. # reg write wr reg
  2293. 01101
  2294. # reg write wr data
  2295. 01110010111101100010101010111011
  2296. # test case 45
  2297. # stall
  2298. 0
  2299. # flush
  2300. 0
  2301. # pc
  2302. 1111100000101011
  2303. # aluop
  2304. ALU_SLT
  2305. # alusrc1
  2306. 0
  2307. # alusrc2
  2308. 0
  2309. # alusrc3
  2310. 1
  2311. # rs1
  2312. 00000
  2313. # rs2
  2314. 00000
  2315. # readdata1
  2316. 01111011001111110010001101000101
  2317. # readdata2
  2318. 00111110010010001001011001110001
  2319. # imm
  2320. 01110110101111000010011000100010
  2321. # branchtype
  2322. BR_CND
  2323. # memread
  2324. 1
  2325. # memwrite
  2326. 0
  2327. # memtype
  2328. MEM_BU
  2329. # wb rd
  2330. 00010
  2331. # wb write
  2332. 0
  2333. # wb src
  2334. WBS_ALU
  2335. # reg write mem write
  2336. 1
  2337. # reg write mem reg
  2338. 11101
  2339. # reg write mem data
  2340. 01101110010010100010011001010111
  2341. # reg write wr write
  2342. 0
  2343. # reg write wr reg
  2344. 10001
  2345. # reg write wr data
  2346. 01110010011011011100000110110100
  2347. # test case 46
  2348. # stall
  2349. 0
  2350. # flush
  2351. 0
  2352. # pc
  2353. 0010100011101111
  2354. # aluop
  2355. ALU_XOR
  2356. # alusrc1
  2357. 1
  2358. # alusrc2
  2359. 1
  2360. # alusrc3
  2361. 0
  2362. # rs1
  2363. 00000
  2364. # rs2
  2365. 00000
  2366. # readdata1
  2367. 00001101101001111011011101111000
  2368. # readdata2
  2369. 00011111011001011000000001000100
  2370. # imm
  2371. 01110011100110000000000110100111
  2372. # branchtype
  2373. BR_CND
  2374. # memread
  2375. 1
  2376. # memwrite
  2377. 0
  2378. # memtype
  2379. MEM_BU
  2380. # wb rd
  2381. 01001
  2382. # wb write
  2383. 1
  2384. # wb src
  2385. WBS_ALU
  2386. # reg write mem write
  2387. 0
  2388. # reg write mem reg
  2389. 11100
  2390. # reg write mem data
  2391. 00101101110001010001001101111000
  2392. # reg write wr write
  2393. 1
  2394. # reg write wr reg
  2395. 11110
  2396. # reg write wr data
  2397. 00010011110101011110011101000010
  2398. # test case 47
  2399. # stall
  2400. 0
  2401. # flush
  2402. 0
  2403. # pc
  2404. 0010111000010100
  2405. # aluop
  2406. ALU_SRA
  2407. # alusrc1
  2408. 0
  2409. # alusrc2
  2410. 0
  2411. # alusrc3
  2412. 0
  2413. # rs1
  2414. 00000
  2415. # rs2
  2416. 00000
  2417. # readdata1
  2418. 00001010111110101100100110111010
  2419. # readdata2
  2420. 00100001010011010110000011010001
  2421. # imm
  2422. 01010110011010011000111101101001
  2423. # branchtype
  2424. BR_NOP
  2425. # memread
  2426. 0
  2427. # memwrite
  2428. 1
  2429. # memtype
  2430. MEM_HU
  2431. # wb rd
  2432. 01111
  2433. # wb write
  2434. 0
  2435. # wb src
  2436. WBS_ALU
  2437. # reg write mem write
  2438. 1
  2439. # reg write mem reg
  2440. 01110
  2441. # reg write mem data
  2442. 00011000010011000111011010100011
  2443. # reg write wr write
  2444. 1
  2445. # reg write wr reg
  2446. 10101
  2447. # reg write wr data
  2448. 00110111000110000101100101100001
  2449. # test case 48
  2450. # stall
  2451. 0
  2452. # flush
  2453. 0
  2454. # pc
  2455. 0000010100010001
  2456. # aluop
  2457. ALU_XOR
  2458. # alusrc1
  2459. 1
  2460. # alusrc2
  2461. 0
  2462. # alusrc3
  2463. 1
  2464. # rs1
  2465. 00000
  2466. # rs2
  2467. 00000
  2468. # readdata1
  2469. 00000110111001101000000101100001
  2470. # readdata2
  2471. 01101001000110100000000101011011
  2472. # imm
  2473. 00100110101110111101100100000011
  2474. # branchtype
  2475. BR_NOP
  2476. # memread
  2477. 1
  2478. # memwrite
  2479. 0
  2480. # memtype
  2481. MEM_B
  2482. # wb rd
  2483. 11100
  2484. # wb write
  2485. 1
  2486. # wb src
  2487. WBS_MEM
  2488. # reg write mem write
  2489. 1
  2490. # reg write mem reg
  2491. 11101
  2492. # reg write mem data
  2493. 01001100111000110110111100100100
  2494. # reg write wr write
  2495. 0
  2496. # reg write wr reg
  2497. 00110
  2498. # reg write wr data
  2499. 01110011110100111110010100000101
  2500. # test case 49
  2501. # stall
  2502. 0
  2503. # flush
  2504. 0
  2505. # pc
  2506. 1000101111100101
  2507. # aluop
  2508. ALU_SUB
  2509. # alusrc1
  2510. 0
  2511. # alusrc2
  2512. 1
  2513. # alusrc3
  2514. 1
  2515. # rs1
  2516. 00000
  2517. # rs2
  2518. 00000
  2519. # readdata1
  2520. 01011001001010111111111101101111
  2521. # readdata2
  2522. 01110110001110100101101101111111
  2523. # imm
  2524. 01011101011000110011001011010011
  2525. # branchtype
  2526. BR_CNDI
  2527. # memread
  2528. 1
  2529. # memwrite
  2530. 0
  2531. # memtype
  2532. MEM_B
  2533. # wb rd
  2534. 00000
  2535. # wb write
  2536. 1
  2537. # wb src
  2538. WBS_OPC
  2539. # reg write mem write
  2540. 0
  2541. # reg write mem reg
  2542. 11000
  2543. # reg write mem data
  2544. 01110110001110010100000111100000
  2545. # reg write wr write
  2546. 1
  2547. # reg write wr reg
  2548. 11011
  2549. # reg write wr data
  2550. 01100111011101111010011011001000