number.vhd

来自「可实现任意一位小数分频,在quartus II中仿真验证通过,输入端N为分频系数」· VHDL 代码 · 共 43 行

VHD
43
字号
----------------------------------------------------------------------------------
-- Company: 		Hiline
-- Engineer: 		Liu Xiting
-- Email:			Liu_xitin@163.com;liuxiting@foxmail.com
-- 
-- Create Date:     21:13:54 01/03/2008 
-- Design Name: 	N.x frequency deviation
-- Module Name:		number 
-- Project Name:	NdotXfd
-- Target Devices:	EP1C6Q240C8 or other FPGA/CPLD Device
-- Tool versions: 	Quartus II 7.2
-- Description:		coefficient of fdn;
--					number0 is the coefficient of fdn;	
--					numger1 is the coefficient of fdn1(number1=number0+1);
--
-- Dependencies: 
--
-- Revision:		V1.0
--
-- Additional Comments: 
--
----------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity number is 
	port
	(   n       : in  std_logic_vector(3 downto 0);
		number0 : out std_logic_vector(3 downto 0);
		number1 : out std_logic_vector(3 downto 0)
	);
end entity;

architecture bhv of number is

	begin

	number0 <= n;
	number1 <= n+1;

end bhv;

⌨️ 快捷键说明

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