FPGA,HS-SR40超声波测距想问一下这一段每句是啥意思

process(clk10hz)--ce ju li
variable cnt:integer range 0 to 4117;
begin
if clk100k'event and clk100k='1' then
if clk10hz='1' then--chong fa trig
cnt:=0;---
elsif echo='1' then
cnt:=cnt+1;---
else
temp_cnt<=cnt;--ju li
end if;