What is the logic synthesized when a non-constant is used as an index in…
What is the logic synthesized when a non-constant is used as an index in a bit-select?
Model answer
A multiplexor is synthesized when a non-constant is used as an index in a bit-select. The following is an example: The above RTL code will get synthesized into a multiplexor with 8 bits of data_in and 3 bits of select, as follows. Typically, the synthesis tools will try to pick up an 8:1 multiplexor from the target library. If it is not available, the multiplexor gets synthesized, using logic gates. Figure 4-1. A multiplexor generated out of non-constant bit select