real_to_bit_var

real_to_bit_var :
: A real-to-bit connector with variable logic-1 and logic-0 levels.

The real_to_bit_var primitive converts a real-type signal to a bit-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 real-type inputs: level1 and level0.

The parameter strength defines the driving strength of the bit-type output signal (e.g. 4 for weak, 5 for pull, 6 for strong, and 7 for supply).

Input/Output Terminals

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

Parameters

Name Type Default Unit Description
strength integer 6 None driving strength (0~7)
« real_to_bit
real_to_temp »