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

📄 fltr_compute_f1.vhd

📁 Stereo-Vision circuit description, Aug 2002, Ahmad Darabiha This design contains four top level ci
💻 VHD
字号:
library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_arith.all;use ieee.std_logic_unsigned.all;entity fltr_compute_f1 is 	port(	clk: in std_logic;	din : std_logic_vector(55 downto 0);	dout : out std_logic_vector(15 downto 0));end fltr_compute_f1;architecture arch_fltr_compute_f1 of fltr_compute_f1 issignal q1,q2,q3,q4,q5,q6,q7: std_logic_vector(16 downto 0);signal d_out_tmp: std_logic_vector(19 downto 0);------------- Begin Cut here for COMPONENT Declaration ------ COMP_TAGcomponent mult_const_f1_2	port (	clk: IN std_logic;	a: IN std_logic_VECTOR(7 downto 0);	q: OUT std_logic_VECTOR(16 downto 0));end component;-- Synplicity black box declarationattribute syn_black_box : boolean;attribute syn_black_box of mult_const_f1_2: component is true;-- COMP_TAG_END ------ End COMPONENT Declaration ------------------------- Begin Cut here for COMPONENT Declaration ------ COMP_TAGcomponent mult_const_f1_3	port (	clk: IN std_logic;	a: IN std_logic_VECTOR(7 downto 0);	q: OUT std_logic_VECTOR(16 downto 0));end component;-- Synplicity black box declarationattribute syn_black_box : boolean;attribute syn_black_box of mult_const_f1_3: component is true;-- COMP_TAG_END ------ End COMPONENT Declaration ------------------------- Begin Cut here for COMPONENT Declaration ------ COMP_TAGcomponent mult_const_f1_4	port (	clk: IN std_logic;	a: IN std_logic_VECTOR(7 downto 0);	q: OUT std_logic_VECTOR(16 downto 0));end component;-- Synplicity black box declarationattribute syn_black_box : boolean;attribute syn_black_box of mult_const_f1_4: component is true;-- COMP_TAG_END ------ End COMPONENT Declaration ------------------------- Begin Cut here for COMPONENT Declaration ------ COMP_TAGcomponent mult_const_f1_5	port (	clk: IN std_logic;	a: IN std_logic_VECTOR(7 downto 0);	q: OUT std_logic_VECTOR(16 downto 0));end component;-- Synplicity black box declarationattribute syn_black_box : boolean;attribute syn_black_box of mult_const_f1_5: component is true;-- COMP_TAG_END ------ End COMPONENT Declaration ------------begin------------- Begin Cut here for INSTANTIATION Template ----- INST_TAGyour_instance_name_2 : mult_const_f1_2		port map (			clk => clk,			a => din(55 downto 48),			q => q1);-- INST_TAG_END ------ End INSTANTIATION Template ------------------------- Begin Cut here for INSTANTIATION Template ----- INST_TAGyour_instance_name_3 : mult_const_f1_3		port map (			clk => clk,			a => din(47 downto 40),			q => q2);-- INST_TAG_END ------ End INSTANTIATION Template ------------------------- Begin Cut here for INSTANTIATION Template ----- INST_TAGyour_instance_name_4 : mult_const_f1_4		port map (			clk => clk,			a => din(39 downto 32),			q => q3);-- INST_TAG_END ------ End INSTANTIATION Template ------------------------- Begin Cut here for INSTANTIATION Template ----- INST_TAGyour_instance_name_5 : mult_const_f1_5		port map (			clk => clk,			a => din(31 downto 24),			q => q4);-- INST_TAG_END ------ End INSTANTIATION Template ------------------------- Begin Cut here for INSTANTIATION Template ----- INST_TAGyour_instance_name_6 : mult_const_f1_4		port map (			clk => clk,			a => din(23 downto 16),			q => q5);-- INST_TAG_END ------ End INSTANTIATION Template ------------------------- Begin Cut here for INSTANTIATION Template ----- INST_TAGyour_instance_name_7 : mult_const_f1_3		port map (			clk => clk,			a => din(15 downto 8),			q => q6);-- INST_TAG_END ------ End INSTANTIATION Template ------------------------- Begin Cut here for INSTANTIATION Template ----- INST_TAGyour_instance_name_8 : mult_const_f1_2		port map (			clk => clk,			a => din(7 downto 0),			q => q7);-- INST_TAG_END ------ End INSTANTIATION Template ------------process (clk) begin	if (clk'event and clk ='1') then	d_out_tmp <= ( q1(16) & q1(16) & q1(16)& q1)+		(q2(16) & q2(16) & q2(16) & q2)+		(q3(16) & q3(16) & q3(16) & q3)+		(q4(16) & q4(16) & q4(16) & q4)+		(q5(16) & q5(16) & q5(16) & q5)+		(q6(16) & q6(16) & q6(16) & q6)+		(q7(16) & q7(16) & q7(16) & q7);	dout <= d_out_tmp(18 downto 3);	end if;end process;end arch_fltr_compute_f1;

⌨️ 快捷键说明

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