mirror of
https://github.com/rdolbeau/VexRiscvBPluginGenerator.git
synced 2025-04-18 18:44:42 -04:00
11 lines
272 B
Text
11 lines
272 B
Text
I XAR XAR 1100100----------000-----1110111 xar Zbxar
|
|
|
|
S XAR "fun_xar(input(SRC1), input(SRC2), input(SRC3))"
|
|
|
|
P """
|
|
def fun_xar(rs1: Bits, rs2: Bits, rs3: Bits) : Bits = {
|
|
val in = rs1 ^ rs3
|
|
val r = in.rotateLeft(rs2(4 downto 0).asUInt)
|
|
r // return value
|
|
}
|
|
"""
|