Commit 5c6c0ed7 authored by Matthieu Cattin's avatar Matthieu Cattin

hdl: Change trigger position register to byte-address (was sample-address).

parent ddf254ee
...@@ -1460,7 +1460,7 @@ begin ...@@ -1460,7 +1460,7 @@ begin
end process p_ram_addr_cnt; end process p_ram_addr_cnt;
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- Store trigger DDR address -- Store trigger DDR address (byte address)
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
p_trig_addr : process (wb_ddr_clk_i, sys_rst_n_i) p_trig_addr : process (wb_ddr_clk_i, sys_rst_n_i)
begin begin
...@@ -1468,7 +1468,7 @@ begin ...@@ -1468,7 +1468,7 @@ begin
trig_addr <= (others => '0'); trig_addr <= (others => '0');
elsif rising_edge(wb_ddr_clk_i) then elsif rising_edge(wb_ddr_clk_i) then
if wb_ddr_fifo_dout(64) = '1' and wb_ddr_fifo_valid = '1' then if wb_ddr_fifo_dout(64) = '1' and wb_ddr_fifo_valid = '1' then
trig_addr <= "0000000" & std_logic_vector(ram_addr_cnt); trig_addr <= "0000" & std_logic_vector(ram_addr_cnt) & "000";
end if; end if;
end if; end if;
end process p_trig_addr; end process p_trig_addr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment