Added comment to document the zero-flag
This commit is contained in:
1 file changed
+1
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
// flags[0:0] = Cout
|
// flags[0:0] = Cout
|
||||||
// flags[1:1] = Overflow
|
// flags[1:1] = Overflow
|
||||||
|
// flags[2:2] = Zero
|
||||||
module alu #(parameter width=2)(input logic [3:0] op,
|
module alu #(parameter width=2)(input logic [3:0] op,
|
||||||
input logic [2**width-1:0] A, input logic [2**width-1:0] B,
|
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
|
output logic [2**width-1:0] OUT_1, output logic[2:0] flags
|
||||||
|
|||||||
Reference in new issue
Block a user