mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
look at all those chickens
This commit is contained in:
parent
8bdcc6987b
commit
61cf4b6fb6
15 changed files with 48 additions and 42 deletions
|
@ -766,7 +766,8 @@ void AigerReader::post_process()
|
|||
{
|
||||
unsigned ci_count = 0, co_count = 0;
|
||||
for (auto cell : boxes) {
|
||||
for (auto &bit : cell->connections_.at(ID(i))) {
|
||||
auto sig_inp = cell->connections_.at(ID(i));
|
||||
for (auto &bit : sig_inp) {
|
||||
log_assert(bit == State::S0);
|
||||
log_assert(co_count < outputs.size());
|
||||
bit = outputs[co_count++];
|
||||
|
@ -774,7 +775,8 @@ void AigerReader::post_process()
|
|||
log_assert(bit.wire->port_output);
|
||||
bit.wire->port_output = false;
|
||||
}
|
||||
for (auto &bit : cell->connections_.at(ID(o))) {
|
||||
auto sig_outp = cell->connections_.at(ID(i));
|
||||
for (auto &bit : sig_outp) {
|
||||
log_assert(bit == State::S0);
|
||||
log_assert((piNum + ci_count) < inputs.size());
|
||||
bit = inputs[piNum + ci_count++];
|
||||
|
|
|
@ -125,7 +125,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, IdString dff_name, bool
|
|||
};
|
||||
|
||||
dict<RTLIL::IdString, RTLIL::Const> *obj_attributes = nullptr;
|
||||
dict<RTLIL::IdString, RTLIL::Const> *obj_parameters = nullptr;
|
||||
RTLIL::Cell::FakeParams *obj_parameters = nullptr;
|
||||
|
||||
dict<RTLIL::IdString, std::pair<int, bool>> wideports_cache;
|
||||
|
||||
|
|
|
@ -274,7 +274,8 @@ Const json_parse_attr_param_value(JsonNode *node)
|
|||
return value;
|
||||
}
|
||||
|
||||
void json_parse_attr_param(dict<IdString, Const> &results, JsonNode *node)
|
||||
template <typename SmellsLikeDict>
|
||||
void json_parse_attr_param(SmellsLikeDict &results, JsonNode *node)
|
||||
{
|
||||
if (node->type != 'D')
|
||||
log_error("JSON attributes or parameters node is not a dictionary.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue