alt_sqrt.vhd 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. -- megafunction wizard: %ALTSQRT%
  2. -- GENERATION: STANDARD
  3. -- VERSION: WM1.0
  4. -- MODULE: ALTSQRT
  5. -- ============================================================
  6. -- File Name: alt_sqrt.vhd
  7. -- Megafunction Name(s):
  8. -- ALTSQRT
  9. --
  10. -- Simulation Library Files(s):
  11. -- altera_mf
  12. -- ============================================================
  13. -- ************************************************************
  14. -- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
  15. --
  16. -- 22.1std.2 Build 922 07/20/2023 SC Lite Edition
  17. -- ************************************************************
  18. --Copyright (C) 2023 Intel Corporation. All rights reserved.
  19. --Your use of Intel Corporation's design tools, logic functions
  20. --and other software and tools, and any 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 Intel Program License
  25. --Subscription Agreement, the Intel Quartus Prime License Agreement,
  26. --the Intel FPGA IP License Agreement, or other applicable license
  27. --agreement, including, without limitation, that your use is for
  28. --the sole purpose of programming logic devices manufactured by
  29. --Intel and sold by Intel or its authorized distributors. Please
  30. --refer to the applicable agreement for further details, at
  31. --https://fpgasoftware.intel.com/eula.
  32. LIBRARY ieee;
  33. USE ieee.std_logic_1164.all;
  34. LIBRARY altera_mf;
  35. USE altera_mf.all;
  36. ENTITY alt_sqrt IS
  37. PORT
  38. (
  39. clk : IN STD_LOGIC ;
  40. radical : IN STD_LOGIC_VECTOR (47 DOWNTO 0);
  41. q : OUT STD_LOGIC_VECTOR (23 DOWNTO 0);
  42. remainder : OUT STD_LOGIC_VECTOR (24 DOWNTO 0)
  43. );
  44. END alt_sqrt;
  45. ARCHITECTURE SYN OF alt_sqrt IS
  46. SIGNAL sub_wire0 : STD_LOGIC_VECTOR (23 DOWNTO 0);
  47. SIGNAL sub_wire1 : STD_LOGIC_VECTOR (24 DOWNTO 0);
  48. COMPONENT altsqrt
  49. GENERIC (
  50. pipeline : NATURAL;
  51. q_port_width : NATURAL;
  52. r_port_width : NATURAL;
  53. width : NATURAL;
  54. lpm_type : STRING
  55. );
  56. PORT (
  57. clk : IN STD_LOGIC ;
  58. radical : IN STD_LOGIC_VECTOR (47 DOWNTO 0);
  59. q : OUT STD_LOGIC_VECTOR (23 DOWNTO 0);
  60. remainder : OUT STD_LOGIC_VECTOR (24 DOWNTO 0)
  61. );
  62. END COMPONENT;
  63. BEGIN
  64. q <= sub_wire0(23 DOWNTO 0);
  65. remainder <= sub_wire1(24 DOWNTO 0);
  66. ALTSQRT_component : ALTSQRT
  67. GENERIC MAP (
  68. pipeline => 16,
  69. q_port_width => 24,
  70. r_port_width => 25,
  71. width => 48,
  72. lpm_type => "ALTSQRT"
  73. )
  74. PORT MAP (
  75. clk => clk,
  76. radical => radical,
  77. q => sub_wire0,
  78. remainder => sub_wire1
  79. );
  80. END SYN;
  81. -- ============================================================
  82. -- CNX file retrieval info
  83. -- ============================================================
  84. -- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
  85. -- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
  86. -- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
  87. -- Retrieval info: CONSTANT: PIPELINE NUMERIC "16"
  88. -- Retrieval info: CONSTANT: Q_PORT_WIDTH NUMERIC "24"
  89. -- Retrieval info: CONSTANT: R_PORT_WIDTH NUMERIC "25"
  90. -- Retrieval info: CONSTANT: WIDTH NUMERIC "48"
  91. -- Retrieval info: USED_PORT: clk 0 0 0 0 INPUT NODEFVAL "clk"
  92. -- Retrieval info: USED_PORT: q 0 0 24 0 OUTPUT NODEFVAL "q[23..0]"
  93. -- Retrieval info: USED_PORT: radical 0 0 48 0 INPUT NODEFVAL "radical[47..0]"
  94. -- Retrieval info: USED_PORT: remainder 0 0 25 0 OUTPUT NODEFVAL "remainder[24..0]"
  95. -- Retrieval info: CONNECT: @clk 0 0 0 0 clk 0 0 0 0
  96. -- Retrieval info: CONNECT: @radical 0 0 48 0 radical 0 0 48 0
  97. -- Retrieval info: CONNECT: q 0 0 24 0 @q 0 0 24 0
  98. -- Retrieval info: CONNECT: remainder 0 0 25 0 @remainder 0 0 25 0
  99. -- Retrieval info: GEN_FILE: TYPE_NORMAL alt_sqrt.vhd TRUE
  100. -- Retrieval info: GEN_FILE: TYPE_NORMAL alt_sqrt.inc FALSE
  101. -- Retrieval info: GEN_FILE: TYPE_NORMAL alt_sqrt.cmp TRUE
  102. -- Retrieval info: GEN_FILE: TYPE_NORMAL alt_sqrt.bsf FALSE
  103. -- Retrieval info: GEN_FILE: TYPE_NORMAL alt_sqrt_inst.vhd FALSE
  104. -- Retrieval info: LIB_FILE: altera_mf