久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2250|回復: 0
收起左側

FFT變換的IP核的vhdl源代碼

[復制鏈接]
ID:704585 發表于 2021-1-15 14:01 | 顯示全部樓層 |閱讀模式
51hei.png
  1. library ieee ;
  2. use ieee.std_logic_1164.all ;
  3. use ieee.std_logic_arith.all ;
  4. use work.butter_lib.all ;

  5. entity control_main is
  6. port (
  7.        a_small , sign_a , sign_b : in std_logic ;
  8.        sign_out , add_sub , reset_all : out std_logic ;
  9.        en_sub , en_swap , en_shift , addpulse , normalise : out std_logic ;
  10.        fin_sub , fin_swap , finish_shift , add_finish , end_all : in std_logic ;
  11.        clock_main , clock , reset , enbl , zero_num , change: in std_logic ) ;
  12. end control_main ;

  13. architecture rtl of control_main is
  14. signal current_state , next_state : state ;
  15. begin
  16. process (current_state , add_finish , finish_shift , end_all , enbl , clock_main , fin_sub , fin_swap , zero_num , change)
  17. begin

  18. case current_state is
  19. when reset1 =>
  20.   if( enbl = '1' and clock_main = '1') then
  21.   normalise <= '0' ;
  22.   addpulse <= '0' ;
  23.   reset_all <= '1' ;
  24.   next_state <= reset2 ;
  25.   elsif ( enbl = '0') then
  26.   next_state <= reset7 ;-- last state to exit
  27.   else
  28.   next_state <= reset1 ;
  29.   end if ;

  30. when reset2 =>
  31.   reset_all <= '0' ; -- else values willnot cchange
  32.   en_sub <= '1' ;
  33.   en_swap <= '1' ;
  34.   next_state <= reset3 ;

  35. when reset3 =>
  36.   if (zero_num = '1') then
  37.   next_state <= reset5 ;
  38.   en_sub <= '0' ;
  39.   en_swap <= '0' ;
  40.   elsif(fin_sub= '1') then
  41.   if(fin_swap = '1') then
  42.   en_shift <= '1' ;
  43.   en_sub <= '0' ;
  44.   en_swap <= '0' ;
  45.   next_state <= reset4 ;
  46.   end if ;
  47.   else
  48.   next_state <= reset3 ;
  49.   end if ;
  50.   
  51. when reset4 =>
  52. if (finish_shift = '1') then
  53. en_shift <= '0' ;
  54. addpulse <= '1' ;
  55. next_state <= reset5 ;
  56. else
  57. next_state <= reset4 ;
  58. end if ;

  59. when reset5 =>
  60. if (zero_num = '1') then
  61. normalise <= '1' ;
  62. next_state <= reset6 ;
  63. elsif (add_finish = '1') then
  64. normalise <= '1' ;
  65. addpulse <= '0' ;
  66. next_state <= reset6 ;
  67. else
  68. next_state <= reset5 ;
  69. end if ;

  70. when reset6 =>
  71. if (end_all = '1' and clock_main = '1') then
  72. normalise <= '0' ;
  73. next_state <= reset6 ;
  74. elsif (end_all = '1' and clock_main = '0') then
  75. next_state <= reset1 ;
  76. else
  77. next_state <= reset6 ;
  78. end if ;

  79. when reset7 =>
  80. next_state <= reset7 ;

  81. when others =>
  82. next_state <= reset1 ;

  83. end case ;
  84. end process ;

  85. process(clock , reset , change)
  86. begin
  87. if(change = '1') then
  88. current_state <= reset1 ;
  89. elsif (reset = '1') then
  90. current_state <= reset1 ;
  91. elsif (clock= '1' and clock'event) then
  92. current_state <= next_state ;
  93. end if ;
  94. end process ;

  95. process (a_small , sign_a , sign_b)
  96. begin
  97. if (sign_a = '0' and sign_b = '0') then
  98. sign_out <= '0' ;
  99. add_sub <= '1' ;

  100. elsif (sign_a = '1' and sign_b = '1') then
  101. sign_out <= '1' ;
  102. add_sub <= '1' ;

  103. elsif (a_small = '1' and sign_a = '0') then
  104. sign_out <= '1' ;
  105. add_sub <= '0' ;

  106. elsif (a_small = '0' and sign_a = '1') then
  107. sign_out <= '1' ;
  108. add_sub <= '0' ;

  109. else
  110. sign_out <= '0' ;
  111. add_sub <= '0' ;
  112. end if ;

  113. end process ;

  114. end rtl ;
復制代碼


FFT變換的IP核的源代碼.zip

35.22 KB, 下載次數: 15, 下載積分: 黑幣 -5

FFT變換的IP核的源代碼.zip

回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 伊人久久伊人 | 黄色一级免费 | 久久久久久久久久久福利观看 | 国产91在线 | 亚洲 | 午夜国产羞羞视频免费网站 | 国产精品99精品久久免费 | 91精品国产综合久久婷婷香蕉 | av在线一区二区三区 | 一级片在线观看 | 亚洲视频在线一区 | 久久综合一区 | 国产精品1区 | 亚洲欧美日韩精品久久亚洲区 | 久久国产一区二区 | 成人精品区 | 久久婷婷国产香蕉 | 在线欧美视频 | 欧美在线a | 亚洲综合中文字幕在线观看 | 亚洲成人三级 | 精品在线播放 | 国产精品久久久久一区二区三区 | 免费亚洲成人 | 午夜网 | 一区二区三区久久 | 亚洲精品久久久一区二区三区 | 成人小视频在线观看 | 91亚洲国产成人久久精品网站 | 在线播放一区 | 日韩不卡一区二区三区 | 精品免费国产一区二区三区四区介绍 | 久久精品综合 | 亚洲视频免费 | com.国产| 国产精品成人69xxx免费视频 | 一本色道精品久久一区二区三区 | 又黑又粗又长的欧美一区 | 精品欧美乱码久久久久久1区2区 | 国产精品一区二区三区久久 | 国产精品免费看 | 97伦理 |