I have the same problem, but unfortunately could not solve it. If
someone could point out where in the ptolemy code one could hack this,
if possible to do it semi-trivially, it would be most appreciated.
I bypassed the problem by using messages with port addresses in them,and
have only a single connection going into the galaxy, from where it
goes into a star which distributes the message according to the port
number. Ugly, I know, but gets the job done.
Tome Anticic
On Tue, 3 Apr 2001, michel barreteau wrote:
>
> Hi all,
>
> I'm using Ptolemy 0.7.2 under several platforms. I would like to insert
> some expression to define the buswidth parameter value into a HOF MapGr
> star but it fails (Error:Bus_HOF3.MapGr2: Sorry, only a single
> replacement block is supported at this time).
>
> I attached to this mail a dummmy design (just untar it and add
> 'BUS_HOF=$HOME ; export BUS_HOF' to your environment if you want to
> test it under your root).
>
> The first part shows a (dummy) star within a MapGr star and the second
> one a galaxy within a MapGr star again. No problem for the first part if
> you mention a buswidth parameter value using an expression (inside the
> HOF star) such as 'busparam' or 'busparam/2'. It is not the same for the
> second part; only constant expressions such as '2' do not fail.
>
> I wonder whether the problem comes from the InterpGalaxy::preinitialize
> method.
>
> Did anybody ever encounter this problem and solve it ?
>
> Thanks in advance.
--
Tome Anticic
Rudjer Boskovic Institute
Department of Experimental Physics
Bijenicka 54
10000 Zagreb
CROATIA
Phone: 385-1-4561-028
Fax: 385-1-4680-239
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]