|
Message
From: cvs at opencores.org<cvs@o...>
Date: Wed May 21 15:47:16 CEST 2008
Subject: [cvs-checkins] MODIFIED: m1_core ...
Date: 00/08/05 21:15:47 Modified: m1_core/hdl/rtl/m1_cpu m1_alu.v Log: Added default case for ALU. Revision Changes Path 1.2 m1_core/hdl/rtl/m1_cpu/m1_alu.v http://www.opencores.org/cvsweb.shtml/m1_core/hdl/rtl/m1_cpu/m1_alu.v.diff?r1=1.1&r2=1.2 (In the diff below, changes in quantity of whitespace are not shown.) Index: m1_alu.v =================================================================== RCS file: /cvsroot/fafa1971/m1_core/hdl/rtl/m1_cpu/m1_alu.v,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- m1_alu.v 18 Feb 2008 12:18:27 -0000 1.1 +++ m1_alu.v 21 May 2008 13:47:16 -0000 1.2 @@ -30,7 +30,7 @@ `ALU_OP_AND: result_o = a_i & b_i; `ALU_OP_OR: result_o = a_i | b_i; `ALU_OP_XOR: result_o = a_i ^ b_i; -// `ALU_OP_NOR: result_o = a_i ~| b_i; + `ALU_OP_NOR: result_o = a_i ~| b_i; `ALU_OP_SEQ: result_o = (a_i == b_i) ? 32'b1 : 32'b0; `ALU_OP_SNE: result_o = (a_i != b_i) ? 32'b1 : 32'b0; `ALU_OP_SLT: if(signed_i) result_o = ({~a_i[31],a_i[30:0]} < {~b_i[31],b_i[30:0]}) ? 32'b1 : 32'b0; @@ -41,6 +41,7 @@ else result_o = 32'b0; `ALU_OP_SGE: if(signed_i) result_o = ({~a_i[31],a_i[30:0]} >= {~b_i[31],b_i[30:0]}) ? 32'b1 : 32'b0; else result_o = a_i >= b_i; + default: result_o = 32'b0; endcase end
|
 |