stage_gen.vhd
来自「能进行32位浮点数fft运算的VHDL描述。」· VHDL 代码 · 共 29 行
VHD
29 行
-- STAGE NUMBER GENERATOR.library ieee ;use ieee.std_logic_1164.all ;use ieee.std_logic_arith.all ;use work.butter_lib.all ;use ieee.std_logic_unsigned.all ;entity stage_gen isport ( add_staged , add_clear : in std_logic ; st_stage : out std_logic_vector(1 downto 0) ) ; end stage_gen ;architecture rtl of stage_gen isbeginprocess(add_staged , add_clear)variable s_count : std_logic_vector(1 downto 0) ;beginif (add_clear = '1') thenst_stage <= "00" ;s_count := "00" ;elsif(add_staged'event and add_staged= '1' ) thenst_stage <= s_count + 1 ;s_count := s_count + 1 ;end if ;end process ;end rtl ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?