1

Add missing "signed" to ALU ports/connections

This commit is contained in:
2023-03-29 15:03:20 +02:00
parent 17493586ff
commit ea5b2c53c2
6 changed files with 150 additions and 16 deletions

View File

@ -12,10 +12,11 @@
// 111 - >= 0
module ConditionalUnit(
input var logic[2:0] opcode,
input var logic[7:0] operand,
input var logic signed[7:0] operand,
output var logic result
);
// This could be simplified significantly (basically removed), if I had ALU flags.
always_comb case (opcode)
3'b000: result = 0;
3'b001: result = (operand == 0);