chapter2_models.vhd

来自「James Armstrong VHDL Design , source cod」· VHDL 代码 · 共 29 行

VHD
29
字号
--
-- This example illustrates VHDL 
-- constructs that can be translated 
-- into an iterative network.
--
entity IPAR is
  generic (PROP_DEL:time);
  port (
    R: in BIT_VECTOR (7 downto 0);
    P: out BIT);
end IPAR;
--
-- Model using a FOR loop
--
architecture LOOP4 of IPAR is
begin
  OPAR:process(R)
    variable X: BIT;
  begin
    X:='0';
    for I in 7 downto 0 loop
      X:=X xor R(I);
    end loop;
    P <= X after PROP_DEL;
  end process;
end LOOP4;

--      Figure 2.13

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?