程序如下:
entity work is
port(a:inout std_logic_vector(16 downto 0);
b:inout std_logic_vector(16 downto 0);
c:inout std_logic_vector(16 downto 0);
d:inout std_logic_vector(16 downto 0);
ctrl:in std_logic);
end work;
architecture Behavioral of work is
begin
c<=a when ctrl='0';
a<=c when ctrl='1';
d<=b when ctrl='0';
b<=d when ctrl='0';
end Behavioral;
用ISE8.1综合的时候提示说:
WARNING:Xst:737 - Found 17-bit latch for signal [url=].
WARNING:Xst:737 - Found 17-bit latch for signal .
WARNING:Xst:737 - Found 17-bit latch for signal .
WARNING:Xst:737 - Found 17-bit latch for signal .
这个是什么原因有什么影响我是初学者 还请大家看看了
应该是生成了17bit的信号锁存器<br>
<br>
begin<br>
c<=a when ctrl='0';<br>
a<=c when ctrl='1';<br>
<br>
d<=b when ctrl='0';<br>
b<=d when ctrl='0';<br>
<br>
应该是这几句话有问题,是不是先把值传到寄存器里然后再传到端口上好一点?<br>
<br>
我是用verilog的,不是很懂VHDL的语法,楼主再看看书吧