stanford
Full Member level 2
1. Are these two code functionally equivalent?
2. Will they synthesize into the same hardware?
2. Will they synthesize into the same hardware?
Code:
always_comb
out = 0;
out = (sel[0]) ? in[0] : out;
out = (sel[1]) ? in[1] : out;
Code:
assign out = sel[1] ? in[1] : sel[0] ? in[0] : 0;