From c7ddf3fa9e818cfc34e041f3af8f62ebbdf5580a Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Sat, 4 Nov 2023 08:31:05 +0000 Subject: [PATCH] More small fixes --- system/alu.v | 8 ++++---- system/system.v | 41 ++++++++++++++++++++--------------------- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/system/alu.v b/system/alu.v index ee9adea..595c231 100644 --- a/system/alu.v +++ b/system/alu.v @@ -47,10 +47,10 @@ always @ ( * ) begin `ALU_OP_ADD_SIGNED_B: {C_FLAG,OUT[7:0]}=A[7:0]+SIGNED_8B; `ALU_OP_SUB: {C_FLAG,OUT[7:0]}=A[7:0]-B[7:0]; `ALU_OP_SUB_REVERSE: {C_FLAG,OUT[7:0]}=B[7:0]-A[7:0]; - `ALU_OP_AND: begin C_FLAG=0;OUT=A&B; end - `ALU_OP_OR: begin C_FLAG=0;OUT=A|B; end - `ALU_OP_XOR: begin C_FLAG=0;OUT=A^B; end - `ALU_OP_SHIFT_LEFT: begin C_FLAG=(A&16'h80)==16'h80;OUT=A<