# This is the module register VME Status 0xef04 (read only) variable VMEStatus 0 variable VMEStatus.B3 0 variable VMEStatus.B2 0 variable VMEStatus.B1 0 variable VMEStatus.B0 0 proc GetVMEStatus {} { variable VMEStatus variable VMEStatus.B3 variable VMEStatus.B2 variable VMEStatus.B1 variable VMEStatus.B0 set VMEStatus [ReadRegister VMEStatus] set VMEStatus.B0 [expr ($VMEStatus >> 0) & 1] set VMEStatus.B1 [expr ($VMEStatus >> 1) & 1] set VMEStatus.B2 [expr ($VMEStatus >> 2) & 1] set VMEStatus.B3 [expr ($VMEStatus >> 3) & 1] } proc DrawVMEStatus {} { set html "" append html "
" append html "
| BERR Flag | " append html "Output Buffer State | " append html "Data Ready Flag | " append html "
| " append html "" append html " | " # Bit 1 append html "" append html "" append html " | " # Bit 0: append html "" append html "" append html " | " append html "