when miyao=>key_out_temp(15 downto 0)<=ad(15 downto 0);cnt_miyao<=cnt_miyao-1;current_state<=st13;
when st13=>if cnt_miyao=0 then key<=key_out(255 downto 0);key_init<='1';current_state<=st14;
else current_state<=st15;
end if;
when st15=>key_out<=key_out(239 downto 0)&key_out_temp(15 downto 0);
current_state<=st1;
when st14=>cnt_wr_miyao<=cnt_wr_miyao+1;key_init<='0';current_state<=st17;
when st17=>if cnt_wr_miyao=3 then current_state<=st1;cnt_miyao<=17;
else current_state<=st14;
end if;
这是与key 和key_init 有关的程序
when st13=>if cnt_miyao=0 then key<=key_out(255 downto 0);key_init<='1';current_state<=st14;
else current_state<=st15;
end if;
when st15=>key_out<=key_out(239 downto 0)&key_out_temp(15 downto 0);
current_state<=st1;
when st14=>cnt_wr_miyao<=cnt_wr_miyao+1;key_init<='0';current_state<=st17;
when st17=>if cnt_wr_miyao=3 then current_state<=st1;cnt_miyao<=17;
else current_state<=st14;
end if;
这是与key 和key_init 有关的程序
一周热门 更多>