Remove the clock inputs from ALU and Cond again (for now)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user