?? waveform.vhd
字號:
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
USE work.roms.ALL;
ENTITY waveform IS
PORT(clock: IN std_logic;
waves:out rom_range);
END waveform ;
-----------------------------
ARCHITECTURE beh OF waveform IS
signal step: rom_range;
BEGIN
PROCESS(clock)
BEGIN
if (clock'event and clock='1')then
if step=rom_range'high then
step<=rom_range'low;
else
step<=step+1;
end if;
end if;
end process;
waves<=step;
end beh;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -