mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
WIP
This commit is contained in:
parent
afdae7b87e
commit
c3ffbf6fae
229 changed files with 3902 additions and 3835 deletions
|
|
@ -24,19 +24,19 @@ struct FunctionalDummyBackend : public Backend {
|
|||
|
||||
// write node functions
|
||||
for (auto node : ir)
|
||||
*f << " assign " << node.name().unescape()
|
||||
*f << " assign " << design->twines.unescaped_str(node.name())
|
||||
<< " = " << node.to_string() << "\n";
|
||||
*f << "\n";
|
||||
|
||||
// write outputs and next state
|
||||
for (auto output : ir.outputs())
|
||||
*f << " " << output->kind.unescape()
|
||||
<< " " << output->name.unescape()
|
||||
<< " = " << output->value().name().unescape() << "\n";
|
||||
*f << " " << design->twines.unescaped_str(output->kind)
|
||||
<< " " << design->twines.unescaped_str(output->name)
|
||||
<< " = " << design->twines.unescaped_str(output->value().name()) << "\n";
|
||||
for (auto state : ir.states())
|
||||
*f << " " << state->kind.unescape()
|
||||
<< " " << state->name.unescape()
|
||||
<< " = " << state->next_value().name().unescape() << "\n";
|
||||
*f << " " << design->twines.unescaped_str(state->kind)
|
||||
<< " " << design->twines.unescaped_str(state->name)
|
||||
<< " = " << design->twines.unescaped_str(state->next_value().name()) << "\n";
|
||||
}
|
||||
}
|
||||
} FunctionalDummyBackend;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue