Understanding the sws map Command

This command maps or alias a software item to a different software item version.

This page discusses:

See Also
Mapping and Unmapping Semiconductor Items
sws map Command Options

Use mapping to test out “what-if” scenarios. For example, if you map a different item revision for a design instead of the default item revision defined in with the design structure. You can also use mapping to resolve conflicts when the data in the workspace requires that two or more revisions of the same item in the environment.

Mapping only applies to the items in your workspace or design area. The mapping does not affect the item structure or contents.

The map command also provides an option to create a simple alias to help you remember what item versions you have mapped in your workspace and to prevent item conflicts. Using an alias, you can map multiple items to an expected path while the source for those items remains in their own paths, preventing file collisions.

The map command verifies that the command does not create any workspace conflicts before performing any of the command functions. If the command determines there are workspace conflicts, it fails with a message that recommends using an alias, or a different alias.

When running the mapping command, you can specify the item reference in one of three ways:

  • Item ID
  • Path
  • Triplet ID

Specifying the Item ID

The item ID is the unique identifier for the item version. You can see the identifier when you view the info for the item in the Semiconductor Item Management app. This always directly refers to a specific item.

Specifying the Path

Specifying the path refers to or updates the items located or aliased to the path location. This can refer to multiple items. This is an indirect reference because no specifically defined item must be on the path. When you specify a path, the system checks the existing map file to determine what items are affected by the command.

Specifying the Triplet ID

The triplet ID is a unique identifier, like the item ID, but composed of three components that together provide the unique id.

Type
This is the connector type of the item.
SemiconductorLogicalItem 
Title
This is the user-defined title of the item. You can see the title when you list the items with sws list or when you view the info for the item in the Semiconductor Item Management app.
Revision
This is the revision for the item. You can see the revision when you list the items with sws list or when you view the info for the item in the Semiconductor Item Management app.