3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-23 14:23:41 +00:00
This commit is contained in:
Alain Dargelas 2024-12-30 17:25:06 -08:00
parent 0d5d7809f8
commit fad1b285df

View file

@ -290,27 +290,27 @@ struct MuxpackWorker
} }
if (make_excl) { if (make_excl) {
/* We create the following one-hot select line decoder /* We create the following one-hot select line decoder
S0 S1 S2 S3 ... S0 S1 S2 S3 ...
| | | | | | | |
+--------+ +----------+ +-------------+ | +--------+ +----------+ +-------------+ |
| _|_ | _|_ | _|_ | | _|_ | _|_ | _|_ |
| \_/ | \_/ | \_/ | | \_/ | \_/ | \_/ |
| o | o | o | | o | o | o |
| | | | | ___ | | | | | | | ___ | |
| +----------+ | | / | | | | +----------+ | | / | | |
| | | |___| | / |___| | | | | |___| | / |___| |
| |___| | & | / / | & | / ... | |___| | & | / / | & | / ...
| | & | \___/ / / \___/ / / | | & | \___/ / / \___/ / /
| \___/ | | / | | / | \___/ | | / | | /
| | +------+ +-------+ | | +------+ +-------+
| | | | | | | | | | | |
| | |___| |___| | | |___| |___|
| | | & | | & | | | | & | | & |
| | \___/ \___/ | | \___/ \___/
| | | | | | | |
S0 S0'S1 S0'S1'S2 S0'S1'S2'S3 ... S0 S0'S1 S0'S1'S2 S0'S1'S2'S3 ...
*/ */
SigSpec decodedSelect; SigSpec decodedSelect;
Cell *cell = last_cell; Cell *cell = last_cell;
std::vector<RTLIL::SigBit> select_bits = s_sig.bits(); std::vector<RTLIL::SigBit> select_bits = s_sig.bits();