Added control unit. TODO: Test

This commit is contained in:
riley committed 2026-10-15 15:53:59 +11:00
1 parent 5fc24f7859
commit 04d1d3e2fe
2 files changed
+17 -8

No files matched your search

+2 -2
View File
@@ -66,9 +66,9 @@ module assignment2 #(width=5, ramsz=9, romsz=10) (
register_file #(width, 5) REGS (
clk, rd_we,
(RDST) ? instruction[15:11] : instruction[20:16], rs,
instruction[25:21], rt,
instruction[20:16], rd,
(RDST) ? instruction[15:11] : instruction[20:16], rt,
instruction[25:21], rs,
regs_out
);
// Always use sign-extension