Skip to content

Commit

Permalink
Add controller docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cbebe committed Feb 6, 2024
1 parent a86d7df commit 2c41669
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/controller.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Controller Outputs

```
rd_sel_o : out std_ulogic_vector (1 downto 0)
sub_sra_o : out std_ulogic
addr_sel_o : out std_ulogic
alu_a_sel_o : out std_ulogic
alu_b_sel_o : out std_ulogic
mem_write_en_o : out std_ulogic
rd_clk_o : out std_ulogic
pc_clk_o : out std_ulogic
ir_clk_o : out std_ulogic
pc_alu_sel_o : out std_ulogic
pc_next_sel_o : out std_ulogic
done_o : out std_logic
```

| Instruction | rd[1:0] | sub_sra | addr | alu_a | alu_b | mem_write_en | rd_clk | pc_clk | ir_clk | pc_alu | pc_next | done |
| ----------- | ------- | ------- | ---- | ----- | ----- | ------------ | ------ | ------ | ------ | ------ | ------- | ---- |
| lui | 01 | 0 | 1 | [1] | 1 | 0 | dr | dr | dr | 1 | 0 | 0 |
| auipc | 01 | 0 | 1 | 1 | 1 | 0 | dr | dr | dr | 0 | 0 | 0 |

[^1] This somehow has to be pointing to 0! how? and the op bits should be add!

0 comments on commit 2c41669

Please sign in to comment.