mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-02 08:33:46 +00:00
add POLARITY parameter to $priority cell
This commit is contained in:
parent
e166dd4475
commit
7e664834b3
8 changed files with 38 additions and 17 deletions
|
|
@ -149,6 +149,12 @@ static RTLIL::Cell* create_gold_module(RTLIL::Design *design, RTLIL::IdString ce
|
|||
wire->width = width;
|
||||
wire->port_output = true;
|
||||
cell->setPort(ID::Y, wire);
|
||||
|
||||
RTLIL::SigSpec polarity;
|
||||
for (int i = 0; i < width; i++)
|
||||
polarity.append(xorshift32(2) ? State::S1 : State::S0);
|
||||
|
||||
cell->setParam(ID::POLARITY, polarity.as_const());
|
||||
}
|
||||
|
||||
if (cell_type == ID($fa))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue