aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/ee4363/mp1/mp11/MIPSALU.v
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-05-24 11:18:46 -0500
committerMatt Strapp <matt@mattstrapp.net>2022-05-24 11:19:55 -0500
commit7a73162607544204032aa66cce755daf21edebda (patch)
tree58578e01f15f34a855d99c32898db9d7a1603e67 /OLD/ee4363/mp1/mp11/MIPSALU.v
parentdo some stuff (diff)
downloadhomework-7a73162607544204032aa66cce755daf21edebda.tar
homework-7a73162607544204032aa66cce755daf21edebda.tar.gz
homework-7a73162607544204032aa66cce755daf21edebda.tar.bz2
homework-7a73162607544204032aa66cce755daf21edebda.tar.lz
homework-7a73162607544204032aa66cce755daf21edebda.tar.xz
homework-7a73162607544204032aa66cce755daf21edebda.tar.zst
homework-7a73162607544204032aa66cce755daf21edebda.zip
Graduate
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'OLD/ee4363/mp1/mp11/MIPSALU.v')
-rw-r--r--OLD/ee4363/mp1/mp11/MIPSALU.v18
1 files changed, 0 insertions, 18 deletions
diff --git a/OLD/ee4363/mp1/mp11/MIPSALU.v b/OLD/ee4363/mp1/mp11/MIPSALU.v
deleted file mode 100644
index 096aff5..0000000
--- a/OLD/ee4363/mp1/mp11/MIPSALU.v
+++ /dev/null
@@ -1,18 +0,0 @@
-module MIPSALU (ALUctl, A, B, ALUOut, Zero);
- input [3:0] ALUctl;
- input [31:0] A,B;
- output reg [31:0] ALUOut;
- output Zero;
- assign Zero = (ALUOut==0);
- always @(ALUctl, A, B)
- case (ALUctl)
- 0: ALUOut <= A & B;
- 1: ALUOut <= A | B;
- 2: ALUOut <= A + B;
- 6: ALUOut <= A - B;
- 7: ALUOut <= A < B ? 1:0;
- 12: ALUOut <= ~(A | B);
- default: ALUOut <= 0;
- endcase
-endmodule
-