?? source.vhd
字號(hào):
library ieee;
use ieee.std_logic_arith.all;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity source is
port(clk:in std_logic:='0';
dataout:out std_logic
);
end;
architecture a of source is
signal data:std_logic_vector(0 to 15);
begin
data<="1111001110001100"; --發(fā)送的16位數(shù)據(jù)
process(clk)
variable m:integer range 0 to 15;
variable n:integer range 0 to 15;
begin
if(clk'event and clk='1') then
n:=m mod 16 ;
dataout<=data(n);
m:=m+1;
end if;
end process;
end ;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -