📄 hdb3.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity hdb3 is
port(reset,clk,datain:in std_logic;
dout: out std_logic_vector(1 downto 0));
end;
architecture rtl of hdb3 is
component hdb3a is
port(reset,clk,datain: in std_logic;
dout: out std_logic_vector(1 downto 0));
end component;
component hdb is
port(reset,clk:in std_logic;
datain: in std_logic_vector(1 downto 0);
dout: out std_logic_vector(1 downto 0));
end component;
component hdb3c is
port(reset,clk: in std_logic;
datain: in std_logic_vector(1 downto 0);
dout: out std_logic_vector(1 downto 0));
end component;
signal d1,d2:std_logic_vector(1 downto 0);
begin
A: hdb3a port map(reset,clk,datain,d1);
B: hdb port map(reset,clk,d1,d2);
C: hdb3c port map(reset,clk,d2,dout);
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -