1 ------------------------------------------------------------------------------- 3 --! @brief Sigma-Delta modulator device 4 ------------------------------------------------------------------------------- 9 --! Using IEEE standard logic components 10 USE ieee.std_logic_1164.
ALL;
12 --! Using IEE standard numeric components 15 --! @brief Sigma-Delta modulator device entity 17 --! This entity manages four sigma-delta modulators. The write register 18 --! contains the new four 8-bit levels. The read register contains the current 19 --! four 8-bit levels. 27 sdm_out : OUT (3 DOWNTO 0) --! Modulator outputs 29 END ENTITY sdm_device;
31 --! Architecture rtl of sdm_device entity 34 --! Array type of four levels 42 --! Generate four Sigma-Delta modulators 43 g_sdm : FOR i IN 0 TO 3 GENERATE 45 --! Generate Sigma-Delta modulator instance 46 i_sdm :
ENTITY work.
sdm(rtl)
59 --! @brief Process to handle writes and resets 69 ELSIF (rising_edge(clk_in)) THEN 71 -- Set levels from write register 81 --! @brief Process to handle reads 85 IF (rising_edge(clk_in)) THEN 86 -- Populate read register with levels in rst_instd_logic
Asynchronous reset.
in sdm_level_instd_logic_vector( bit_width- 1 DOWNTO 0)
Modulator level.
( 3 DOWNTO 0) std_logic_vector( 7 DOWNTO 0) sdm_level_set
Array type of four levels.
in clk_instd_logic
Clock.
in dat_wr_done_instd_logic
Device Write Done flag.
in clk_instd_logic
Clock.
out sdm_outstd_logic
Modulator output.
out sdm_outstd_logic_vector( 3 DOWNTO 0)
Modulator outputs.
bit_widthinteger range 1 TO 32:= 8
Bit width.
Using IEE standard numeric components Sigma-Delta modulator entityThis entity is a configurable firs...
in rst_instd_logic
Asynchronous reset.
_library_ ieeeieee
Using IEEE library.
sdm_level_set sdm_level
Levels array.
Sigma-Delta modulator device entity.
in dat_wr_reg_instd_logic_vector( 31 DOWNTO 0)
Device Write Register value.
out dat_rd_reg_outstd_logic_vector( 31 DOWNTO 0)
Device Read Register value.