?? pl_dpsk.vhd
字號:
library ieee;
use ieee.std_logic_arith.all;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity PL_DPSK is
port(clk:in std_logic;
start:in std_logic;
x:in std_logic;
y:out std_logic);
end entity PL_DPSK;
architecture behav of PL_DPSK is
signal q:integer range 0 to 3;
signal xx:std_logic;
begin
process(clk,x)
begin
if clk'event and clk='1' then
if start='0' then q<=0; xx<='0';
elsif q=0 then q<=1; xx<=xx xor x;y<=xx xor x;
elsif q=3 then q<=0;
else q<=q+1;
end if;
end if;
end process;
end architecture behav;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -