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

📄 div5.vhd

📁 现代雷达普遍采用相参信号处理,而如何获得高精度基带数字正交( I , Q) 信号是整个系统信号处理成败的关键,以前通常的做法是采用模拟相位检波器得到I、Q信号,其正交性能一般为:幅度平衡在2 % 左右
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity div5 is
port(clk:in std_logic;
	 div5:out std_logic);
end div5;

architecture one of div5 is
signal cnt1:std_logic_vector(2 downto 0);
signal cnt2:std_logic_vector(2 downto 0);
signal clk_temp1:std_logic;
signal clk_temp2:std_logic;
constant m1:integer:=4;
constant m2:integer:=2;
begin
	process(clk)
	begin
	if clk'event and clk='1'then
		if cnt1=m1 then
			cnt1<="000";
			else cnt1<=cnt1+1;
		end if;
	end if;
	end process;
	
	process(clk)
	begin
		if clk'event and clk='1'then
			if cnt2=m1 then
				cnt2<="000";
			else
				cnt2<=cnt2+1;
			end if ;
		end if;
	end process;

	process(clk)
	begin
		if clk'event and clk='1'then
			if cnt1=0 then
				clk_temp1<='1';
			elsif cnt1=m2 then
				clk_temp1<='0';
			end if;
		end if;
	end process;

	process(clk)
	begin
		if clk'event and clk='0'then
			if cnt2=0 then
				clk_temp2<='1';
			elsif cnt2=m2 then
				clk_temp2<='0';
			end if;
		end if;
	end process;
div5<=clk_temp1 or clk_temp2;
end one;

⌨️ 快捷键说明

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