1.

Will Case Infer Priority Register If Yes How Give An Example?

Answer»

yes case can INFER priority register DEPENDING on CODING style
reg r; 
// Priority encoded mux, 
ALWAYS @ (a or b or C or select2) 
begin 
r = c; 
case (select2) 
2'b00: r = a; 
2'b01: r = b; 
endcase 
end 

yes case can infer priority register depending on coding style
reg r; 
// Priority encoded mux, 
always @ (a or b or c or select2) 
begin 
r = c; 
case (select2) 
2'b00: r = a; 
2'b01: r = b; 
endcase 
end 



Discussion

No Comment Found