Add 'Extend'

Mario Romero 2023-06-06 17:01:33 +00:00
parent 3eee80b25d
commit 10d68f3e07

35
Extend.md Normal file

@ -0,0 +1,35 @@
# Immediate Extend
> *Defined in [rtl/extend.sv](https://git.1159.cl/Mario1159/RVSCC/src/branch/main/rtl/extend.sv)*
<table>
<tr>
<th>Figure</th>
<th>Direction</th>
<th>Signal</th>
</tr>
<tr>
<td rowspan="3"></td>
<td rowspan="2">Input</td>
<td>imm_src</td>
</tr>
<tr>
<td>instr</td>
</tr>
<tr>
<td rowspan="1">Output</td>
<td>imm_ext</td>
</tr>
</table>
This module extend the immediate from a bit index depending from the `imm_src` signal.
The `imm_src` signal represent the instruction type as follows:
| Binary value | Instruction Type |
| ------------ | ---------------- |
| 00 | I |
| 01 | S |
| 10 | B |
| 11 | J |