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

📄 acs0_entity5.vhd

📁 这是一个计算维特比译码的程序
💻 VHD
字号:
-- ----------------------------------------------------------------- Module: ACS0_entity5-- Simulink Path: hdlcoderviterbi/viterbi_block/ACS Unit/ACS/Subsystem10/Butterfly1/ACS0-- Created: 2009-03-24 16:23:24-- Hierarchy Level: 5------ -------------------------------------------------------------LIBRARY IEEE;USE IEEE.std_logic_1164.ALL;USE IEEE.numeric_std.ALL;use IEEE.std_logic_unsigned.all;ENTITY ACS0_entity5 IS  PORT( clk                               :   IN    std_logic;        reset                             :   IN    std_logic;        enb                               :   IN    std_logic;        BM0                               :   IN    std_logic_vector(3 DOWNTO 0);          SM0                               :   IN    std_logic_vector(3 DOWNTO 0);          BM1                               :   IN    std_logic_vector(3 DOWNTO 0);          SM1                               :   IN    std_logic_vector(3 DOWNTO 0);          SM                                :   OUT   std_logic_vector(3 DOWNTO 0);          DEC                               :   OUT   std_logic        );END ACS0_entity5;ARCHITECTURE rtl OF ACS0_entity5 IS  -- Signals  SIGNAL s                                : std_logic_vector(3 DOWNTO 0);    SIGNAL s_1                              : std_logic_vector(3 DOWNTO 0);    SIGNAL Sum_of_Elements_out1             : std_logic_vector(3 DOWNTO 0);    SIGNAL s_2                              : std_logic_vector(3 DOWNTO 0);    SIGNAL s_3                              : std_logic_vector(3 DOWNTO 0);    SIGNAL Sum_of_Elements1_out1            : std_logic_vector(3 DOWNTO 0);    SIGNAL Relational_Operator1_out1        : std_logic;  SIGNAL Switch_out1                      : std_logic_vector(3 DOWNTO 0);    SIGNAL add_cast                         : std_logic_vector(3 DOWNTO 0);    SIGNAL add_cast_1                       : std_logic_vector(3 DOWNTO 0);    SIGNAL add_cast_2                       : std_logic_vector(3 DOWNTO 0);    SIGNAL add_cast_3                       : std_logic_vector(3 DOWNTO 0);    SIGNAL Logical_Operator_out1            : std_logic;BEGIN  s   <= BM0;  s_1 <= SM0;  add_cast <= s;  add_cast_1 <= s_1;  Sum_of_Elements1_out1 <= add_cast + add_cast_1;  s_2 <= BM1;  s_3 <= SM1;  add_cast_2 <= s_2;  add_cast_3 <= s_3;  Sum_of_Elements_out1 <= add_cast_2 + add_cast_3;    Relational_Operator1_out1 <= '1' WHEN ( Sum_of_Elements1_out1 <= Sum_of_Elements_out1 ) ELSE '0';  Switch_out1 <= Sum_of_Elements1_out1 WHEN ( Relational_Operator1_out1 = '1' ) ELSE                 Sum_of_Elements_out1;  SM <= std_logic_vector(Switch_out1);  Logical_Operator_out1 <= NOT(Relational_Operator1_out1);  DEC <= Logical_Operator_out1;--DEC <= Relational_Operator1_out1;END rtl;

⌨️ 快捷键说明

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