LastValue Icon
LastValue
Gets the last defined value of u to place on y, on the clock of y.
This component effectively acts as a clock converter - you can think of it as the equivalent of u -> zeroorderhold -> sample -> y, but more efficient.
Clock-agnostic in that this works for any two clocks.
Usage
DiscreteComponents.LastValue()
Connectors
u- This connector represents a real signal as an input to a component (RealInput)y- This connector represents a real signal as an output from a component (RealOutput)
Behavior
Behavior of this component cannot be rendered because it includes path variables.
Source
"""
Gets the last defined value of `u` to place on `y`, on the clock of `y`.
This component effectively acts as a clock converter - you can think of
it as the equivalent of u -> zeroorderhold -> sample -> y, but more efficient.
Clock-agnostic in that this works for any two clocks.
"""
external component LastValue@[input inclk, input outclk]
u = RealInput@[inclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -40, "y1": 450, "x2": 60, "y2": 550, "rot": 0}
},
"tags": []
}
}
y = RealOutput@[outclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 960, "y1": 450, "x2": 1060, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
metadata {"Dyad": {"doc": {"behavior": false}}}
end
Flattened Source
"""
Gets the last defined value of `u` to place on `y`, on the clock of `y`.
This component effectively acts as a clock converter - you can think of
it as the equivalent of u -> zeroorderhold -> sample -> y, but more efficient.
Clock-agnostic in that this works for any two clocks.
"""
external component LastValue
u = RealInput@[inclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -40, "y1": 450, "x2": 60, "y2": 550, "rot": 0}
},
"tags": []
}
}
y = RealOutput@[outclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 960, "y1": 450, "x2": 1060, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
metadata {"Dyad": {"doc": {"behavior": false}}}
endTest Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses