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

📄 viterbi_ber.vhd

📁 一个完整的viterbi译码程序和测试的程序
💻 VHD
📖 第 1 页 / 共 2 页
字号:
-- megafunction wizard: %Viterbi Compiler v4.1.0%

-- ============================================================
-- Megafunction Name(s):
-- 			auk_vit_par_top_atl
-- ============================================================
-- Generated by Viterbi Compiler 4.1.0 [Altera, IP Toolbench v1.2.5 build28]
-- ************************************************************
-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
-- ************************************************************
-- Copyright (C) 1991-2004 Altera Corporation
-- Any megafunction design, and related net list (encrypted or decrypted),
-- support information, device programming or simulation file, and any other
-- associated documentation or information provided by Altera or a partner
-- under Altera's Megafunction Partnership Program may be used only to
-- program PLD devices (but not masked PLD devices) from Altera.  Any other
-- use of such megafunction design, net list, support information, device
-- programming or simulation file, or any other related documentation or
-- information is prohibited for any other purpose, including, but not
-- limited to modification, reverse engineering, de-compiling, or use with
-- any other silicon devices, unless such use is explicitly licensed under
-- a separate agreement with Altera or a megafunction partner.  Title to
-- the intellectual property, including patents, copyrights, trademarks,
-- trade secrets, or maskworks, embodied in any such megafunction design,
-- net list, support information, device programming or simulation file, or
-- any other related documentation or information provided by Altera or a
-- megafunction partner, remains with Altera, the megafunction partner, or
-- their respective licensors.  No other licenses, including any licenses
-- needed under any third party's intellectual property, are provided herein.

library IEEE;
use IEEE.std_logic_1164.all;
library Viterbi;

ENTITY viterbi_BER IS
	PORT (
		clk	: IN STD_LOGIC;
		reset	: IN STD_LOGIC;
		sink_dav_master	: IN STD_LOGIC;
		source_ena_slave	: IN STD_LOGIC;
		sink_val	: IN STD_LOGIC;
		sink_sop	: IN STD_LOGIC;
		sink_eop	: IN STD_LOGIC;
		rr	: IN STD_LOGIC_VECTOR (8 DOWNTO 1);
		eras_sym	: IN STD_LOGIC_VECTOR (2 DOWNTO 1);
		tr_init_state	: IN STD_LOGIC_VECTOR (6 DOWNTO 1);
		tb_type	: IN STD_LOGIC;
		tb_length	: IN STD_LOGIC_VECTOR (6 DOWNTO 1);
		sink_ena_master	: OUT STD_LOGIC;
		source_dav_slave	: OUT STD_LOGIC;
		source_val	: OUT STD_LOGIC;
		source_sop	: OUT STD_LOGIC;
		source_eop	: OUT STD_LOGIC;
		decbit	: OUT STD_LOGIC;
		normalizations	: OUT STD_LOGIC_VECTOR (8 DOWNTO 1);
		bestadd	: OUT STD_LOGIC_VECTOR (6 DOWNTO 1);
		bestmet	: OUT STD_LOGIC_VECTOR (9 DOWNTO 1);
		numerr	: OUT STD_LOGIC_VECTOR (14 DOWNTO 1)
	);
END viterbi_BER;

ARCHITECTURE SYN OF viterbi_BER IS

	SIGNAL signal_wire0	:  STD_LOGIC_VECTOR (1 DOWNTO 1);
	SIGNAL signal_wire1	:  STD_LOGIC_VECTOR (1 DOWNTO 1);

	COMPONENT auk_vit_par_top_atl
	GENERIC (
		N	: STRING;
		L	: STRING;
		DEC_MODE	: STRING;
		NCODES	: NATURAL;
		N_MAX	: NATURAL;
		LOG2_N_MAX	: NATURAL;
		RR_SIZE	: NATURAL;
		CONSTRAINT_LENGTH_M_1	: NATURAL;
		V	: NATURAL;
		SOFTBITS	: NATURAL;
		BMGWIDE	: NATURAL;
		VLOG_WIDE	: NATURAL;
		SEL_CODE_SIZE	: NATURAL;
		ga	: STRING;
		gb	: STRING;
		gc	: STRING;
		gd	: STRING;
		ge	: STRING;
		gf	: STRING;
		gg	: STRING;
		BER	: STRING;
		CONF_MODE	: STRING;
		NODE_SYNC	: STRING;
		FAMILY	: STRING;
		NUMERR_SIZE	: NATURAL
	);
	PORT (
		clk	: IN STD_LOGIC;
		reset	: IN STD_LOGIC;
		sink_dav_master	: IN STD_LOGIC;
		source_ena_slave	: IN STD_LOGIC;
		sink_val	: IN STD_LOGIC;
		sink_sop	: IN STD_LOGIC;
		sink_eop	: IN STD_LOGIC;
		rr	: IN STD_LOGIC_VECTOR (8 DOWNTO 1);
		eras_sym	: IN STD_LOGIC_VECTOR (2 DOWNTO 1);
		state_node_sync	: IN STD_LOGIC_VECTOR (1 DOWNTO 1);
		sel_code	: IN STD_LOGIC_VECTOR (1 DOWNTO 1);
		tr_init_state	: IN STD_LOGIC_VECTOR (6 DOWNTO 1);
		tb_type	: IN STD_LOGIC;
		tb_length	: IN STD_LOGIC_VECTOR (6 DOWNTO 1);
		sink_ena_master	: OUT STD_LOGIC;
		source_dav_slave	: OUT STD_LOGIC;
		source_val	: OUT STD_LOGIC;
		source_sop	: OUT STD_LOGIC;
		source_eop	: OUT STD_LOGIC;
		decbit	: OUT STD_LOGIC;
		normalizations	: OUT STD_LOGIC_VECTOR (8 DOWNTO 1);
		bestadd	: OUT STD_LOGIC_VECTOR (6 DOWNTO 1);
		bestmet	: OUT STD_LOGIC_VECTOR (9 DOWNTO 1);
		numerr	: OUT STD_LOGIC_VECTOR (14 DOWNTO 1)
	);

	END COMPONENT;

BEGIN
	signal_wire0  <= (others => '0');
	signal_wire1  <= (others => '0');

	auk_vit_par_top_atl_inst : auk_vit_par_top_atl
	GENERIC MAP (
		N => "2",
		L => "7",
		DEC_MODE => "V",
		NCODES => 1,
		N_MAX => 2,
		LOG2_N_MAX => 1,
		RR_SIZE => 8,
		CONSTRAINT_LENGTH_M_1 => 6,
		V => 42,
		SOFTBITS => 4,
		BMGWIDE => 9,
		VLOG_WIDE => 6,
		SEL_CODE_SIZE => 1,
		ga => "91",
		gb => "121",
		gc => "23",
		gd => "0",
		ge => "0",
		gf => "0",
		gg => "0",
		BER => "used",
		CONF_MODE => "Atlantic",
		NODE_SYNC => "unused",
		FAMILY => "Stratix",
		NUMERR_SIZE => 14
	)
	PORT MAP (
		clk  =>  clk,
		reset  =>  reset,
		sink_dav_master  =>  sink_dav_master,

⌨️ 快捷键说明

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