diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-09-08 16:59:39 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-09-08 16:59:39 +0200 |
commit | fcb46138cebd57587d35489cef3a3a48ebe40bcf (patch) | |
tree | 017526971d972de1ad8d17e4b0e2dd567e038007 /kernel/consteval.h | |
parent | 6dc07eb1f23757b17b6d856c95d0901d751eeb25 (diff) |
Simplified $fa undef model
Diffstat (limited to 'kernel/consteval.h')
-rw-r--r-- | kernel/consteval.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/consteval.h b/kernel/consteval.h index 6e507bd5..2d29d3f7 100644 --- a/kernel/consteval.h +++ b/kernel/consteval.h @@ -214,6 +214,10 @@ struct ConstEval RTLIL::Const t3 = const_and(sig_c.as_const(), t1, false, false, width); RTLIL::Const val_x = const_or(t2, t3, false, false, width); + for (int i = 0; i < SIZE(val_y); i++) + if (val_y.bits[i] == RTLIL::Sx) + val_x.bits[i] = RTLIL::Sx; + set(sig_y, val_y); set(sig_x, val_x); } |