RealToLogic

Real to Logic converter

    RealToLogic

Library

Modelica/Electrical/Digital/Converters

Description

Conversion of a real input into a digital output without any delay according to:

                                 condition            output
      first check:               input greater upp    lupp
      second check:              input larger low     llow
                                 else                 lmid

If the signal width is greater than 1 this conversion is done for each signal.

Parameters

RealToLogic_0

NameLabelDescriptionData TypeValid Values

mo_n

n

signal width

Scalar

mo_upper_limit

upper_limit

upper limit

Scalar

mo_lower_limit

lower_limit

lower limit

Scalar

mo_upper_value

upper_value

output if input > upper_limit

Structure

mo_upper_value/choice1

U Uninitialized

Number

0
1

mo_upper_value/choice2

X Forcing Unknown

Number

0
1

mo_upper_value/choice3

0 Forcing 0

Number

0
1

mo_upper_value/choice4

1 Forcing 1

Number

0
1

mo_upper_value/choice5

Z High Impedance

Number

0
1

mo_upper_value/choice6

W Weak Unknown

Number

0
1

mo_upper_value/choice7

L Weak 0

Number

0
1

mo_upper_value/choice8

H Weak 1

Number

0
1

mo_upper_value/choice9

- Do not care

Number

0
1

mo_lower_value

lower_value

output if input < lower_limit

Structure

mo_lower_value/choice1

U Uninitialized

Number

0
1

mo_lower_value/choice2

X Forcing Unknown

Number

0
1

mo_lower_value/choice3

0 Forcing 0

Number

0
1

mo_lower_value/choice4

1 Forcing 1

Number

0
1

mo_lower_value/choice5

Z High Impedance

Number

0
1

mo_lower_value/choice6

W Weak Unknown

Number

0
1

mo_lower_value/choice7

L Weak 0

Number

0
1

mo_lower_value/choice8

H Weak 1

Number

0
1

mo_lower_value/choice9

- Do not care

Number

0
1

mo_middle_value

middle_value

output else

Structure

mo_middle_value/choice1

U Uninitialized

Number

0
1

mo_middle_value/choice2

X Forcing Unknown

Number

0
1

mo_middle_value/choice3

0 Forcing 0

Number

0
1

mo_middle_value/choice4

1 Forcing 1

Number

0
1

mo_middle_value/choice5

Z High Impedance

Number

0
1

mo_middle_value/choice6

W Weak Unknown

Number

0
1

mo_middle_value/choice7

L Weak 0

Number

0
1

mo_middle_value/choice8

H Weak 1

Number

0
1

mo_middle_value/choice9

- Do not care

Number

0
1

RealToLogic_1

NameLabelDescriptionData TypeValid Values

mo_x

x

x

Structure

mo_x/fixed

fixed

Cell of vectors

true
false

mo_x/start

start

Cell of vectors

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of vectors

true
false

mo_y/start

start

Cell of vectors

Ports

NameTypeDescriptionIO TypeNumber

x

implicit

input

1

y

implicit

output

1