VHDL程序集锦.docVIP

  • 11
  • 0
  • 约6.75万字
  • 约 52页
  • 2017-02-17 发布于北京
  • 举报
组合逻辑:-- Highest Priority Encoder -- download from LIBRARY ieee; USE ieee.std_logic_1164.ALL; entity priority is port(I : in bit_vector(7 downto 0); --inputs to be prioritised A : out bit_vector(2 downto 0); --encoded output GS : out bit); --group signal output end priority; architecture v1 of priority is begin process(I) begin GS = 1; --set default outputs A = 000; if I(7) = 1 then A = 111; elsif I(6) = 1 then A = 110;

文档评论(0)

1亿VIP精品文档

相关文档