3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

Added ezSAT api support for don't care values in models

This commit is contained in:
Clifford Wolf 2013-06-09 14:21:18 +02:00
parent b7ba90910d
commit 41932e8b64
3 changed files with 23 additions and 6 deletions

View file

@ -419,8 +419,11 @@ rerun_solver:
for (auto &info : modelInfo)
{
RTLIL::Const value;
for (int i = 0; i < info.width; i++)
for (int i = 0; i < info.width; i++) {
value.bits.push_back(modelValues.at(info.offset+i) ? RTLIL::State::S1 : RTLIL::State::S0);
if (modelValues.size() == 2*modelExpressions.size() && modelValues.at(modelExpressions.size()+info.offset+i))
value.bits.back() = RTLIL::State::Sx;
}
if (info.timestep != last_timestep) {
const char *hline = "---------------------------------------------------------------------------------------------------"