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

📄 filter_con.vhd

📁 数字均衡器是通讯信道抗码间干扰的重要环节,这是一个用vhdl写的代码以及用SYNPLIFY8.0综合的RTL电路图 它包含三个模块FILTER,ERR_DECISION,ADJUST 希望对大家有用.
💻 VHD
字号:
 library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use work.equ_pak.all;

   entity filter_con is
           port(
            clk:in std_logic;
            resetn:in std_logic:='1';
            ad_end:in std_logic:='0';
            shift_en:out std_logic;
            load:out std_logic;
             shift_s12:out std_logic;
            shift_s3:out std_logic
          );
end filter_con;

  architecture rtl of filter_con is
    signal shiften_m1,shiften_m2,shiften_m:std_logic;
         signal load_m:std_logic;
       signal shiftm1,shiftm2,shiftm3,shiftm4,shiftm5,shiftm6:std_logic;
       signal shiftm7,shiftm8,shiftm9,shiftm10,shiftm11:std_logic;
  begin
    process(clk,resetn)
      begin
        if resetn='0' then 
            shift_en<='0';
               load<='0';
             shift_s12<='0';
          load_m<='0';
          shiften_m1<='0';
          shiften_m2<='0';
          shiften_m<='0';
elsif clk'event and clk='1' then
        shiften_m1<=ad_end;
         shiften_m2<= shiften_m1;
        shift_en<=shiften_m2 xor shiften_m1;
     shiften_m<=shiften_m2 xor shiften_m1;
         load<=shiften_m;
         load_m<=shiften_m;
          shift_s12<=load_m;
   end if;
end process;

process(clk,resetn)
  begin
       if resetn='0' then
            shift_s3<='0';
        shiftm1<='0';
        shiftm2<='0';
        shiftm3<='0';
        shiftm4<='0';
shiftm5<='0';
 shiftm6<='0';
shiftm7<='0';
shiftm8<='0';
shiftm9<='0';
shiftm10<='0';
shiftm11<='0';
      elsif clk'event and clk='1' then
              shiftm1<=load_m;
              shiftm2<=shiftm1;
   shiftm3<=shiftm2;
   shiftm4<=shiftm3;
  shiftm5<=shiftm4;
  shiftm6<=shiftm5;
  shiftm7<=shiftm6;
shiftm8<=shiftm7;
shiftm9<=shiftm8;
shiftm10<=shiftm9;
shiftm11<=shiftm10;
shift_s3<=shiftm1 or shiftm2 or shiftm3 or shiftm4 or shiftm5 or shiftm6 or shiftm7 or shiftm8 or shiftm9 or shiftm10 or shiftm11;
     end if;
  end process;
   end rtl;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -