?? notetabs.vhd
字號:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity notetabs is
port ( clk: in std_logic;
toneindex: out std_logic_vector(3 downto 0)
);
end entity;
architecture one of notetabs is
component music_rom
port( address:in std_logic_vector(7 downto 0);
clock:in std_logic;
q:out std_logic_vector(3 downto 0));
end component;
signal counter: std_logic_vector(7 downto 0);
begin
cnt8:process(clk,counter)
begin
if counter=138 then
counter<="00000000";
elsif(clk'event and clk='1')then
counter<=counter+1;
end if;
end process;
u1:music_rom port map(address=>counter,q=>toneindex,clock=>clk);
end one;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -