aboutsummaryrefslogtreecommitdiff
path: root/rtl/montreal_pkg.sv
diff options
context:
space:
mode:
authorWarrick Lo <wlo@warricklo.net>2026-06-25 05:28:07 +0000
committerWarrick Lo <wlo@warricklo.net>2026-06-25 05:28:07 +0000
commit513ac84dbaaffd9b79330b24be089716d3c2dbc9 (patch)
tree60ae88f956c3028ea3c9f48c55ed42609431eab5 /rtl/montreal_pkg.sv
parentAdd basic ALU skeleton (diff)
parentClean up ALU before merge (diff)
downloadmontreal-513ac84dbaaffd9b79330b24be089716d3c2dbc9.tar.xz
montreal-513ac84dbaaffd9b79330b24be089716d3c2dbc9.zip
Merge branch 'feature/fu' from MyDariell
Implements arithmetic and bitwise logic in the ALU. * feature/fu: Clean up ALU before merge Implement XOR, OR, AND logical operations in sliced ALU Implement ADD and SUB operations in sliced ALU Closes: #16 Reviewed-by: Warrick Lo <wlo@warricklo.net>
Diffstat (limited to '')
-rw-r--r--rtl/montreal_pkg.sv28
1 files changed, 0 insertions, 28 deletions
diff --git a/rtl/montreal_pkg.sv b/rtl/montreal_pkg.sv
deleted file mode 100644
index 741a926..0000000
--- a/rtl/montreal_pkg.sv
+++ /dev/null
@@ -1,28 +0,0 @@
-/* SPDX-License-Identifier: CERN-OHL-P-2.0 */
-
-package montreal_pkg;
-
- typedef logic unsigned [config_pkg::XLEN-1:0] word_t;
- typedef logic unsigned [config_pkg::SLICE_WIDTH-1:0] slice_t;
-
- typedef enum logic [3:0] {
- /* Arithmetic operations. */
- ADD = 4'b0000,
- SUB = 4'b1000,
- /* Logical operations. */
- XOR = 4'b0100,
- OR = 4'b0110,
- AND = 4'b0111,
- /* Shift operations. */
- SLL = 4'b0001,
- SRL = 4'b0101,
- SRA = 4'b1101,
- /* Conditional set operations. */
- SLT = 4'b0010,
- SLTU = 4'b0011,
- /* Zicond operations. */
- CZERO_EQZ = 4'b1001,
- CZERO_NEZ = 4'b1011
- } fu_op_t;
-
-endpackage : montreal_pkg