g4Xmfg Commands : 
----------------------------------

XML to Binary operations:

1. To convert Manufacturing XML to Binary
   g4Xmfg.exe xmltobin -x pci4armMfgEval.xml -s pci4armMfg.xsd -o out_mfg.bin

2. To convert SBR XML to Binary ( Here input XML has only SOC Settings Page )
   g4Xmfg.exe xmltobin -x pci4armSbrAll.xml -s pci4armSbr.xsd -o out_sbr.bin

3. To convert SBR XML to Binary  ( Here Input XML has SOC Settings and Serdes Settings page ) 
   g4Xmfg.exe xmltobin -x pci4armSbrAll_Multi_Pages_example.xml -s pci4armSbr.xsd -o out_sbr_multi.bin


Binary To XML operations:
To convert binary to XML,
     bintoxml -x <template.xml> -b <input.bin> -o <output.xml> [-s <schema.xsd>]
         -x : Relative or absolute path of the XML file
         -b : Input binary file name.
         -o : Output XML file.
         -s : Optional schema file name. If not specified, XML reference will be used

Template XML To XML operations:
To process query tags and generate XML to XML,
     xmltoxml -x <template.xml> -o <output.xml> [-s <schema.xsd>]
         -x : Relative or absolute path of the input XML file
         -o : Output XML file.
         -s : Optional schema file name. If not specified, XML reference will be used


SBR Binary layout :
-------------------

1. First 4 bytes --- > HW Signature 

2. Next 88 Bytes ----> SBR Index (Hardware settings blocks offset and size. The size is in bytes in multiples of 4 )
					   Initially, Size is initialized with 0xFF and Offset is with 0x0. After parsing the 
					   Input XML file, these fields are updated with proper values. 

3. 416 Bytes --------> SOC HW Settings
                       Above three fields are mandatory in SBR image. 

4. Remaining HW Settings pages like PSB, PSW0, etc., will be added to the SBR output bin file as per the input XML file. 

5. 4 Bytes ---------> Checksum (Byte by Byte Sum of (0xA5 + HW Signature + ... + HW Settings Check Sum) = 0x00

