Added comment to document the zero-flag

This commit is contained in:
riley committed 2026-10-16 11:57:55 +11:00
1 parent 5ae9125e06
commit c717bf189c
1 file changed
+1
+1
View File
@@ -6,6 +6,7 @@
// flags[0:0] = Cout
// flags[1:1] = Overflow
// flags[2:2] = Zero
module alu #(parameter width=2)(input logic [3:0] op,
input logic [2**width-1:0] A, input logic [2**width-1:0] B,
output logic [2**width-1:0] OUT_1, output logic[2:0] flags