mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Added $initstate cell type and vlog function
This commit is contained in:
parent
d7763634b6
commit
5c166e76e5
7 changed files with 54 additions and 4 deletions
|
@ -69,7 +69,7 @@ struct SatGen
|
|||
SigPool initial_state;
|
||||
std::map<std::string, RTLIL::SigSpec> asserts_a, asserts_en;
|
||||
std::map<std::string, RTLIL::SigSpec> assumes_a, assumes_en;
|
||||
std::map<std::string, RTLIL::SigSpec> expects_a, expects_en;
|
||||
std::map<std::string, RTLIL::SigSpec> predict_a, predict_en;
|
||||
std::map<std::string, std::map<RTLIL::SigBit, int>> imported_signals;
|
||||
bool ignore_div_by_zero;
|
||||
bool model_undef;
|
||||
|
@ -1350,8 +1350,8 @@ struct SatGen
|
|||
if (cell->type == "$predict")
|
||||
{
|
||||
std::string pf = prefix + (timestep == -1 ? "" : stringf("@%d:", timestep));
|
||||
expects_a[pf].append((*sigmap)(cell->getPort("\\A")));
|
||||
expects_en[pf].append((*sigmap)(cell->getPort("\\EN")));
|
||||
predict_a[pf].append((*sigmap)(cell->getPort("\\A")));
|
||||
predict_en[pf].append((*sigmap)(cell->getPort("\\EN")));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue