output.txt 24 KB

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