process(ok_fd)
begin
if ok_fd='1' then
ce_d<='1';
else
ce_d<='0';
end if;
end process;
这种代码没什么意义,ce_d就是ok_fd,如果是为了debug时候便于理解,直接ce_d<= ok_fd;就可以了。
----------------------------------------------------------------------
process(clk,ce_d)
begin
if ce_d='1' then
if clk'event and clk='1' then
if count_d="10" then
count_d<="10";
else
count_d<=count_d+'1';
end if;
end if;
end if;
end process;
这是希望综合成门控时钟还是什么别的电路呢?count_d是不是只计数一次,之后就永远停在"10"了呢?
----------------------------------------------------------------------
process(op_rfd_a)
begin
if op_rfd_a'event and op_rfd_a='1' then
shuju1_a<=feng_fudian_60;
shuju2_a<=du_fudian;
op_nd_a<='1';
end if;
end process;