O
Olaf Petzold
Guest
Hi,
this time another question:
foo: block is
shared variable bar : std_logic;
begin
....
Modelsim/XE got error:
Shared variables must be of a protected type.
well, following http://www.csee.umbc.edu/help/VHDL/declare.html:
Note: Variables declared in subprograms and processes
must not be declared shared.
Variables declared in entities, architectures, packages and blocks
must be declared shared.
Some analysers/compilers may require shared variables
to be 'protected'.
unfortunally I didn't found any informations about making shared vars
protected in detail, wether MXE nor XST. How to do this?
I found some links about racing conditions using shared variables but
not specials/details.
Thanks and regards,
Olaf
this time another question:
foo: block is
shared variable bar : std_logic;
begin
....
Modelsim/XE got error:
Shared variables must be of a protected type.
well, following http://www.csee.umbc.edu/help/VHDL/declare.html:
Note: Variables declared in subprograms and processes
must not be declared shared.
Variables declared in entities, architectures, packages and blocks
must be declared shared.
Some analysers/compilers may require shared variables
to be 'protected'.
unfortunally I didn't found any informations about making shared vars
protected in detail, wether MXE nor XST. How to do this?
I found some links about racing conditions using shared variables but
not specials/details.
Thanks and regards,
Olaf