正在加载图片...
Example will be more clear Entity testI is port(a, b, sell, sel2 in bit; result: out bit); end testl architecture testl body of test1l begin rocess(sell, sel2, a, b) pb egin if(sell =1)then result <=a: 1 elsif (sel2='1")then result<= ba else Result change if sell, sel2, a or b change the value result<=0’; end if We can do the same join with Concurrent Statement en d rocess end testl body;Example will be more clear Entity test1 is port (a, b, sel1, sel2 : in bit; result : out bit); end test1; architecture test1_body of test1 is begin process (sel1, sel2, a, b) begin if (sel1 = ‘1’) then result <= a; elsif (sel2 = ‘1’) then result <= b; else result <= ‘0’; end if; end process; end test1_body; Result change if sel1, sel2, a or b change the value We can do the same join with Concurrent Statement
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有