Little extract from VHDL WaveForm star
...
if ($ref(pos) >= $val(size))
$ref(output) $assign(output) 0.0;
$ref(pos) $assign(pos) $ref(pos) + 1;
else
$ref(output) = $ref(value,pos);
$ref(pos) $assign(pos) + 1;
end if;
..
where value is "floatarray" (with variable size, e.g. "0.0 -1.0 +4.0 ..."
etc.)
Behevioural output is (snipped)
...
process
variable i_1: INTEGER;
variable pos_2: INTEGER := 0;
variable output_0_0: REAL := 0.0;
variable value_3_P0: REAL := 1.0;
begin
for i_1 in 1 to 10 loop
wait for 1 ns;
-- Star BufferIn_test.WaveForm1 (class VHDLWaveForm)
if (pos_2 >= 2)
output_0_0 := 0.0;
pos_2 := pos_2 + 1;
else
output_0_0 = value_3_P0;
pos_2 := + 1;
end if;
...
Where is a float array???
Why Ptolemy (ver.0.7.1) doesn't generate somethink like
variable value_3_P0: array of REAL := ( 0.0, -1.0, +4.0,...);
and
output_0_0 = value_3_P0(pos_2);
???
Thanks
Regards,
Maurizio Camangi
----------------------------------------------------
| Undergraduate student at |
| Dept. of Electronics, University of Ancona, Italy |
----------------------------------------------------
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]