From 413f15ae3768cf615a8eec6cb69998fca60f5fd8 Mon Sep 17 00:00:00 2001
From: JobvanWee <wee@astron.nl>
Date: Thu, 31 Mar 2022 11:44:03 +0200
Subject: [PATCH] Ready for review.

---
 .../ddrctrl/src/vhdl/ddrctrl_input_address_counter.vhd          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_input_address_counter.vhd b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_input_address_counter.vhd
index 5f89f7e44b..1d95748b0f 100644
--- a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_input_address_counter.vhd
+++ b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_input_address_counter.vhd
@@ -103,7 +103,7 @@ BEGIN
 
     CASE q_reg.state IS
     WHEN RESET =>
-      v.s_adr := c_max_adr-1;
+      v.s_adr := c_max_adr-1;                                                                                                             -- when there is a reset the fifo in io_ddr always needs the first out_sosi.valid to stop flushing the data so the first data word always gets lost. if s_adr is set to 0 after a restart the word from s_adr 1 will be put at address 0 in memory.
 
     WHEN COUNTING =>
       v.s_adr := q_reg.s_adr+1;
-- 
GitLab