mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +00:00
kernel: use more ID::*
This commit is contained in:
parent
164dd0f6b2
commit
fdafb74eb7
69 changed files with 843 additions and 841 deletions
|
@ -49,8 +49,8 @@ struct Coolrunner2SopPass : public Pass {
|
|||
{
|
||||
if (cell->type == "$_NOT_")
|
||||
{
|
||||
auto not_input = sigmap(cell->getPort("\\A")[0]);
|
||||
auto not_output = sigmap(cell->getPort("\\Y")[0]);
|
||||
auto not_input = sigmap(cell->getPort(ID::A)[0]);
|
||||
auto not_output = sigmap(cell->getPort(ID::Y)[0]);
|
||||
not_cells[not_input] = tuple<SigBit, Cell*>(not_output, cell);
|
||||
}
|
||||
}
|
||||
|
@ -88,8 +88,8 @@ struct Coolrunner2SopPass : public Pass {
|
|||
if (cell->type == "$sop")
|
||||
{
|
||||
// Read the inputs/outputs/parameters of the $sop cell
|
||||
auto sop_inputs = sigmap(cell->getPort("\\A"));
|
||||
auto sop_output = sigmap(cell->getPort("\\Y"))[0];
|
||||
auto sop_inputs = sigmap(cell->getPort(ID::A));
|
||||
auto sop_output = sigmap(cell->getPort(ID::Y))[0];
|
||||
auto sop_depth = cell->getParam("\\DEPTH").as_int();
|
||||
auto sop_width = cell->getParam("\\WIDTH").as_int();
|
||||
auto sop_table = cell->getParam("\\TABLE");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue