# This is the module register VME Control 0xef00 variable VMECtrl 0 variable VMECtrl.B7 0 variable VMECtrl.B6 0 variable VMECtrl.B5 0 variable VMECtrl.B4 0 variable VMECtrl.B3 0 variable VMECtrl.B0 0 proc GetVMECtrl {} { variable VMECtrl variable VMECtrl.B7 variable VMECtrl.B6 variable VMECtrl.B5 variable VMECtrl.B4 variable VMECtrl.B3 variable VMECtrl.B0 set VMECtrl [ReadRegister VMEControl]; set VMECtrl.B0 [expr $VMECtrl & 7] set VMECtrl.B3 [expr ($VMECtrl >> 3) & 1] set VMECtrl.B4 [expr ($VMECtrl >> 4) & 1] set VMECtrl.B5 [expr ($VMECtrl >> 5) & 1] set VMECtrl.B6 [expr ($VMECtrl >> 6) & 1] set VMECtrl.B6 [expr ($VMECtrl >> 7) & 1] } proc SetVMECtrl {} { variable VMECtrl variable VMECtrl.B7 variable VMECtrl.B6 variable VMECtrl.B5 variable VMECtrl.B4 variable VMECtrl.B3 variable VMECtrl.B0 set VMECtrl [expr \ ([set VMECtrl.B7] << 7) | \ ([set VMECtrl.B6] << 6) | \ ([set VMECtrl.B5] << 5) | \ ([set VMECtrl.B4] << 4) | \ ([set VMECtrl.B3] << 3) | \ ([set VMECtrl.B0])] WriteRegister VMEControl $VMECtrl } proc DrawVMECtrl {} { set html "" append html "

" append html "" append html "" append html "" append html "" append html "" append html "" append html "" append html "" append html "" # Bit 7: append html "" # Bit 6: append html "" # Bit 5: append html "" # Bit 4 append html "" # Bit 3 append html "" # Bit 0/1/2: append html "" append html "" append html "
Interrupt ModeRELOC OptionALIGN64 OptionBERR OptionOptical Link InterruptInterrupt Level
" append html "" append html "" append html "" append html "" append html "" append html "" append html "" append html "" append html "" append html "" append html "" append html "
" append html "

" return $html }