From 240c5751fa71d2d227bdcd7e60e7d584ea3b8ae3 Mon Sep 17 00:00:00 2001
From: JobvanWee <wee@astron.nl>
Date: Mon, 11 Apr 2022 16:43:41 +0200
Subject: [PATCH] Ready for review.

---
 .../lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output.vhd  | 8 ++++----
 .../libraries/ddrctrl/src/vhdl/ddrctrl_output_repack.vhd  | 5 ++---
 .../libraries/ddrctrl/src/vhdl/ddrctrl_output_unpack.vhd  | 8 +++++---
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output.vhd b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output.vhd
index b535fa56b3..b93fb05eb0 100644
--- a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output.vhd
+++ b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output.vhd
@@ -18,12 +18,12 @@
 --
 -------------------------------------------------------------------------------
 -- Author: Job van Wee
--- Purpose: Folding a stream of data into a mm data configuration so it can be
--- stored in a DDR RAM-stick.
+-- Purpose: when there is output this component will turn it back into a
+-- sosi arr.
 --
 -- Description:
---  First the data from the ddr memory gets resized into its original size
---  after that the data gets assigned a bsn.
+--  The data from the ddr memory gets resized into its original size and gets
+--  back its bsn.
 --
 -- Remark:
 --  Use VHDL coding template from:
diff --git a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_repack.vhd b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_repack.vhd
index 39a88abe29..9c8555f3ea 100644
--- a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_repack.vhd
+++ b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_repack.vhd
@@ -18,11 +18,10 @@
 --
 -------------------------------------------------------------------------------
 -- Author: Job van Wee
--- Purpose: Resize the input data vector so that the output data vector can be
---  stored into the ddr memory.
+-- Purpose: Spread out the input sosi over a sosi array.
 --
 -- Description:
---  The input data gets resized and put into the output data vector.
+--  The input sosi gets split up and spread out over the sosi array.
 --
 -- Remark:
 --  Use VHDL coding template from:
diff --git a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_unpack.vhd b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_unpack.vhd
index 8fb5b17d7f..1f117a6c5f 100644
--- a/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_unpack.vhd
+++ b/applications/lofar2/libraries/ddrctrl/src/vhdl/ddrctrl_output_unpack.vhd
@@ -18,11 +18,13 @@
 --
 -------------------------------------------------------------------------------
 -- Author: Job van Wee
--- Purpose: Resize the input data vector so that the output data vector can be
---  stored into the ddr memory.
+-- Purpose: resize the data into a single sosi with a width of g_out_data_w.
 --
 -- Description:
---  The input data gets resized and put into the output data vector.
+--  The data gets collected into a vector(c_v) and from this vector the output
+--  data gets read. When the reading passes the halfway point of c_v new data
+--  is requested and the whole vector shifts g_in_data_w amount of bits to fit
+--  the new data at the end.
 --
 -- Remark:
 --  Use VHDL coding template from:
-- 
GitLab