Module subword

Module subword 

Source
Expand description

Various convenience utilities for splitting 36-bit TX-2 words into smaller components and for joining them together.

Functionsยง

join_halves
Join two 18-bit values into a 36-bit word.
join_quarters
Join two quarters into a halfword.
left_half
Extract the right (less-significant) halfword from a full word.
quarters
Split a 36-bit word into four 9-bit quarters. The result is a tuple which contains the quarters ordered from most-significant (Q4) to least-significant (Q1).
right_half
Extract the right (more-significant) halfword from a full word.
split_halfword
Split a halfword into left (more significant) and right (less significant) 9-bit quarters (in the sense that they are quarters of the original 26-bit full word).
split_halves
Split a 36-bit word into two 18-bit values.