I'm a bit confused with how the immediate of UJ-Types are decoded / encoded.
Chapter 2.3 of https://content.riscv.org/wp-content/uploads/2016/06/riscv-spec-v2.1.pdf got me slightly more confused than I was before.
For example, I'd like to decode the instruction 0300006f which I know is of type UJ.
Any help would be appreciated.