List of Messages |
reg [1:0] sel; reg [3:0] accidental_latch; always@(sel) begin case(sel) 2'b00: accidental_latch = 4'b1010; 2'b01: accidental_latch = 4'b0101; 2'b10: accidental_latch = 4'b1111; // missing Case Item for 2'b11 endcase endThe Case Statement does not cover the case for sel = 2'b11. When this case occurs, the variable accidental_latch retains its previous value.
ACTION: If you intended the Case Statement to be incomplete, then no action is required. Otherwise, make sure that you cover all possible binary values of the case expression with an explicit case item, or include a default case item in your Case Statement.
Copyright© 2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS, STRATIX, and all other brands, unless noted otherwise, and/or trademarks of Altera Corporation in the U.S. and other countries.