This class provides a graphical editor that can be used to retarget Ptolemy universes. To use this editor, you must be running a binary that has Ptolemy built in. To start Tycho with Ptolemy, see Executing Tycho with Ptolemy in the Tycho under Unix guide.
Ptolemy is a software environment that provides simulation an code generation capabilities. http://ptolemy.eecs.berkeley.edu describes the Ptolemy project in detail, but briefly, a Ptolemy program is called a Universe which consists of multiple functional blocks, (such as adders etc.) named Stars. Different models of computation are called Ptolemy Domains. This editor is used to retarget Universes between different domains. For example, there is the CG56 domain that generates code for the Motorola 56k processor and there is a domain for the Texas Instruments C50 domain. This editor can be used to retarget a universe that was written in the CG56 domain to the C50 domain. The retargeting editor can also be used to compare the stars in two different domains.
Special
menu button in the ptcl editor contains the
Retarget
menu choice which brings up the retargeting editor.
tycho -pigi
. The -pigi
option
means that tycho uses a binary that knows about the Ptolemy stars.
$PTOLEMY/tycho/typt/lib/PtolemyFacets.fst
.
PtolemyFacets.fst
contains a forest that describes all
the different universes in the Ptolemy tree. A graphical window that
displays the forest should come up.
$PTOLEMY/src/domains/cgc/demo/sound
node is visible and then double click on the node. A graphical editor
that lists the stars in the sound universe will come up.
Special
menu button of the sound Palette, select
Show Ptcl
. A ptcl editor
window should come up that contains a textual description of the
sound universe.
Special
menu button in the ptcl editor, select
the Retarget
choice and the retarget editor should come up.
Change Domain B
button and change the domain to C50. We are going to attempt to
retarget the domain from CGC to the Texas Instruments C50 domain.
Check Universe
button. After a brief wait, the Retargeting editor will display the
names of the stars in sound demo, and the conflicts between the CGC and the
C50 domain. You can double click on a star name which will bring up a window
that compares the two stars in the different domains.
Compare Domains
button.