lpm_counter0.vhd
上传用户:jinxingdao
上传日期:2021-04-27
资源大小:415k
文件大小:5k
源码类别:

扫描程序

开发平台:

VHDL

  1. -- megafunction wizard: %LPM_COUNTER%
  2. -- GENERATION: STANDARD
  3. -- VERSION: WM1.0
  4. -- MODULE: lpm_counter 
  5. -- ============================================================
  6. -- File Name: lpm_counter0.vhd
  7. -- Megafunction Name(s):
  8. --  lpm_counter
  9. --
  10. -- Simulation Library Files(s):
  11. --  lpm
  12. -- ============================================================
  13. -- ************************************************************
  14. -- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
  15. --
  16. -- 7.1 Build 156 04/30/2007 SJ Full Version
  17. -- ************************************************************
  18. --Copyright (C) 1991-2007 Altera Corporation
  19. --Your use of Altera Corporation's design tools, logic functions 
  20. --and other software and tools, and its AMPP partner logic 
  21. --functions, and any output files from any of the foregoing 
  22. --(including device programming or simulation files), and any 
  23. --associated documentation or information are expressly subject 
  24. --to the terms and conditions of the Altera Program License 
  25. --Subscription Agreement, Altera MegaCore Function License 
  26. --Agreement, or other applicable license agreement, including, 
  27. --without limitation, that your use is for the sole purpose of 
  28. --programming logic devices manufactured by Altera and sold by 
  29. --Altera or its authorized distributors.  Please refer to the 
  30. --applicable agreement for further details.
  31. LIBRARY ieee;
  32. USE ieee.std_logic_1164.all;
  33. LIBRARY lpm;
  34. USE lpm.all;
  35. ENTITY lpm_counter0 IS
  36. PORT
  37. (
  38. aclr : IN STD_LOGIC ;
  39. clock : IN STD_LOGIC ;
  40. cnt_en : IN STD_LOGIC ;
  41. cout : OUT STD_LOGIC ;
  42. q : OUT STD_LOGIC_VECTOR (11 DOWNTO 0)
  43. );
  44. END lpm_counter0;
  45. ARCHITECTURE SYN OF lpm_counter0 IS
  46. SIGNAL sub_wire0 : STD_LOGIC ;
  47. SIGNAL sub_wire1 : STD_LOGIC_VECTOR (11 DOWNTO 0);
  48. COMPONENT lpm_counter
  49. GENERIC (
  50. lpm_direction : STRING;
  51. lpm_port_updown : STRING;
  52. lpm_type : STRING;
  53. lpm_width : NATURAL
  54. );
  55. PORT (
  56. aclr : IN STD_LOGIC ;
  57. clock : IN STD_LOGIC ;
  58. cout : OUT STD_LOGIC ;
  59. q : OUT STD_LOGIC_VECTOR (11 DOWNTO 0);
  60. cnt_en : IN STD_LOGIC 
  61. );
  62. END COMPONENT;
  63. BEGIN
  64. cout    <= sub_wire0;
  65. q    <= sub_wire1(11 DOWNTO 0);
  66. lpm_counter_component : lpm_counter
  67. GENERIC MAP (
  68. lpm_direction => "UP",
  69. lpm_port_updown => "PORT_UNUSED",
  70. lpm_type => "LPM_COUNTER",
  71. lpm_width => 12
  72. )
  73. PORT MAP (
  74. aclr => aclr,
  75. clock => clock,
  76. cnt_en => cnt_en,
  77. cout => sub_wire0,
  78. q => sub_wire1
  79. );
  80. END SYN;
  81. -- ============================================================
  82. -- CNX file retrieval info
  83. -- ============================================================
  84. -- Retrieval info: PRIVATE: ACLR NUMERIC "1"
  85. -- Retrieval info: PRIVATE: ALOAD NUMERIC "0"
  86. -- Retrieval info: PRIVATE: ASET NUMERIC "0"
  87. -- Retrieval info: PRIVATE: ASETV NUMERIC "0"
  88. -- Retrieval info: PRIVATE: ASET_ALL1 NUMERIC "1"
  89. -- Retrieval info: PRIVATE: CLK_EN NUMERIC "0"
  90. -- Retrieval info: PRIVATE: CNT_EN NUMERIC "1"
  91. -- Retrieval info: PRIVATE: CarryIn NUMERIC "0"
  92. -- Retrieval info: PRIVATE: CarryOut NUMERIC "1"
  93. -- Retrieval info: PRIVATE: Direction NUMERIC "0"
  94. -- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "FLEX10K"
  95. -- Retrieval info: PRIVATE: ModulusCounter NUMERIC "0"
  96. -- Retrieval info: PRIVATE: ModulusValue NUMERIC "0"
  97. -- Retrieval info: PRIVATE: SCLR NUMERIC "0"
  98. -- Retrieval info: PRIVATE: SLOAD NUMERIC "0"
  99. -- Retrieval info: PRIVATE: SSET NUMERIC "0"
  100. -- Retrieval info: PRIVATE: SSETV NUMERIC "0"
  101. -- Retrieval info: PRIVATE: SSET_ALL1 NUMERIC "1"
  102. -- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
  103. -- Retrieval info: PRIVATE: nBit NUMERIC "12"
  104. -- Retrieval info: CONSTANT: LPM_DIRECTION STRING "UP"
  105. -- Retrieval info: CONSTANT: LPM_PORT_UPDOWN STRING "PORT_UNUSED"
  106. -- Retrieval info: CONSTANT: LPM_TYPE STRING "LPM_COUNTER"
  107. -- Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "12"
  108. -- Retrieval info: USED_PORT: aclr 0 0 0 0 INPUT NODEFVAL aclr
  109. -- Retrieval info: USED_PORT: clock 0 0 0 0 INPUT NODEFVAL clock
  110. -- Retrieval info: USED_PORT: cnt_en 0 0 0 0 INPUT NODEFVAL cnt_en
  111. -- Retrieval info: USED_PORT: cout 0 0 0 0 OUTPUT NODEFVAL cout
  112. -- Retrieval info: USED_PORT: q 0 0 12 0 OUTPUT NODEFVAL q[11..0]
  113. -- Retrieval info: CONNECT: @clock 0 0 0 0 clock 0 0 0 0
  114. -- Retrieval info: CONNECT: q 0 0 12 0 @q 0 0 12 0
  115. -- Retrieval info: CONNECT: @cnt_en 0 0 0 0 cnt_en 0 0 0 0
  116. -- Retrieval info: CONNECT: cout 0 0 0 0 @cout 0 0 0 0
  117. -- Retrieval info: CONNECT: @aclr 0 0 0 0 aclr 0 0 0 0
  118. -- Retrieval info: LIBRARY: lpm lpm.lpm_components.all
  119. -- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter0.vhd TRUE
  120. -- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter0.inc FALSE
  121. -- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter0.cmp TRUE
  122. -- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter0.bsf TRUE FALSE
  123. -- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter0_inst.vhd FALSE
  124. -- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter0_waveforms.html TRUE
  125. -- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter0_wave*.jpg FALSE
  126. -- Retrieval info: LIB_FILE: lpm