Line 188... |
Line 188... |
|
|
|
|
--------------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------------
|
-- Read asignments
|
-- Read asignments
|
-- if reading registers, do ack, else use internal ack
|
-- if reading registers, do ack, else use internal ack
|
ACK_O_port <= CYC_I_port and STB_I_port and (not(ADR_I_port(3)) or ACK_I_int or not(running_I));
|
ACK_O_port <= (CYC_I_port and STB_I_port) and
|
|
((not(ADR_I_port(3)) or ACK_I_int or not(running_I)));
|
|
|
|
|
--------------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------------
|
-- Internal wishbone allocation
|
-- Internal wishbone allocation
|
STB_O_int <= STB_I_port and ADR_I_port(3);
|
STB_O_int <= STB_I_port and ADR_I_port(3);
|
Line 223... |
Line 224... |
time_scale_R <= (others => '0');
|
time_scale_R <= (others => '0');
|
channels_sel_R <= (others => '0');
|
channels_sel_R <= (others => '0');
|
buffer_size_R <= (others => '0');
|
buffer_size_R <= (others => '0');
|
trigger_level_R <= (others => '0');
|
trigger_level_R <= (others => '0');
|
trigger_offset_R <= (others => '0');
|
trigger_offset_R <= (others => '0');
|
|
trigger_channel_R <= (others => '0');
|
|
write_in_adc_R <= '0';
|
|
adc_conf_R <= (others => '0');
|
|
|
|
|
|
|
-- Assignments
|
-- Assignments
|
elsif CYC_I_port = '1' and STB_I_port = '1' and WE_I_port = '1' and ADR_I_port(3) = '0' then
|
elsif CYC_I_port = '1' and STB_I_port = '1' and WE_I_port = '1' and ADR_I_port(3) = '0' then
|
|
|
case ADR_I_port(2 downto 0) is
|
case ADR_I_port(2 downto 0) is
|