summaryrefslogtreecommitdiff
path: root/cpu/alu.ml
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-25 19:41:32 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-25 19:41:32 +0100
commit9b65e770ec4dd28b668c53ff9c4d377dcab76d2e (patch)
tree5784d3318a965b2abd3a628273f06bacfb190017 /cpu/alu.ml
parentb9364facba832f90ea5ac55ddb714acb359c3375 (diff)
downloadSystDigit-Projet-9b65e770ec4dd28b668c53ff9c4d377dcab76d2e.tar.gz
SystDigit-Projet-9b65e770ec4dd28b668c53ff9c4d377dcab76d2e.zip
Implémente les années bissextiles.
Diffstat (limited to 'cpu/alu.ml')
-rw-r--r--cpu/alu.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/alu.ml b/cpu/alu.ml
index 934e6d8..0629e35 100644
--- a/cpu/alu.ml
+++ b/cpu/alu.ml
@@ -284,7 +284,8 @@ let alu_comparer n f0 f a b =
1 2 lt unsigned
1 3 le unsigned
*)
- let eq_ne = mux (f ** 0) (eq_n n a b) (ne_n n a b) in
+ let eq_a_b = eq_n n a b in
+ let eq_ne = mux (f ** 0) (eq_a_b) (not eq_a_b) in
let lte_signed = mux (f ** 0) (lt_n n a b) (le_n n a b) in
let lte_unsigned = mux (f ** 0) (ult_n n a b) (ule_n n a b) in
let lte = mux (f ** 1) lte_signed lte_unsigned in