slava77/emu — pull request #1 by slava77 (2014-08-28 22:30:47+00:00)
Title: Gtx monitor from evaldas

```
Ok, so I added the new register addresses and the various bit location pointers and their default values to the TMB_constants.h, then also updated TMB.h and TMB.cc file to add the new variables holding all of the new statuses values and readback values and also methods to set, get and read them. I also added the RW bits of the new registers to the TMB configuration registers in DefineTMBConfigurationRegisters_() and their default values to be written to flash in SetTMBRegisterDefaults(), then also updated DecodeTMBRegister_() to decode the register values and fill the readback variables and also in PrintTMBRegister() I added some human readable printout of the new registers. e.g. looks like this:

->GTX optical input control and monitoring:
Input enable [DCFEBs 0-6]:	[ 1 1 1 1 1 1 1 ]
Input reset [DCFEBs 0-6]:	[ 0 0 0 0 0 0 0 ]
PRBS test enable [DCFEBs 0-6]:	[ 0 0 0 0 0 0 0 ]
Input ready [DCFEBs 0-6]:	[ 1 1 1 1 1 1 1 ]
Link good [DCFEBs 0-6]:	[ 1 1 1 1 1 1 1 ]
Link had errors [DCFEBs 0-6]:	[ 1 1 1 1 1 1 1 ]
Link bad [DCFEBs 0-6]:	[ 0 0 0 0 0 0 0 ]
Link error count [DCFEBs 0-6]:	[ 1 1 1 1 1 1 1 ]

I also updated PeripheralApps to use the PrintTMBRegisters() to print the new stuff in the TMB status page if harware version is
```