ASPL User Guide v 1.00
© 2025 Bassem W. Jamaleddine
21. 4Tying Attributes to RNG Device
Tying Attributes to RNG Device
ELEMENTS-GROUPING-CLASS: TIERNGDEVICEGROUP
GG-function: ggtierngdevice()
Sample workspace: TIETRUERNG
Stream one hundred random numbers from tied TrueRNG device
trng = ggtierngdevice(points,100) where trng is a set variable
Interrogating the Set Variable
?5,1 trng interrogate trng 5 times with 1 second delay
print differential group variable trng
@ trng
Show changes in differential group variable trng
playchanges trng
how to tie the attribute to TrueRNG device
The element attributes defined in a grouping class can be tied to UNIX devices through the tie mechanism implemented through Udev interface. For a group whose element attributes tie to external UNIX devices, ASPL creates the processing stub, however you need to edit the stub to finalize its connectivity with the devices so that the attributes can stream data in real time (everytime ASPL operations are sourcing data through these attributes).
The element grouping class TIERNGDEVICEGROUP has been created with the metagrouping command:# metagrouping -creategrouping TIERNGDEVICEGROUP -attributes "rn1,t" "rn2,t" "rn3,t"
Here rn1, rn2, and rn4, are three tied attributes.
In the following example, we show the usage of tied interface by putting the tie process at work. We start ASPL by loading the sample workspace TIETRUERNG, and show how to stream data through the tied interface to the UNIX urandom device.