6.3.4 Declaring a master port

This component requires a master port to forward incoming requests from the slave port to the connected slave port of another component.

Procedure

  1. Declare the master port in the master port section in SerialCharDoubler.lisa.
    master port<SerialData> out;
  2. Remove or comment out any behavior definitions.

Postrequisites

Make the connection in the connection mode in the Block Diagram view.

Note

The master port uses the same protocol as the slave port. This is not a requirement, but is useful here because this example only implements the dataTransmit behavior, and forwards the rest.
Non-ConfidentialPDF file icon PDF versionARM DUI0370S
Copyright © 2007-2014 ARM. All rights reserved.