Name | Type | Description |
---|---|---|
Unit2 | compound module |
unit2: configuration in unit2.ini. |
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see http://www.gnu.org/licenses/. // package ttethernet.examples.small_network; import ttethernet.nodes.ethernet.TTEEtherHost; import ttethernet.ctc.TTIncoming; import ttethernet.buffer.TTDoubleBuffer; import ttethernet.ctc.RCIncoming; import ttethernet.buffer.RCQueueBuffer; // // unit2: configuration in unit2.ini. // // - Receives time-triggered messages with VL-ID 100 // - Sends rate-constrained messages with VL-ID 101 // module Unit2 extends TTEEtherHost { submodules: vl_100_ctc: TTIncoming { parameters: @display("p=349,60"); } vl_100: TTDoubleBuffer { parameters: @display("p=439,61"); } vl_101_ctc: RCIncoming { parameters: @display("p=349,140"); } vl_101: RCQueueBuffer { parameters: @display("p=439,141"); } connections: vl_100_ctc.out --> vl_100.in; vl_101_ctc.out --> vl_101.in; }