1

Remove the clock inputs from ALU and Cond again (for now)

This commit is contained in:
2023-03-30 16:27:56 +02:00
parent 547472098f
commit dc4f25dc89
2 changed files with 5 additions and 4 deletions

View File

@ -11,14 +11,14 @@
// 110 - > 0
// 111 - >= 0
module ConditionalUnit(
input var logic clock,
// input var logic clock, // TODO
input var logic[2:0] opcode,
input var logic signed[7:0] operand,
output var logic result
);
// This could be simplified significantly (basically removed), if I had ALU flags.
always @(posedge clock) case (opcode)
always @(opcode or operand) case (opcode)
3'b000: result = 0;
3'b001: result = (operand == 0);
3'b010: result = (operand < 0);