xreal_to_xbit_var

xreal_to_xbit_var :
An xreal-to-xbit connector with variable logic-1 and logic-0 levels.

The xreal_to_xbit_var primitive converts an xreal-type signal to an xbit-type signal with variable logic-1 and logic-0 levels. The threshold level required to convert the analog level of the input in to a digital level of the output out is computed as a mid-level between the two inputs level1 and level0.

Input/Output Terminals

Name I/O Type Description
out output xbit xbit-type output
in input xreal xreal-type input
level0 input xreal conversion level for logic 0
level1 input xreal conversion level for logic 1

Parameters

Name Type Default Unit Description
width integer 1 None connector bit-width
« xreal_to_xbit