udb 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. checksums.yaml +4 -4
  2. data/.data/cfgs/example_rv64_with_overlay.yaml +6 -6
  3. data/.data/cfgs/mc100-32-full-example.yaml +3 -2
  4. data/.data/cfgs/profile/RVA20S64.yaml +2 -0
  5. data/.data/cfgs/profile/RVA20U64.yaml +2 -0
  6. data/.data/cfgs/profile/RVA22S64.yaml +2 -0
  7. data/.data/cfgs/profile/RVA22U64.yaml +2 -0
  8. data/.data/cfgs/profile/RVA23S64.yaml +2 -0
  9. data/.data/cfgs/profile/RVA23U64.yaml +2 -0
  10. data/.data/cfgs/profile/RVB23S64.yaml +2 -0
  11. data/.data/cfgs/profile/RVB23U64.yaml +2 -0
  12. data/.data/cfgs/qc_iu.yaml +3 -2
  13. data/.data/cfgs/rv32-riscv-tests.yaml +5 -4
  14. data/.data/cfgs/rv32-vector.yaml +5 -4
  15. data/.data/cfgs/rv64-riscv-tests.yaml +5 -4
  16. data/.data/cfgs/rv64-vector.yaml +5 -4
  17. data/.data/spec/schemas/README.adoc +3 -0
  18. data/.data/spec/schemas/schema_defs.json +3 -3
  19. data/.data/spec/std/isa/csr/H/hcounteren.layout +3 -3
  20. data/.data/spec/std/isa/csr/H/hcounteren.yaml +31 -31
  21. data/.data/spec/std/isa/csr/H/henvcfg.yaml +1 -1
  22. data/.data/spec/std/isa/csr/H/htimedeltah.yaml +1 -1
  23. data/.data/spec/std/isa/csr/H/htinst.yaml +3 -3
  24. data/.data/spec/std/isa/csr/H/htval.yaml +3 -3
  25. data/.data/spec/std/isa/csr/H/mtinst.yaml +1 -1
  26. data/.data/spec/std/isa/csr/Smcntrpmf/mcyclecfg.yaml +1 -1
  27. data/.data/spec/std/isa/csr/Smcntrpmf/mcyclecfgh.yaml +1 -1
  28. data/.data/spec/std/isa/csr/Smcntrpmf/minstretcfg.yaml +1 -1
  29. data/.data/spec/std/isa/csr/Smcntrpmf/minstretcfgh.yaml +1 -1
  30. data/.data/spec/std/isa/csr/Smctr/vsctrctl.yaml +1 -1
  31. data/.data/spec/std/isa/csr/Sscofpmf/scountovf.layout +1 -1
  32. data/.data/spec/std/isa/csr/Sscofpmf/scountovf.yaml +29 -29
  33. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter10.yaml +4 -4
  34. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter10h.yaml +1 -1
  35. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter11.yaml +4 -4
  36. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter11h.yaml +1 -1
  37. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter12.yaml +4 -4
  38. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter12h.yaml +1 -1
  39. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter13.yaml +4 -4
  40. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter13h.yaml +1 -1
  41. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter14.yaml +4 -4
  42. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter14h.yaml +1 -1
  43. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter15.yaml +4 -4
  44. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter15h.yaml +1 -1
  45. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter16.yaml +4 -4
  46. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter16h.yaml +1 -1
  47. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter17.yaml +4 -4
  48. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter17h.yaml +1 -1
  49. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter18.yaml +4 -4
  50. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter18h.yaml +1 -1
  51. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter19.yaml +4 -4
  52. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter19h.yaml +1 -1
  53. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter20.yaml +4 -4
  54. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter20h.yaml +1 -1
  55. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter21.yaml +4 -4
  56. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter21h.yaml +1 -1
  57. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter22.yaml +4 -4
  58. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter22h.yaml +1 -1
  59. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter23.yaml +4 -4
  60. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter23h.yaml +1 -1
  61. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter24.yaml +4 -4
  62. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter24h.yaml +1 -1
  63. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter25.yaml +4 -4
  64. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter25h.yaml +1 -1
  65. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter26.yaml +4 -4
  66. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter26h.yaml +1 -1
  67. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter27.yaml +4 -4
  68. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter27h.yaml +1 -1
  69. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter28.yaml +4 -4
  70. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter28h.yaml +1 -1
  71. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter29.yaml +4 -4
  72. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter29h.yaml +1 -1
  73. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter3.yaml +4 -4
  74. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter30.yaml +4 -4
  75. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter30h.yaml +1 -1
  76. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter31.yaml +4 -4
  77. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter31h.yaml +1 -1
  78. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter3h.yaml +1 -1
  79. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter4.yaml +4 -4
  80. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter4h.yaml +1 -1
  81. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter5.yaml +4 -4
  82. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter5h.yaml +1 -1
  83. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter6.yaml +4 -4
  84. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter6h.yaml +1 -1
  85. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter7.yaml +4 -4
  86. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter7h.yaml +1 -1
  87. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter8.yaml +4 -4
  88. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter8h.yaml +1 -1
  89. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter9.yaml +4 -4
  90. data/.data/spec/std/isa/csr/Zihpm/mhpmcounter9h.yaml +1 -1
  91. data/.data/spec/std/isa/csr/Zihpm/mhpmcounterN.layout +4 -4
  92. data/.data/spec/std/isa/csr/Zihpm/mhpmcounterNh.layout +1 -1
  93. data/.data/spec/std/isa/csr/hstateen0h.yaml +1 -1
  94. data/.data/spec/std/isa/csr/hstateen1h.yaml +1 -1
  95. data/.data/spec/std/isa/csr/hstateen2h.yaml +1 -1
  96. data/.data/spec/std/isa/csr/hstateen3h.yaml +1 -1
  97. data/.data/spec/std/isa/csr/hstatus.yaml +1 -1
  98. data/.data/spec/std/isa/csr/instreth.yaml +1 -3
  99. data/.data/spec/std/isa/csr/mcycle.yaml +6 -6
  100. data/.data/spec/std/isa/csr/minstret.yaml +3 -3
  101. data/.data/spec/std/isa/csr/minstreth.yaml +2 -2
  102. data/.data/spec/std/isa/csr/mstatus.yaml +14 -20
  103. data/.data/spec/std/isa/csr/mstatush.yaml +1 -1
  104. data/.data/spec/std/isa/csr/mtvec.yaml +16 -57
  105. data/.data/spec/std/isa/csr/senvcfg.yaml +1 -1
  106. data/.data/spec/std/isa/csr/sepc.yaml +4 -3
  107. data/.data/spec/std/isa/csr/sie.yaml +30 -4
  108. data/.data/spec/std/isa/csr/sip.yaml +17 -3
  109. data/.data/spec/std/isa/csr/sscratch.yaml +3 -2
  110. data/.data/spec/std/isa/csr/stval.yaml +3 -2
  111. data/.data/spec/std/isa/csr/stvec.yaml +14 -14
  112. data/.data/spec/std/isa/csr/time.yaml +1 -1
  113. data/.data/spec/std/isa/csr/timeh.yaml +1 -1
  114. data/.data/spec/std/isa/csr/vsepc.yaml +6 -5
  115. data/.data/spec/std/isa/csr/vstval.yaml +1 -1
  116. data/.data/spec/std/isa/csr/vstvec.yaml +17 -17
  117. data/.data/spec/std/isa/ext/M.yaml +4 -0
  118. data/.data/spec/std/isa/ext/Q.yaml +1 -1
  119. data/.data/spec/std/isa/ext/Shgatpa.yaml +1 -0
  120. data/.data/spec/std/isa/ext/Shlcofideleg.yaml +24 -0
  121. data/.data/spec/std/isa/ext/Shvstvecd.yaml +2 -2
  122. data/.data/spec/std/isa/ext/Sspm.yaml +5 -0
  123. data/.data/spec/std/isa/ext/Sstvecd.yaml +2 -2
  124. data/.data/spec/std/isa/ext/Sstvecv.yaml +2 -2
  125. data/.data/spec/std/isa/ext/Supm.yaml +17 -0
  126. data/.data/spec/std/isa/ext/Zcb.yaml +3 -0
  127. data/.data/spec/std/isa/ext/Zfbfmin.yaml +3 -5
  128. data/.data/spec/std/isa/ext/Zibi.yaml +29 -0
  129. data/.data/spec/std/isa/ext/Ziccid.yaml +29 -0
  130. data/.data/spec/std/isa/ext/Zicfilp.yaml +5 -1
  131. data/.data/spec/std/isa/ext/Zicfiss.yaml +20 -1
  132. data/.data/spec/std/isa/ext/Zihpm.yaml +3 -0
  133. data/.data/spec/std/isa/ext/Zilx.yaml +58 -0
  134. data/.data/spec/std/isa/ext/Zkt.yaml +33 -1
  135. data/.data/spec/std/isa/ext/Zvabd.yaml +21 -0
  136. data/.data/spec/std/isa/ext/Zvbc.yaml +3 -0
  137. data/.data/spec/std/isa/ext/Zvkb.yaml +3 -0
  138. data/.data/spec/std/isa/ext/Zvkg.yaml +3 -0
  139. data/.data/spec/std/isa/ext/Zvkned.yaml +3 -0
  140. data/.data/spec/std/isa/ext/Zvknha.yaml +3 -0
  141. data/.data/spec/std/isa/ext/Zvknhb.yaml +4 -2
  142. data/.data/spec/std/isa/ext/Zvksed.yaml +3 -0
  143. data/.data/spec/std/isa/ext/Zvksh.yaml +3 -0
  144. data/.data/spec/std/isa/ext/Zvkt.yaml +3 -0
  145. data/.data/spec/std/isa/inst/B/roriw.yaml +1 -1
  146. data/.data/spec/std/isa/inst/B/rorw.yaml +1 -1
  147. data/.data/spec/std/isa/inst/C/c.add.yaml +1 -0
  148. data/.data/spec/std/isa/inst/C/c.addi.yaml +1 -0
  149. data/.data/spec/std/isa/inst/C/c.addiw.yaml +1 -0
  150. data/.data/spec/std/isa/inst/C/c.addw.yaml +1 -0
  151. data/.data/spec/std/isa/inst/C/c.and.yaml +1 -0
  152. data/.data/spec/std/isa/inst/C/c.andi.yaml +1 -0
  153. data/.data/spec/std/isa/inst/C/c.lui.yaml +1 -0
  154. data/.data/spec/std/isa/inst/C/c.mv.yaml +1 -0
  155. data/.data/spec/std/isa/inst/C/c.nop.yaml +13 -2
  156. data/.data/spec/std/isa/inst/C/c.or.yaml +1 -0
  157. data/.data/spec/std/isa/inst/C/c.slli.yaml +1 -0
  158. data/.data/spec/std/isa/inst/C/c.srai.yaml +1 -0
  159. data/.data/spec/std/isa/inst/C/c.srli.yaml +1 -0
  160. data/.data/spec/std/isa/inst/C/c.sub.yaml +1 -0
  161. data/.data/spec/std/isa/inst/C/c.subw.yaml +1 -0
  162. data/.data/spec/std/isa/inst/C/c.xor.yaml +1 -0
  163. data/.data/spec/std/isa/inst/D/fld.yaml +1 -0
  164. data/.data/spec/std/isa/inst/D/fsd.yaml +1 -0
  165. data/.data/spec/std/isa/inst/F/fadd.s.yaml +1 -1
  166. data/.data/spec/std/isa/inst/F/fcvt.l.s.yaml +1 -1
  167. data/.data/spec/std/isa/inst/F/fcvt.lu.s.yaml +1 -1
  168. data/.data/spec/std/isa/inst/F/fcvt.s.l.yaml +1 -1
  169. data/.data/spec/std/isa/inst/F/fcvt.s.lu.yaml +1 -1
  170. data/.data/spec/std/isa/inst/F/fcvt.s.wu.yaml +1 -1
  171. data/.data/spec/std/isa/inst/F/fcvt.w.s.yaml +1 -1
  172. data/.data/spec/std/isa/inst/F/fcvt.wu.s.yaml +1 -1
  173. data/.data/spec/std/isa/inst/F/fdiv.s.yaml +1 -1
  174. data/.data/spec/std/isa/inst/F/feq.s.yaml +1 -1
  175. data/.data/spec/std/isa/inst/F/fle.s.yaml +1 -1
  176. data/.data/spec/std/isa/inst/F/flt.s.yaml +1 -1
  177. data/.data/spec/std/isa/inst/F/flw.yaml +2 -1
  178. data/.data/spec/std/isa/inst/F/fmadd.s.yaml +1 -1
  179. data/.data/spec/std/isa/inst/F/fmax.s.yaml +1 -1
  180. data/.data/spec/std/isa/inst/F/fmin.s.yaml +1 -1
  181. data/.data/spec/std/isa/inst/F/fmsub.s.yaml +1 -1
  182. data/.data/spec/std/isa/inst/F/fmul.s.yaml +1 -1
  183. data/.data/spec/std/isa/inst/F/fmv.w.x.yaml +4 -1
  184. data/.data/spec/std/isa/inst/F/fmv.x.w.yaml +4 -1
  185. data/.data/spec/std/isa/inst/F/fnmadd.s.yaml +1 -1
  186. data/.data/spec/std/isa/inst/F/fnmsub.s.yaml +1 -1
  187. data/.data/spec/std/isa/inst/F/fsgnj.s.yaml +1 -1
  188. data/.data/spec/std/isa/inst/F/fsgnjn.s.yaml +1 -1
  189. data/.data/spec/std/isa/inst/F/fsgnjx.s.yaml +1 -1
  190. data/.data/spec/std/isa/inst/F/fsqrt.s.yaml +1 -1
  191. data/.data/spec/std/isa/inst/F/fsub.s.yaml +1 -1
  192. data/.data/spec/std/isa/inst/F/fsw.yaml +2 -1
  193. data/.data/spec/std/isa/inst/I/sd.yaml +1 -1
  194. data/.data/spec/std/isa/inst/M/mul.yaml +1 -3
  195. data/.data/spec/std/isa/inst/M/mulh.yaml +1 -3
  196. data/.data/spec/std/isa/inst/M/mulhsu.yaml +1 -3
  197. data/.data/spec/std/isa/inst/M/mulhu.yaml +1 -3
  198. data/.data/spec/std/isa/inst/M/mulw.yaml +1 -3
  199. data/.data/spec/std/isa/inst/Q/fadd.q.yaml +2 -2
  200. data/.data/spec/std/isa/inst/Q/fclass.q.yaml +5 -5
  201. data/.data/spec/std/isa/inst/Q/flq.yaml +1 -0
  202. data/.data/spec/std/isa/inst/Q/fsq.yaml +1 -0
  203. data/.data/spec/std/isa/inst/V/vmv.v.i.yaml +1 -0
  204. data/.data/spec/std/isa/inst/Zbb/ctzw.yaml +6 -1
  205. data/.data/spec/std/isa/inst/Zcb/c.mul.yaml +1 -0
  206. data/.data/spec/std/isa/inst/Zcb/c.not.yaml +1 -0
  207. data/.data/spec/std/isa/inst/Zcb/c.zext.b.yaml +2 -7
  208. data/.data/spec/std/isa/inst/Zcb/c.zext.w.yaml +1 -1
  209. data/.data/spec/std/isa/inst/Zcmop/c.mop.1.yaml +2 -0
  210. data/.data/spec/std/isa/inst/Zcmop/c.mop.5.yaml +2 -0
  211. data/.data/spec/std/isa/inst/Zcmop/c.mop.N.layout +7 -0
  212. data/.data/spec/std/isa/inst/{Q → Zfa}/fleq.q.yaml +0 -1
  213. data/.data/spec/std/isa/inst/{F → Zfa}/fleq.s.yaml +1 -1
  214. data/.data/spec/std/isa/inst/{Q → Zfa}/fli.q.yaml +1 -1
  215. data/.data/spec/std/isa/inst/Zfa/fli.s.yaml +1 -1
  216. data/.data/spec/std/isa/inst/{Q → Zfa}/fltq.q.yaml +2 -3
  217. data/.data/spec/std/isa/inst/{F → Zfa}/fltq.s.yaml +1 -1
  218. data/.data/spec/std/isa/inst/{Q → Zfa}/fmaxm.q.yaml +0 -1
  219. data/.data/spec/std/isa/inst/Zfa/fmaxm.s.yaml +1 -1
  220. data/.data/spec/std/isa/inst/{Q → Zfa}/fminm.q.yaml +0 -1
  221. data/.data/spec/std/isa/inst/Zfa/fminm.s.yaml +1 -1
  222. data/.data/spec/std/isa/inst/{Q → Zfa}/fmvp.q.x.yaml +1 -1
  223. data/.data/spec/std/isa/inst/Zfa/fround.s.yaml +1 -1
  224. data/.data/spec/std/isa/inst/Zfa/froundnx.s.yaml +1 -1
  225. data/.data/spec/std/isa/inst/Zfh/flh.yaml +5 -2
  226. data/.data/spec/std/isa/inst/Zfh/fmv.h.x.yaml +3 -1
  227. data/.data/spec/std/isa/inst/Zfh/fmv.x.h.yaml +3 -1
  228. data/.data/spec/std/isa/inst/Zfh/fsh.yaml +4 -1
  229. data/.data/spec/std/isa/inst/Zibi/beqi.yaml +45 -0
  230. data/.data/spec/std/isa/inst/Zibi/bnei.yaml +45 -0
  231. data/.data/spec/std/isa/inst/Zicbom/cbo.inval.yaml +1 -1
  232. data/.data/spec/std/isa/inst/Zicfiss/c.sspopchk.yaml +30 -0
  233. data/.data/spec/std/isa/inst/Zicfiss/c.sspush.yaml +29 -0
  234. data/.data/spec/std/isa/inst/Zicfiss/ssamoswap.d.yaml +1 -1
  235. data/.data/spec/std/isa/inst/Zicfiss/ssamoswap.w.yaml +1 -1
  236. data/.data/spec/std/isa/inst/Zicfiss/sspopchk.yaml +63 -0
  237. data/.data/spec/std/isa/inst/Zicfiss/sspush.yaml +63 -0
  238. data/.data/spec/std/isa/inst/Zicond/czero.eqz.yaml +1 -1
  239. data/.data/spec/std/isa/inst/Zicond/czero.nez.yaml +1 -1
  240. data/.data/spec/std/isa/inst/Zicsr/csrrw.yaml +12 -0
  241. data/.data/spec/std/isa/inst/Zilx/lxd.yaml +38 -0
  242. data/.data/spec/std/isa/inst/Zilx/lxh.yaml +35 -0
  243. data/.data/spec/std/isa/inst/Zilx/lxhu.yaml +35 -0
  244. data/.data/spec/std/isa/inst/Zilx/lxsb.yaml +40 -0
  245. data/.data/spec/std/isa/inst/Zilx/lxsbu.yaml +40 -0
  246. data/.data/spec/std/isa/inst/Zilx/lxsd.yaml +38 -0
  247. data/.data/spec/std/isa/inst/Zilx/lxsh.yaml +35 -0
  248. data/.data/spec/std/isa/inst/Zilx/lxshu.yaml +35 -0
  249. data/.data/spec/std/isa/inst/Zilx/lxsuwb.yaml +40 -0
  250. data/.data/spec/std/isa/inst/Zilx/lxsuwbu.yaml +40 -0
  251. data/.data/spec/std/isa/inst/Zilx/lxsuwd.yaml +39 -0
  252. data/.data/spec/std/isa/inst/Zilx/lxsuwh.yaml +40 -0
  253. data/.data/spec/std/isa/inst/Zilx/lxsuwhu.yaml +40 -0
  254. data/.data/spec/std/isa/inst/Zilx/lxsuww.yaml +40 -0
  255. data/.data/spec/std/isa/inst/Zilx/lxsuwwu.yaml +40 -0
  256. data/.data/spec/std/isa/inst/Zilx/lxsw.yaml +35 -0
  257. data/.data/spec/std/isa/inst/Zilx/lxswu.yaml +39 -0
  258. data/.data/spec/std/isa/inst/Zilx/lxw.yaml +35 -0
  259. data/.data/spec/std/isa/inst/Zilx/lxwu.yaml +39 -0
  260. data/.data/spec/std/isa/inst/Zimop/mop.r.28.yaml +1 -2
  261. data/.data/spec/std/isa/inst/Zimop/mop.r.N.layout +1 -2
  262. data/.data/spec/std/isa/inst/Zimop/mop.rr.7.yaml +1 -2
  263. data/.data/spec/std/isa/inst/Zimop/mop.rr.N.layout +1 -2
  264. data/.data/spec/std/isa/inst/Zvabd/vabd.vv.yaml +67 -0
  265. data/.data/spec/std/isa/inst/Zvabd/vabdu.vv.yaml +67 -0
  266. data/.data/spec/std/isa/inst/Zvabd/vabs.v.yaml +61 -0
  267. data/.data/spec/std/isa/inst/Zvabd/vwabda.vv.yaml +72 -0
  268. data/.data/spec/std/isa/inst/Zvabd/vwabdau.vv.yaml +72 -0
  269. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vandn.vv.yaml +1 -1
  270. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vandn.vx.yaml +1 -1
  271. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vbrev8.v.yaml +1 -1
  272. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vrev8.v.yaml +1 -1
  273. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vrol.vv.yaml +1 -1
  274. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vrol.vx.yaml +1 -1
  275. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vror.vi.yaml +1 -1
  276. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vror.vv.yaml +1 -1
  277. data/.data/spec/std/isa/inst/{Zvbb → Zvkb}/vror.vx.yaml +1 -1
  278. data/.data/spec/std/isa/isa/fp.idl +42 -18
  279. data/.data/spec/std/isa/isa/globals.isa +1 -1
  280. data/.data/spec/std/isa/isa/util.idl +3 -3
  281. data/.data/spec/std/isa/param/CACHE_BLOCK_SIZE.yaml +70 -6
  282. data/.data/spec/std/isa/param/COUNTINHIBIT_EN.yaml +9 -0
  283. data/.data/spec/std/isa/param/ELEN.yaml +27 -5
  284. data/.data/spec/std/isa/param/HCONTEXT_AVAILABLE.yaml +1 -1
  285. data/.data/spec/std/isa/param/HCOUNTENABLE_EN.yaml +13 -0
  286. data/.data/spec/std/isa/param/HPM_COUNTER_EN.yaml +13 -3
  287. data/.data/spec/std/isa/param/HPM_EVENTS.yaml +0 -3
  288. data/.data/spec/std/isa/param/MCOUNTENABLE_EN.yaml +8 -0
  289. data/.data/spec/std/isa/param/MTVEC_BASE_ALIGNMENT_DIRECT.yaml +71 -65
  290. data/.data/spec/std/isa/param/MTVEC_BASE_ALIGNMENT_VECTORED.yaml +71 -65
  291. data/.data/spec/std/isa/param/MUTABLE_MISA_H.yaml +1 -1
  292. data/.data/spec/std/isa/param/MUTABLE_MISA_S.yaml +1 -1
  293. data/.data/spec/std/isa/param/STVAL_WIDTH.yaml +3 -2
  294. data/.data/spec/std/isa/param/STVEC_BASE_ALIGNMENT_VECTORED.yaml +100 -0
  295. data/.data/spec/std/isa/param/STVEC_MODES.yaml +31 -0
  296. data/.data/spec/std/isa/param/SV32_VSMODE_TRANSLATION.yaml +1 -1
  297. data/.data/spec/std/isa/param/SXLEN.yaml +2 -2
  298. data/.data/spec/std/isa/param/TINST_VALUE_ON_FINAL_INSTRUCTION_GUEST_PAGE_FAULT.yaml +1 -1
  299. data/.data/spec/std/isa/param/TINST_VALUE_ON_FINAL_LOAD_GUEST_PAGE_FAULT.yaml +1 -1
  300. data/.data/spec/std/isa/param/TINST_VALUE_ON_FINAL_STORE_AMO_GUEST_PAGE_FAULT.yaml +1 -1
  301. data/.data/spec/std/isa/param/TINST_VALUE_ON_LOAD_ADDRESS_MISALIGNED.yaml +1 -1
  302. data/.data/spec/std/isa/param/TINST_VALUE_ON_STORE_AMO_ADDRESS_MISALIGNED.yaml +1 -1
  303. data/.data/spec/std/isa/param/UXLEN.yaml +1 -1
  304. data/.data/spec/std/isa/param/VLEN.yaml +16 -7
  305. data/.data/spec/std/isa/param/VSTVEC_MODES.yaml +31 -0
  306. data/lib/udb/Z3_VERSION +1 -1
  307. data/lib/udb/config.rb +1 -1
  308. data/lib/udb/obj/csr.rb +1 -1
  309. data/lib/udb/obj/csr_field.rb +1 -1
  310. data/lib/udb/obj/extension.rb +1 -1
  311. data/lib/udb/version.rb +1 -1
  312. data/lib/udb/version_spec.rb +1 -1
  313. data/lib/udb/z3.rb +29 -7
  314. metadata +80 -50
  315. data/.data/spec/std/isa/inst/Zicfiss/sspopchk.x1.yaml +0 -25
  316. data/.data/spec/std/isa/inst/Zicfiss/sspopchk.x5.yaml +0 -25
  317. data/.data/spec/std/isa/inst/Zicfiss/sspush.x1.yaml +0 -25
  318. data/.data/spec/std/isa/inst/Zicfiss/sspush.x5.yaml +0 -25
  319. data/.data/spec/std/isa/param/STVEC_MODE_DIRECT.yaml +0 -21
  320. data/.data/spec/std/isa/param/STVEC_MODE_VECTORED.yaml +0 -19
  321. data/.data/spec/std/isa/param/VSTVEC_MODE_DIRECT.yaml +0 -21
  322. data/.data/spec/std/isa/param/VSTVEC_MODE_VECTORED.yaml +0 -21
  323. /data/.data/spec/std/isa/inst/{Smdbltrp → Smctr}/sctrclr.yaml +0 -0
  324. /data/.data/spec/std/isa/inst/{D → Zfa}/fcvtmod.w.d.yaml +0 -0
  325. /data/.data/spec/std/isa/inst/{D → Zfa}/fleq.d.yaml +0 -0
  326. /data/.data/spec/std/isa/inst/{Zfh → Zfa}/fleq.h.yaml +0 -0
  327. /data/.data/spec/std/isa/inst/{D → Zfa}/fli.d.yaml +0 -0
  328. /data/.data/spec/std/isa/inst/{Zfh → Zfa}/fli.h.yaml +0 -0
  329. /data/.data/spec/std/isa/inst/{D → Zfa}/fltq.d.yaml +0 -0
  330. /data/.data/spec/std/isa/inst/{Zfh → Zfa}/fltq.h.yaml +0 -0
  331. /data/.data/spec/std/isa/inst/{D → Zfa}/fmaxm.d.yaml +0 -0
  332. /data/.data/spec/std/isa/inst/{Zfh → Zfa}/fmaxm.h.yaml +0 -0
  333. /data/.data/spec/std/isa/inst/{D → Zfa}/fminm.d.yaml +0 -0
  334. /data/.data/spec/std/isa/inst/{Zfh → Zfa}/fminm.h.yaml +0 -0
  335. /data/.data/spec/std/isa/inst/{D → Zfa}/fmvh.x.d.yaml +0 -0
  336. /data/.data/spec/std/isa/inst/{Q → Zfa}/fmvh.x.q.yaml +0 -0
  337. /data/.data/spec/std/isa/inst/{D → Zfa}/fmvp.d.x.yaml +0 -0
  338. /data/.data/spec/std/isa/inst/{D → Zfa}/fround.d.yaml +0 -0
  339. /data/.data/spec/std/isa/inst/{Zfh → Zfa}/fround.h.yaml +0 -0
  340. /data/.data/spec/std/isa/inst/{Q → Zfa}/fround.q.yaml +0 -0
  341. /data/.data/spec/std/isa/inst/{D → Zfa}/froundnx.d.yaml +0 -0
  342. /data/.data/spec/std/isa/inst/{Zfh → Zfa}/froundnx.h.yaml +0 -0
  343. /data/.data/spec/std/isa/inst/{Q → Zfa}/froundnx.q.yaml +0 -0
@@ -6,31 +6,32 @@
6
6
  $schema: "csr_schema.json#"
7
7
  kind: csr
8
8
  name: vstvec
9
- long_name: Supervisor Trap Vector
9
+ long_name: Virtual Supervisor Trap Vector
10
10
  address: 0x205
11
11
  writable: true
12
12
  virtual_address: 0x105
13
- priv_mode: S
14
- length: 64
13
+ priv_mode: VS
14
+ length: VSXLEN
15
15
  description: Controls where traps jump.
16
16
  definedBy:
17
17
  extension:
18
18
  name: H
19
19
  fields:
20
20
  BASE:
21
- location: 63-2
21
+ location_rv32: 31-2
22
+ location_rv64: 63-2
22
23
  description: |
23
- <%- va_size = ext?(:Sv57) ? 57 : (ext?(:Sv48) ? 49 :39) -%>
24
- Bit 63:0 of the virtual address of the exception vector for any trap taken into VS-mode.
24
+ <%- va_size = ext?(:Sv57) ? 57 : (ext?(:Sv48) ? 48 : 39) -%>
25
+ Bits [VSXLEN-1:2] of the virtual address of the exception vector for any trap taken into VS-mode.
25
26
 
26
- If the base address is written with a non-cannonical address (_i.e._, bits 63:<%= va_size %> do not match bit <%= va_size-1 %>),
27
+ If the base address is written with a non-canonical address (_i.e._, bits [VSXLEN-1:<%= va_size %>] do not match bit <%= va_size-1 %>),
27
28
  the write should be ignored.
28
29
 
29
30
  type: RW-R
30
31
  sw_write(csr_value): |
31
32
  # Base spec says that BASE must be 4-byte aligned, which will always be the case
32
33
  # implementations may put further constraints on BASE when MODE != Direct
33
- # If that is the case, stvec should have an override for the implementation
34
+ # If that is the case, vstvec should have an override for the implementation
34
35
  return csr_value.BASE;
35
36
  reset_value: 0
36
37
  MODE:
@@ -42,14 +43,13 @@ fields:
42
43
 
43
44
  When Direct, all synchronous exceptions and asynchronous interrupts jump to (`vstvec.BASE` << 2).
44
45
 
45
- When Vectored, asynchronous interrupts jump to (`vstvec.BASE` << 2 + `vscause.CAUSE`*4) while synchronous exceptions continue to jump to (`vstvec.BASE` << 2).
46
- type: RW-R
46
+ When Vectored, asynchronous interrupts jump to (`vstvec.BASE` << 2 + `vscause.CODE`*4) while synchronous exceptions continue to jump to (`vstvec.BASE` << 2).
47
+ type(): |
48
+ return ($array_size(VSTVEC_MODES) == 1) ? CsrFieldType::RO : CsrFieldType::RWR;
47
49
  sw_write(csr_value): |
48
- if (VSTVEC_MODE_DIRECT && csr_value.MODE == 0) {
49
- return 0;
50
- } else if (VSTVEC_MODE_VECTORED && csr_value.MODE == 1) {
51
- return 1;
52
- } else {
53
- return UNDEFINED_LEGAL_DETERMINISTIC;
50
+ if ($array_includes?(VSTVEC_MODES, csr_value.MODE)) {
51
+ return csr_value.MODE;
54
52
  }
55
- reset_value: 0
53
+ return UNDEFINED_LEGAL_DETERMINISTIC;
54
+ reset_value(): |
55
+ return ($array_size(VSTVEC_MODES) == 1) ? VSTVEC_MODES[0] : UNDEFINED_LEGAL;
@@ -12,6 +12,10 @@ versions:
12
12
  - version: "2.0.0"
13
13
  state: ratified
14
14
  ratification_date: 2019-12
15
+ requirements:
16
+ extension:
17
+ name: Zmmul
18
+ version: "~> 1.0.0"
15
19
  description: |
16
20
  This chapter describes the standard integer multiplication and division
17
21
  instruction extension, which is named `M` and contains instructions
@@ -17,7 +17,7 @@ description: |
17
17
  a double-precision value which is itself NaN-boxed inside a quad-precision value.
18
18
  type: unprivileged
19
19
  versions:
20
- - version: "1.0.0"
20
+ - version: "2.2.0"
21
21
  state: ratified
22
22
  ratification_date: 2019-04
23
23
  requirements:
@@ -26,6 +26,7 @@ requirements:
26
26
  implemented?(ExtensionName::Sv39) -> SV39X4_TRANSLATION;
27
27
  implemented?(ExtensionName::Sv48) -> SV48X4_TRANSLATION;
28
28
  implemented?(ExtensionName::Sv57) -> SV57X4_TRANSLATION;
29
+ -> GSTAGE_MODE_BARE;
29
30
  reason: |
30
31
  Shgatpa mandates that or each supported virtual memory scheme SvNN supported in
31
32
  `satp`, the corresponding hgatp SvNNx4 mode must be supported.
@@ -0,0 +1,24 @@
1
+ # Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
2
+ # SPDX-License-Identifier: BSD-3-Clause-Clear
3
+
4
+ # yaml-language-server: $schema=../../../schemas/ext_schema.json
5
+
6
+ $schema: "ext_schema.json#"
7
+ kind: extension
8
+ name: Shlcofideleg
9
+ long_name: Hypervisor local counter overflow interrupt delegation
10
+ description: |
11
+ Shlcofideleg supports delegating Local Counter Overflow Interrupts
12
+ (LCOFIs) to VS-mode.
13
+
14
+ When Shlcofideleg is implemented, `hideleg` bit 13 is writable.
15
+ type: privileged
16
+ versions:
17
+ - version: "1.0.0"
18
+ state: ratified
19
+ ratification_date: 2024-10
20
+ requirements:
21
+ extension:
22
+ allOf:
23
+ - name: H
24
+ - name: Sscofpmf
@@ -22,5 +22,5 @@ versions:
22
22
  requirements:
23
23
  # Shvstvecd mandates that `vstvec.MODE` must be capable of holding the value 0 (Direct).
24
24
  param:
25
- name: VSTVEC_MODE_DIRECT
26
- equal: true
25
+ name: VSTVEC_MODES
26
+ includes: 0
@@ -21,3 +21,8 @@ versions:
21
21
  - version: "1.0.0"
22
22
  state: ratified
23
23
  ratification_date: 2024-10
24
+ requirements:
25
+ extension:
26
+ allOf:
27
+ - name: S
28
+ - name: Smnpm
@@ -25,5 +25,5 @@ versions:
25
25
  company: SiFive, Inc.
26
26
  requirements:
27
27
  param:
28
- name: STVEC_MODE_DIRECT
29
- equal: true
28
+ name: STVEC_MODES
29
+ includes: 0
@@ -26,5 +26,5 @@ versions:
26
26
  company: SiFive, Inc.
27
27
  requirements:
28
28
  param:
29
- name: STVEC_MODE_VECTORED
30
- equal: true
29
+ name: STVEC_MODES
30
+ includes: 1
@@ -21,3 +21,20 @@ versions:
21
21
  - version: "1.0.0"
22
22
  state: ratified
23
23
  ratification_date: 2024-10
24
+ requirements:
25
+ allOf:
26
+ - extension:
27
+ name: U
28
+ - if:
29
+ extension:
30
+ name: S
31
+ then:
32
+ extension:
33
+ name: Ssnpm
34
+ - if:
35
+ not:
36
+ extension:
37
+ name: S
38
+ then:
39
+ extension:
40
+ name: Smnpm
@@ -43,3 +43,6 @@ versions:
43
43
  - name: Graeme Smecher
44
44
  - name: Nicolas Brunie
45
45
  - name: Jiawei
46
+ requirements:
47
+ extension:
48
+ name: Zca
@@ -12,8 +12,8 @@ description: |
12
12
  It enables BF16 as an interchange format as it provides conversion between BF16 values and
13
13
  FP32 values.
14
14
 
15
- This extension depends upon the single-precision floating-point extension `F`,
16
- and the `flh`, `fsh`, `fmv.x.h`, and `fmv.h.x` instructions as defined in the `Zfh` extension.
15
+ This extension includes the `flh`, `fsh`, `fmv.x.h`, and `fmv.h.x`
16
+ instructions defined in the `Zfh` extension.
17
17
 
18
18
  type: unprivileged
19
19
  versions:
@@ -22,6 +22,4 @@ versions:
22
22
  ratification_date: 2024-06
23
23
  requirements:
24
24
  extension:
25
- allOf:
26
- - name: F
27
- - name: Zfh
25
+ name: F
@@ -0,0 +1,29 @@
1
+ # Copyright (c) RISC-V International
2
+ # SPDX-License-Identifier: BSD-3-Clause-Clear
3
+
4
+ # yaml-language-server: $schema=../../../schemas/ext_schema.json
5
+
6
+ $schema: "ext_schema.json#"
7
+ kind: extension
8
+ name: Zibi
9
+ long_name: Branch with Immediate
10
+ description: |
11
+ The Zibi extension adds conditional branch instructions that compare an
12
+ integer register with a small immediate constant.
13
+
14
+ Existing conditional branch instructions, such as `beq` and `bne`, compare two
15
+ integer registers. When a branch compares against a constant, software must
16
+ otherwise materialize that constant in an integer register before branching,
17
+ which can increase register pressure and potentially cause register spills and
18
+ reloads.
19
+
20
+ The `beqi` and `bnei` instructions use the B-type instruction format. The
21
+ instruction bits that would otherwise carry _rs2_ in a B-type branch carry a
22
+ 5-bit _cimm_ field. All _cimm_ encodings are valid: the _cimm_ field is not
23
+ sign-extended; it decodes to an XLEN-bit comparison constant where `cimm=0`
24
+ encodes the value -1, and `cimm` values 1 through 31 encode the corresponding
25
+ positive integer values 1 through 31.
26
+ type: unprivileged
27
+ versions:
28
+ - version: "0.7.0"
29
+ state: frozen
@@ -0,0 +1,29 @@
1
+ # Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
2
+ # SPDX-License-Identifier: BSD-3-Clause-Clear
3
+
4
+ # yaml-language-server: $schema=../../../schemas/ext_schema.json
5
+
6
+ $schema: "ext_schema.json#"
7
+ kind: extension
8
+ name: Ziccid
9
+ long_name: Instruction/Data Coherence and Consistency
10
+ description: |
11
+ The `Ziccid` extension mandates more stringent requirements for consistency
12
+ between instruction fetches and other memory accesses than those imposed by
13
+ the base ISA.
14
+
15
+ `Ziccid` guarantees that a hart's instruction fetches appear to occur in
16
+ program order with respect to each other, and that stores eventually become
17
+ visible to all harts' instruction fetches.
18
+
19
+ [NOTE]
20
+ The primary intent of the `Ziccid` extension is to accelerate JIT compilation
21
+ in multiprocessor systems.
22
+ type: unprivileged
23
+ versions:
24
+ - version: "1.0.0"
25
+ state: ratified
26
+ ratification_date: 2026-06
27
+ requirements:
28
+ extension:
29
+ name: Ziccif
@@ -8,9 +8,13 @@ kind: extension
8
8
  name: Zicfilp
9
9
  long_name: Landing Pad
10
10
  description: |
11
- TODO
11
+ The Zicfilp extension introduces a landing-pad instruction and related
12
+ execution state to enforce forward-edge control-flow integrity.
12
13
  type: unprivileged
13
14
  versions:
14
15
  - version: "1.0.0"
15
16
  state: ratified
16
17
  ratification_date: 2024-07
18
+ requirements:
19
+ extension:
20
+ name: Zicsr
@@ -8,9 +8,28 @@ kind: extension
8
8
  name: Zicfiss
9
9
  long_name: Shadow Stack
10
10
  description: |
11
- TODO
11
+ The Zicfiss extension introduces a shadow stack to enforce
12
+ backward-edge control-flow integrity.
13
+
14
+ The extension provides instructions to store and load the link register
15
+ to and from the shadow stack, check the integrity of the return address,
16
+ read the shadow stack pointer, and perform atomic swaps on shadow stack
17
+ locations.
12
18
  type: unprivileged
13
19
  versions:
14
20
  - version: "1.0.0"
15
21
  state: ratified
16
22
  ratification_date: 2024-07
23
+ requirements:
24
+ allOf:
25
+ - extension:
26
+ allOf:
27
+ - name: Zicsr
28
+ - name: Zimop
29
+ - name: Zaamo
30
+ - if:
31
+ extension:
32
+ name: U
33
+ then:
34
+ extension:
35
+ name: S
@@ -13,3 +13,6 @@ versions:
13
13
  - version: "2.0.0"
14
14
  state: ratified
15
15
  ratification_date: 2023-03
16
+ requirements:
17
+ extension:
18
+ name: Zicsr
@@ -0,0 +1,58 @@
1
+ # Copyright (c) RISC-V International
2
+ # SPDX-License-Identifier: BSD-3-Clause-Clear
3
+
4
+ # yaml-language-server: $schema=../../../schemas/ext_schema.json
5
+
6
+ $schema: "ext_schema.json#"
7
+ kind: extension
8
+ name: Zilx
9
+ long_name: Indexed Integer Load Instructions
10
+ description: |
11
+ The Zilx extension provides integer load instructions that compute their
12
+ effective address from a base register and an index register. The extension
13
+ defines unscaled indexed loads and scaled indexed loads. On RV64, the
14
+ extension also defines scaled loads that zero-extend the low 32 bits of the
15
+ index register before scaling and forming the effective address.
16
+
17
+ Each Zilx instruction uses `xs1` as the index operand and `xs2` as the base
18
+ operand, computes an effective address, loads a byte, halfword, word, or
19
+ doubleword from memory, and writes the extended load result to `xd`. The
20
+ operand roles match the shift-add instructions of the `Zba` extension, in
21
+ which the shifted operand is `xs1` and the added base is `xs2`.
22
+
23
+ Effective addresses are computed using XLEN-bit two's-complement address
24
+ arithmetic, and address arithmetic overflow is ignored:
25
+
26
+ * For an unscaled indexed load, the effective address is the low XLEN bits of
27
+ `X[xs2] + X[xs1]`.
28
+ * For a scaled indexed load, the effective address is the low XLEN bits of
29
+ `X[xs2] + (X[xs1] << log2(access-size))`, where _access-size_ is the number
30
+ of bytes loaded by the instruction.
31
+ * For a scaled unsigned-word-index load (mnemonic prefix `lxsuw`), the index
32
+ operand is zero-extended from `X[xs1][31:0]` to 64 bits before scaling.
33
+ These instructions are defined only for RV64.
34
+
35
+ Byte loads are provided only as scaled forms (mnemonic prefixes `lxs` and
36
+ `lxsuw`). Because the scale factor for a byte access is 1, an unscaled byte
37
+ load would be identical to the scaled byte load, so no unscaled byte load is
38
+ defined. For convenience, `lxb` and `lxbu` are provided as assembler
39
+ pseudoinstructions for `lxsb` and `lxsbu`, respectively.
40
+
41
+ Zilx adds no architectural state, CSRs, or memory-ordering rules. Except for
42
+ the effective-address calculation, each Zilx instruction behaves as the
43
+ corresponding base integer load of the same access size and signedness, and
44
+ follows the same exception, address-alignment, access-fault, page-fault, PMP,
45
+ PMA, privilege, atomicity, and memory-ordering rules.
46
+
47
+ Zilx instructions reuse the `AMO` major opcode. The access width and
48
+ signedness are encoded in _funct3_ using the same encoding as base integer
49
+ loads, and the addressing mode is encoded in _funct5_. For all Zilx
50
+ instructions the _aq_ and _rl_ bits must be 0; encodings with _aq_ or _rl_
51
+ set are reserved.
52
+ type: unprivileged
53
+ versions:
54
+ - version: "0.1.0"
55
+ state: development
56
+ repositories:
57
+ - url: https://github.com/riscv/riscv-zilx
58
+ branch: main
@@ -203,6 +203,21 @@ description: |
203
203
  | | &#10003; | sraw _rd_, _rs1_, _rs2_ | 'sraw'
204
204
  |===
205
205
 
206
+ === Zicond (Conditional Zero)
207
+
208
+ All instructions are included.
209
+
210
+ [%header,cols="^1,^1,4,8"]
211
+ |===
212
+ |RV32
213
+ |RV64
214
+ |Mnemonic
215
+ |Instruction
216
+
217
+ | &#10003; | &#10003; | czero.eqz _rd_, _rs1_, _rs2_ | 'czero.eqz'
218
+ | &#10003; | &#10003; | czero.nez _rd_, _rs1_, _rs2_ | 'czero.nez'
219
+ |===
220
+
206
221
  === RVM (Multiply)
207
222
 
208
223
  Multiplication is included; division and remaindering excluded.
@@ -221,7 +236,7 @@ description: |
221
236
  | | &#10003; | mulw _rd_, _rs1_, _rs2_ | 'mulw'
222
237
  |===
223
238
 
224
- === RVC (Compressed)
239
+ === Zca (Compressed)
225
240
 
226
241
  Same criteria as in RVI. Organised by quadrants.
227
242
 
@@ -250,6 +265,23 @@ description: |
250
265
  | &#10003; | &#10003; | c.add | 'c_add'
251
266
  |===
252
267
 
268
+ === Zcb Extension
269
+
270
+ These instructions are compressed versions of `I` and `M` instructions that are
271
+ included in `Zkt`.
272
+
273
+ [%header,cols="^1,^1,4,8"]
274
+ |===
275
+ |RV32
276
+ |RV64
277
+ |Mnemonic
278
+ |Instruction
279
+
280
+ | &#10003; | &#10003; | c.mul | 'c_mul'
281
+ | &#10003; | &#10003; | c.not | 'c_not'
282
+ | &#10003; | &#10003; | c.zext.b | 'c_zext_b'
283
+ |===
284
+
253
285
  === RVK (Scalar Cryptography)
254
286
 
255
287
  All K-specific instructions are included.
@@ -0,0 +1,21 @@
1
+ # Copyright (c) Alibaba Damo Academy
2
+ # SPDX-License-Identifier: BSD-3-Clause-Clear
3
+
4
+ # yaml-language-server: $schema=../../../schemas/ext_schema.json
5
+
6
+ $schema: "ext_schema.json#"
7
+ kind: extension
8
+ name: Zvabd
9
+ long_name: Vector Integer Absolute Difference
10
+ description: |
11
+ The Zvabd extension defines element-wise absolute difference instructions for
12
+ vectors of integers, including widening absolute-difference-and-accumulate
13
+ variants. These operations are widely used in image registration, object
14
+ recognition, motion estimation, and loop filters for video workloads.
15
+ type: unprivileged
16
+ versions:
17
+ - version: "0.7.0"
18
+ state: frozen
19
+ requirements:
20
+ extension:
21
+ name: Zve32x
@@ -17,3 +17,6 @@ versions:
17
17
  - version: "1.0.0"
18
18
  state: ratified
19
19
  ratification_date: 2023-09
20
+ requirements:
21
+ extension:
22
+ name: Zve64x
@@ -14,3 +14,6 @@ versions:
14
14
  - version: "1.0.0"
15
15
  state: ratified
16
16
  ratification_date: 2023-09
17
+ requirements:
18
+ extension:
19
+ name: Zve32x
@@ -24,3 +24,6 @@ versions:
24
24
  - version: "1.0.0"
25
25
  state: ratified
26
26
  ratification_date: 2023-09
27
+ requirements:
28
+ extension:
29
+ name: Zve32x
@@ -20,3 +20,6 @@ versions:
20
20
  - version: "1.0.0"
21
21
  state: ratified
22
22
  ratification_date: 2023-09
23
+ requirements:
24
+ extension:
25
+ name: Zve32x
@@ -15,3 +15,6 @@ versions:
15
15
  - version: "1.0.0"
16
16
  state: ratified
17
17
  ratification_date: 2023-09
18
+ requirements:
19
+ extension:
20
+ name: Zve32x
@@ -17,5 +17,7 @@ versions:
17
17
  ratification_date: 2023-09
18
18
  requirements:
19
19
  extension:
20
- name: Zvknha
21
- version: "= 1.0.0"
20
+ allOf:
21
+ - name: Zvknha
22
+ version: "= 1.0.0"
23
+ - name: Zve64x
@@ -22,3 +22,6 @@ versions:
22
22
  - version: "1.0.0"
23
23
  state: ratified
24
24
  ratification_date: 2023-09
25
+ requirements:
26
+ extension:
27
+ name: Zve32x
@@ -18,3 +18,6 @@ versions:
18
18
  - version: "1.0.0"
19
19
  state: ratified
20
20
  ratification_date: 2023-09
21
+ requirements:
22
+ extension:
23
+ name: Zve32x
@@ -26,3 +26,6 @@ versions:
26
26
  - version: "1.0.0"
27
27
  state: ratified
28
28
  ratification_date: 2023-09
29
+ requirements:
30
+ extension:
31
+ name: Zvl32b
@@ -41,5 +41,5 @@ operation(): |
41
41
 
42
42
  XReg xs1_word = X[xs1][31:0];
43
43
 
44
- XReg unextended_result = (X[xs1] >> shamt) | (X[xs1] << (32 - shamt));
44
+ XReg unextended_result = (xs1_word >> shamt) | (xs1_word << (32 - shamt));
45
45
  X[xd] = {{32{unextended_result[31]}}, unextended_result};
@@ -42,5 +42,5 @@ operation(): |
42
42
  XReg xs1_word = X[xs1][31:0];
43
43
  XReg shamt = X[xs2][4:0];
44
44
 
45
- XReg unextended_result = (X[xs1] >> shamt) | (X[xs1] << (32 - shamt));
45
+ XReg unextended_result = (xs1_word >> shamt) | (xs1_word << (32 - shamt));
46
46
  X[xd] = {{32{unextended_result[31]}}, unextended_result};
@@ -28,6 +28,7 @@ access:
28
28
  u: always
29
29
  vs: always
30
30
  vu: always
31
+ data_independent_timing: true
31
32
  hints:
32
33
  - { $ref: inst/Zihintntl/c.ntl.p1.yaml# }
33
34
  - { $ref: inst/Zihintntl/c.ntl.pall.yaml# }
@@ -31,6 +31,7 @@ access:
31
31
  u: always
32
32
  vs: always
33
33
  vu: always
34
+ data_independent_timing: true
34
35
  operation(): |
35
36
  if (implemented?(ExtensionName::C) && (CSR[misa].C == 1'b0)) {
36
37
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
@@ -32,6 +32,7 @@ access:
32
32
  u: always
33
33
  vs: always
34
34
  vu: always
35
+ data_independent_timing: true
35
36
  operation(): |
36
37
  if (implemented?(ExtensionName::C) && (CSR[misa].C == 1'b0)) {
37
38
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
@@ -29,6 +29,7 @@ access:
29
29
  u: always
30
30
  vs: always
31
31
  vu: always
32
+ data_independent_timing: true
32
33
  operation(): |
33
34
  Bits<32> t0 = X[creg2reg(xd)][31:0];
34
35
  Bits<32> t1 = X[creg2reg(xs2)][31:0];
@@ -27,6 +27,7 @@ access:
27
27
  u: always
28
28
  vs: always
29
29
  vu: always
30
+ data_independent_timing: true
30
31
  operation(): |
31
32
  XReg t0 = X[creg2reg(xd)];
32
33
  XReg t1 = X[creg2reg(xs2)];
@@ -28,6 +28,7 @@ access:
28
28
  u: always
29
29
  vs: always
30
30
  vu: always
31
+ data_independent_timing: true
31
32
  operation(): |
32
33
  # shamt is between 0-63
33
34
  X[creg2reg(xd)] = X[creg2reg(xd)] & $signed(imm);
@@ -31,6 +31,7 @@ access:
31
31
  u: always
32
32
  vs: always
33
33
  vu: always
34
+ data_independent_timing: true
34
35
  operation(): |
35
36
  if (implemented?(ExtensionName::C) && (CSR[misa].C == 1'b0)) {
36
37
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
@@ -28,6 +28,7 @@ access:
28
28
  u: always
29
29
  vs: always
30
30
  vu: always
31
+ data_independent_timing: true
31
32
  operation(): |
32
33
  if (implemented?(ExtensionName::C) && (CSR[misa].C == 1'b0)) {
33
34
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
@@ -8,18 +8,29 @@ kind: instruction
8
8
  name: c.nop
9
9
  long_name: Non-operation
10
10
  description: |
11
+ C.NOP does not change any user-visible state, except for advancing the pc and
12
+ accepting any HINTs.
11
13
  C.NOP expands into `addi x0, x0, 0`.
14
+ C.NOP with non-zero immediate values are HINTs.
12
15
  definedBy:
13
16
  extension:
14
17
  name: Zca
15
- assembly: ""
18
+ assembly: imm
16
19
  encoding:
17
- match: "0000000000000001"
20
+ match: 000-00000-----01
21
+ variables:
22
+ - name: imm
23
+ location: 12|6-2
24
+ sign_extend: true
25
+ pseudoinstructions:
26
+ - when: imm == 0
27
+ to: "c.nop"
18
28
  access:
19
29
  s: always
20
30
  u: always
21
31
  vs: always
22
32
  vu: always
33
+ data_independent_timing: true
23
34
  operation(): |
24
35
  if (implemented?(ExtensionName::C) && (CSR[misa].C == 1'b0)) {
25
36
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);