ResetValueTracker Icon
Examples.ResetValueTracker
Usage
DiscreteComponents.Examples.ResetValueTracker()
Connectors
initialcondition- This connector represents a real signal as an input to a component (RealInput)resetvalue- 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
component ResetValueTracker@[input clk]
initialcondition = RealInput@[clk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -40, "y1": 450, "x2": 60, "y2": 550, "rot": 0}
},
"tags": []
}
}
resetvalue = RealOutput@[clk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 970, "y1": 450, "x2": 1070, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
resetvalue = ifelse(isnan_wrapper(resetvalue@(clk-1)), initialcondition, resetvalue@(clk-1))
initial resetvalue@(clk-1) = 0.0
metadata {"Dyad": {"doc": {"behavior": false}}}
end
Flattened Source
component ResetValueTracker
initialcondition = RealInput@[clk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -40, "y1": 450, "x2": 60, "y2": 550, "rot": 0}
},
"tags": []
}
}
resetvalue = RealOutput@[clk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 970, "y1": 450, "x2": 1070, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
resetvalue = ifelse(isnan_wrapper(resetvalue@(clk-1)), initialcondition, resetvalue@(clk-1))
initial resetvalue@(clk-1) = 0.0
metadata {"Dyad": {"doc": {"behavior": false}}}
endTest Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses