proc1:process(read_clk,reset) begin if (reset='1') then read_addr <= 9; elsif (read_clk'event and read_clk='1') then if (read_enable='1' and empty='0') then if (read_addr=9) then read_addr <=0; else read_addr <= read_addr+1; end if; read_data_out <= RAM(read_addr); else read_data_out <= "ZZZZZZZZZZ"; end if; end if; end process proc1; 大家看看,如果条件 read_enable='1' and empty='0'成立,且刚开始reset=1,第二个时钟时reset=0,请问第一次输出的数据应该是RAM(9)还是RAM(0)。 谢谢作者: linuxarm 时间: 2006-4-23 11:07