Entity: top_fft_tb

Diagram

Description

use work.sp_vision_test_pkg.all;

Signals

Name Type Description
reset std_logic
clk std_logic
adc_clk std_logic
start_prod std_logic
data_in_s std_logic_vector(DATA_SIZE-1 downto 0) fft
data_in_en_s std_logic
coeff_re_s std_logic_vector(COEFF_SIZE-1 downto 0)
coeff_im_s std_logic_vector(COEFF_SIZE-1 downto 0)
coeff_addr_s std_logic_vector(COEFF_ADDR_SIZE-1 downto 0)
coeff_en_s std_logic
res_re_s std_logic_vector(DATA_OUT_SIZE-1 downto 0) output data from FFT
res_im_s std_logic_vector(DATA_OUT_SIZE-1 downto 0) output data from FFT
res_en_s std_logic
res_eof_s std_logic
res_scale_re_s std_logic_vector(DATA_STORE_SIZE-1 downto 0)
res_scale_im_s std_logic_vector(DATA_STORE_SIZE-1 downto 0)
ram_addr_s std_logic_vector(ADDR_SIZE-1 downto 0) generator
tmp_data_s std_logic_vector(DATA_SIZE-1 downto 0)
cpt_s natural range 0 to 2**ADDR_SIZE
end_coeff_s std_logic read from file
end_read_s std_logic read from file
read_data_en_s std_logic
read_data_val_s std_logic_vector(DATA_SIZE-1 downto 0)
read_data_addr_s std_logic_vector(ADDR_SIZE-1 downto 0)
rst_2 std_logic
reset_transfert std_logic
start_acq std_logic
prescaler_s natural range 0 to MAX_VAL-1
tick_s std_logic
state_s gen_type
cpt2_s natural range 0 to 2**FFT_SIZE
plop_s std_logic

Constants

Name Type Value Description
DATA_SIZE natural 29
COEFF_SIZE natural 18
DATA_OUT_SIZE natural 40
ADDR_SIZE natural 12
COEFF_ADDR_SIZE natural 11
FFT_SIZE natural 11
DATA_STORE_SIZE natural 32
HALF_PERIODE time 5.0 ns Half clock period
ADC_PERIOD time 2.5 ns Half clock period
MAX_VAL natural 2

Types

Name Type Description
gen_type (IDLE,
PROPAGATE,
WAIT_END)

Processes

Description
generate data flow

Instantiations

State machines

  • generate data flow
state transitions cluster_state_s state_s IDLE IDLE PROPAGATE PROPAGATE IDLE->PROPAGATE (end_coeff_s and end_read_s) = '1'    WAIT_END WAIT_END PROPAGATE->WAIT_END cpt2_s = 2**FFT_SIZE-1    WAIT_END->PROPAGATE res_eof_s = '1'