modelIntegerExtractor
Validation model for the integer extractor block
Information
Validation test for the block IDEAS.Controls.OBC.CDL.Routing.IntegerExtractor.
The instances extIndInt, extIndInt1, extIndInt2,
extIndInt3, and extIndInt4 have the same input vector with
dimension of 4. However, they have different extract index and thus different output.
-
The instance
extIndInthas the extract index of2. The output isu[2]. -
The instance
extIndInt1has the extract index of6. Thus it is out of upper range[1, 4]and it outputsu[4]. It also issues a warning to indicate that the extract index is out of range. -
The instance
extIndInt2has the extract index of0. Thus it is out of lower range[1, 4]and it outputsu[1]. It also issues a warning to indicate that the extract index is out of range. -
The instance
extIndInt3has the extract index changing from2to-1. Thus it first outputsu[2], and then changes tou[1]. At the moment when the extract index becomes out of range, it issues a warning. -
The instance
extIndInt4has the extract index changing from0to3. Thus it first outputsu[1], and then changes tou[3]. It issues a warning at the start of the simulation.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| IDEAS.Controls.OBC.CDL.Routing.IntegerExtractor | extIndInt | Extracts signal from an input signal vector | |
| IDEAS.Controls.OBC.CDL.Routing.IntegerExtractor | extIndInt1 | Extracts signal from an input signal vector when the extract index is out of the upper range | |
| IDEAS.Controls.OBC.CDL.Routing.IntegerExtractor | extIndInt2 | Extracts signal from an input signal vector when the extract index is out of the lower range | |
| IDEAS.Controls.OBC.CDL.Routing.IntegerExtractor | extIndInt3 | Extracts signal from an input signal vector when the extract index changes from within range to out of range | |
| IDEAS.Controls.OBC.CDL.Routing.IntegerExtractor | extIndInt4 | Extracts signal from an input signal vector when the extract index changes from out of range to within range | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Constant | conInt2 | Block that outputs integer constant | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Constant | conInt3 | Block that outputs integer constant | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Pulse | intPul | Generate pulse signal of type Integer | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Pulse | intPul1 | Generate pulse signal of type Integer | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Constant | conInt | Index to extract input signal | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Constant | conInt1 | Index to extract input signal | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Constant | conInt4 | Index to extract input signal | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Pulse | intPul2 | Generate pulse signal of type Integer | |
| IDEAS.Controls.OBC.CDL.Integers.Sources.Pulse | intPul3 | Generate pulse signal of type Integer |
Revisions
-
October 5, 2022, by Jianjun Hu:
First implementation.