Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Ankündigungen
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Diskussionen

LATCH primitive ... is permanently disabled"

Altera_Forum
Geehrter Beitragender II
1.558Aufrufe

i am a new user of quartus,now there is a warning when compilation.  

:LATCH primitive ... is permanently disabled". 

i do not understand the meaning of that. 

though i've used the quartus help,but...ha~ha~... 

 

the ex. code 

reg [15:0] a,d; 

reg [15:0] b=0; 

reg [15:0] c=0; 

reg [3:0] state=0; 

always @ (posedge clk) 

begin 

if(state <6) 

begin 

state <=state+1; 

end 

else if(state ==6) 

begin 

state <= 0; 

end 

else begin end 

end 

always @(state) 

begin 

case(state) 

1'd0:begin 

a=b-c; 

end 

2'd1:begin 

d=a+b; 

end 

default:begin end 

endcase 

end
0 Kudos
0 Antworten
Antworten