Backward Compatibility Issues in Ptolemy 0.7

Recompilation will be necessary.
As always, if you upgrade from 0.6 to 0.7, you will need to recompile any user designed stars.
Type system changes
The type system has been changed. Some Code Generation universes may need explicit conversion stars to properly compile. Further Documentation
htmldoc is a new keyword that has been added to ptlang.
ptlang no longer generates troff output and instead generates html. The html output is generated in the stars/ directory. In releases earlier than Ptolemy0.7, the troff output was generated in stars/../doc/stars
Certain HOF stars have been removed
Revisions in the HOF domain make the following star types no longer necessary: If you have universes that were using the old stars, you will need to use masters or ptfixtree to update their references.
Certain CGC DSP stars have been moved.
To support retargeting demonstrations and galaxies from SDF to CGC, Brian Evans moved the CGC stars that implemented DSP functions from the cgc/stars directory to the cgc/dsp/stars directory and set symbolic links from cgc/icons to cgc/dsp/icons for those stars for backwards compatibility. Users should run masters on their own CGC demos in order for look-inside to work.
Affected stars: DTMFPostTest, Dirichlet, FFTCx, FIR, FIRFix, GAL, GGAL, Goertzel, GoertzelBase, GoertzelPower, IIR, LMS, LMSOscDet, RaisedCosine, Sinc, Window.
CGC stars that have been removed
CGCPCM, CGCPCMread, CGCPCMwrite, CGCSunSound, CGCTkSunSound Also, SDFReadPCM was removed and replaced with SDFPCMReadInt
The cgc/targets/main directory has been split.
To separate the uniprocessor and multiprocessor CGC targets, Brian Evans split the CGC targets/main directory into targets/uniproc and targets/multiproc
CG56 stars that have been removed
CG56Cut, CG56Pad
Structure of directories under PTOLEMY_SYSTEMS has been changed.
To support portability between operating systems, Brian Evans changed the destination directory in the Ptolemy targets and demonstrations to $HOME/PTOLEMY_SYSTEMS/domain. For mixed-domain demos, the domain was set to MIXED; otherwise, the domain was set to SDF, CGC, etc. Note that $HOME is used instead of ~ because POSIX-compliant Unix operating systems always define the HOME environment variable but do not always support ~. Also, it is possible to define environment variables on Macs and PCs.
Certain audio stars have been removed.
Sunil Bhave removed the old PCMread/write and SunSound stars from ptdesign. Instead you can use the new MonoIn/Out stars, which have been added to the cgc palettes. The TkSunSound star is also gone. In Ptolemy 0.7, the mu law conversion tables are in the libptdsp library. If you use
SDFIntDiv and SDFModulus have been renamed
SDFIntDiv and SDFModulus were in src/domains/sdf/contrib/stars. These stars have been moved to src/domains/sdf/stars and renamed to SDFDivByInt and SDFModuloInt.
BDFTrue renamed to BDFCondGate
Brian Evans renamed the BDFTrue star to BDFCondGate.
Float-to-int particle conversion now works as documented
The Almagest said that float-to-int particle conversion rounded floats to the nearest int. In fact, the code was using the int() cast operator, which truncates toward 0 for positive values, and truncates in a machine dependent way for negative values.
Now, floats are rounded to the nearest integer as specified, both in implicit particle conversions and in FloatToInt stars.
This may break a few existing schematics that depend on the old behavior. For example, we noticed that the DE basic switch demo was failing with a message like:
Error: switch.Case.output=21: The control value 2 is not in the range [0,1] 
	
The demo had been generating fractional values in the range 0 to 1.9, which were truncated to the 0 or 1 expected by the Case star. With rounding, the last few values converted to 2 instead. We changed the demo to generate fractional values running from 0 to 1, which round to the required control values.
DERepeatStar improvements
DERepeatStar has been revised to use a delay marker rather than setting nonstandard porthole priorities on its feedback arc. In most cases this will give better behavior for derived stars that have regular input ports in addition to the feedback arc. Derived stars that set delayType or contain triggers() directives may need to be revised. Also, DERepeatStar can now pass a numeric value in each feedback event. See section 11.2.6 of the Programmer's Manual for details.


Up to: What's New in Ptolemy 0.7 - Back to: Minor Changes in Ptolemy 0.7
Copyright © 1997, The Regents of the University of California. All rights reserved.
Last updated 04/20/97, comments to ptolemy@ptolemy.eecs.berkeley.edu.