Commit 9f574761 authored by mcattin's avatar mcattin

Fix bug in multi-shot mode. wb_fifo wr_en signal was badly assigned.

git-svn-id: http://svn.ohwr.org/fmc-adc-100m14b4cha/trunk@91 ddd67a1a-c8ad-4635-afe9-0b8a11d8f8e4
parent 13cce547
......@@ -1114,7 +1114,7 @@ begin
elsif rising_edge(sys_clk_i) then
if single_shot = '1' then
wb_ddr_fifo_din <= sync_fifo_dout(63 downto 0);
wb_ddr_fifo_wr_en <= samples_wr_en;
wb_ddr_fifo_wr_en <= samples_wr_en and sync_fifo_valid;
else
wb_ddr_fifo_din <= dpram_dout;
wb_ddr_fifo_wr_en <= dpram_valid;
......@@ -1123,7 +1123,7 @@ begin
end process p_wb_ddr_fifo_input;
--wb_ddr_fifo_din <= sync_fifo_dout(63 downto 0) when single_shot = '1' else dpram_dout;
--wb_ddr_fifo_wr_en <= samples_wr_en when single_shot = '1' else dpram_valid;
wb_ddr_fifo_wr <= wb_ddr_fifo_wr_en and sync_fifo_valid and not(wb_ddr_fifo_full);
wb_ddr_fifo_wr <= wb_ddr_fifo_wr_en and not(wb_ddr_fifo_full);
wb_ddr_fifo_rd <= wb_ddr_fifo_dreq and not(wb_ddr_fifo_empty) and not(wb_ddr_stall_t);
wb_ddr_fifo_dreq <= '1';
......
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