Altera_Forum
Honored Contributor
15 years agopresettable and clearable registers warning in Quartus, how to fixed it?
hi,
When i check my syntheis report in Quartus, there is some latch warnings " Warning: Presettable and clearable registers converted to equivalent circuits with latches. Registers power-up to an undefined state, and DEVCLRn places the registers in an undefined state. Warning (13310): Register "vga_controler_line:vga_cntl_1|hsync_out" is converted into an equivalent circuit using register "vga_controler_line:vga_cntl_1|hsync_out~_emulated" and latch "vga_controler_line:vga_cntl_1|hsync_out~latch" " my code is just like this " always @(posedge clk or posedge rst) if(rst) hsync_out <= ~SYNC_POLARITY; //SYNC_POLARITY is register setting else hsync_out <= xxx; " How i can code the better way to void Qurartus synthesis latch warning? Thanks very much,