⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pl_cpsk2.vhd

📁 描述了DPSK的整个程序
💻 VHD
字号:
library ieee;
use ieee.std_logic_arith.all;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity PL_CPSK2 is
port(clk:in std_logic;
   start:in std_logic;
       x:in std_logic;
       y:out std_logic);
end entity PL_CPSK2;
architecture behav of PL_CPSK2 is
signal q:integer range 0 to 3;
begin
process(clk)
begin
if clk'event and clk='1' then
    if start='0' then q<=0;
    elsif q=0 then q<=q+1;
        if x='1' then y<='1';
        else y<='0';
        end if;
    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 + -