
%-----------------------G992_1 HWE---------------------------

Files \test\G992_1\hwengine\ trainhw.bat and trainghs.bat are obsolete.

The batch files for the G992_1 hardware engine (HWE) can
be found in the test directory (\test\G992_1\hwengine) .

Currently, there are batch files for the following two tests:
   (i)   hwtrain.bat (transceiver training)
   (ii)  hwghs.bat      (handshake)
   (iii) hwtrain_ec.bat (transceiver training with channel and echo)
Also in the test subdirectory are the modified compiler.h and config.h files
   compNORM.h
   confNORM.h
After running a HWE batch file in an MS DOS window
from the \test\G992_1\hwengine subdirectory, a log file
with the same name as the batch file, but with a .log extension is
created in the test subdirectory:
   (i)   hwtrain.log (training)
   (ii)  hwghs.log   (handshake)
   (iii) hwtrain_ec.log (transceiver training with channel and echo)

The G992_1 HWE test batch files perform the following:
(1) select correct compiler.h and config.h files
(2) change directory to the build directory for G992_1 HWE
    (\build\G992_1\modem) where ModemHWE.dsw is located.
(3) deletes the extant executable file for G992_1 HWE (\Debug\HWExecFl.exe)
    and project dependencies
(4) start VC++:
   (a) project settings:
   * Executable: \build\G992_1\modem\Debug\HWExecFl.exe
   * Working Directory: \testvec\G992_1\input\hwengine
   * Program Arguments;
   (i)   Full Train with channel analysis
         txcnfgl0.txt tx_out.bin train.bin rxcnfga0.txt mptrain2.txt
   (ii)  handshake
         txcnfgl0.txt tx_out.bin hndshk.bin rxcnfga0.txt mpghs2.txt
   (iii) Full Train with channel analysis and echo
         txcnfgl0.txt tx_out.bin hndshk.bin rxcnfga0.txt mptrainec2.txt

 (b) Project Dependencies:
   HWEngineLib
   IridiaDLL
   MultTask
   Platform
   strymon_cpe
(5) Delete pre-existing trail.txt and tx_out.bin output files
(6) Execute HWExecFl.exe (if error, changes back to test directory)

The input files in the command line arguments for
the G992_1 HWE are located under the testvec directory
(testvec\G992_1\input\hwengine) and include:
   txcnfgl0.txt      (dummy Tx configuration file)
   train.bin      (Rx input data for training)
   hndshk.bin     (Rx input data for handshake)
   rxcnfga0.txt            (dummy Rx configuration file)
   mptrain2.txt      (test option flag file for training)
   mpghs2.txt     (test option flag file for handshake)
   mptrainec2.txt    (test option flag file for training with echo and channel on)

*  Note, there is no difference between the     *
*  HWE input files (testvec\G992_1\input\hwengine)    *
*  and the SWE input files (testvec\G992_1\input).    *


The output files which are generated include:
   tx_out.bin (Tx output data for transceiver training)
   trail.txt
   tx_echo.bin (Tx echo output for transceiver training with echo)

(7) Performs a file comparison with the trail file generated
from step (5) and the trail file in (\testvec\G992_1\TEST\hwengine),
as well as a file comparison with the binary tx output file
generated from step (5) and the binary tx output file in
(\testvec\G992_1\TEST\hwengine).

Note, for training with echo, the trail file generated from
step (5) is compared with the trail file (if it exists)
\testvec\G992_1\train\hwengine\trail_ec.txt,
and the binary tx output with added echo, tx_echo.bin, is compared with
(if it exists)
\testvec\G992_1\train\hwengine\tx_echo.bin.

Here, \TEST denotes a directory name for a specific test, e.g.
   (i)  \TEST = \train,  for training
   (ii) \TEST = \hndshk, for handshake.

(8) change directory back to the test directory (\test\G992_1\hwengine),


