Tcl command "calbzup"


The tcl command "calbzup" is a tcl command specialized in management of the zero supression. It is based on the CALB library.


Index


CALBZS id

The access to the CALB zero supression memory is implemented via a CALBZS id. This id is associated to a memory buffer and is needed to connect the calbzsup and the calb.

All the routines present in calbzsup have a parameter of this type.


Initialization

As stated before, the access to the CALB zero supression memory is implemented via a CALBZS id. To obtain such an id you must use
calbzsup new. This id will than be used for all the accesses to the CALB zero supression memory.
Only one CALBZS id should be opened per board..

When you finish using the zero supression memory, please call calbzsup dispose to free the memory associated to the id.


Buffer management

As stated before, the CALBZS id has associated a memory buffer.

In order to update this buffer, use the calbzsup load.

On the other hand, this buffer can be modified; use calbzsup save to synch the zero suppression.


Get a bit

To get a bit from the buffer, use the
calbzsup getbit.


Set a bit or range of bits

To set a bit in the buffer, use the
calbzsup setbit.

To set a renge of bits in the buffer, use the calbzsup setrange.

Note: This operations are executed on the buffer and do not change the zero suppression!


Find a bit

To find a bit inside the buffer, use the
calbzsup find.


An example

#open the CALB
set cid [calb open 5 10 1]
#open the zsup
set zsid [calbzsup new $cid]
#load into buffer
calbzsup load $zsid
...
#find a bit
set nr [calbzsup find $zsid 1 A 0 -direction right]
#set the bit
calbzsup setbit $zsid 1 A $nr 1
...
#save to zsup
calbzsup save $zsid
#dispose the zsup
calbzsup dispose $zsid
#close the CALB
calb close $cid


Top of the page. CALB documention.
Send comments to: Igor Sfiligoi

Created:30.5.1997
Last modified:4.6.1997