程序是一个模块,单独拿出来做了一下仿真,想让sz、rst均为1时将en置1,但是仿真的结果是en始终为1,麻烦高手看看程序到底是哪部分有问题啊,多谢了!!!library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity szmm isport ( rst,sz :in std_logic; d :in std_logic_vector(3 downto 0); en :buffer std_logic:='0'; so :out std_logic_vector(3 downto 0));end szmm;architecture arch of szmm is signal ram:std_logic_vector(3 downto 0); begin process(sz,d,rst) begin if rst='1' then if sz='1' then ram<=d; en<='1'; end if; end if; end process;so<=ram;end arch;
-
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>