Does syntheis tools (especially yosys) choose the most efficient encoding for muxes if I set the default choice to x? e.g. wire [1:0] q = (cond_a) ? 2'b00 : (cond_b) ? 2'b01 : 2'bxx; VHDL has an explicit don't care ('-'). Haven't thought of how verilog handles that
-
-
Replying to @OlofKindgren
Yes, yosys does (attempt) to do that. But most other tools simply interpret X as 0 in synthesis.
1 reply 0 retweets 0 likes
Replying to @OlofKindgren @maxslug
Yes. And Yosys will do the right thing in both cases.
5:27 AM - 1 Nov 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.