
- UID
- 138966
- 性别
- 男
|
我做了个正玄发生器,在QuartusII中编译下载到Cyclone EP1C6Q240C8中后,使用QuartusII中的SignalTap II工具观察波形时,却发现波形上下颠倒了。我的源代码很简单,data_rom是使用LPM_ROM产生的,mif文件中的64个数据也没有错误。请问这是为什么,哪里出了问题?
源码: library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity singt is port( clk : in std_logic; dout : out std_logic_vector(7 downto 0)); end; architecture dacc of singt is component data_rom port( address : in std_logic_vector( 5 downto 0); inclock : in std_logic; q : out std_logic_vector(7 downto 0)); end component; signal q1 : std_logic_vector(5 downto 0); begin process(clk) begin if clk'event and clk='1' then q1<=q1+1; end if; end process; u1 : data_rom port map(address=>q1,q=>dout,inclock=>clk);
end; 在SignalTapII中的波形图:
|
|