F
French
Guest
Hi,
Does anybody know how I can generate custom error during synthesis
(and not during runtime) inside my vhdl code.
For example, I have defined an entity feature two generics and I would
like to generate a specific error during the synthesis of the current
block is a forbidden combination of my generic parameters occurs.
i.e:
entity test is
generic
( param1 : integer := 23;
param2 : integer := 24); -- always works but when both param1 and
param2 are equal to 32
....
it would be very helpfull to detect missuses of some component defined
in libraries that would not be explicitely reported otherwhise.
I have found some ways to do it during simulation using assert
commands with severity parameters but, as assert must be used in a
sequential process it cannot work during synthesis
Does anybody know how I can generate custom error during synthesis
(and not during runtime) inside my vhdl code.
For example, I have defined an entity feature two generics and I would
like to generate a specific error during the synthesis of the current
block is a forbidden combination of my generic parameters occurs.
i.e:
entity test is
generic
( param1 : integer := 23;
param2 : integer := 24); -- always works but when both param1 and
param2 are equal to 32
....
it would be very helpfull to detect missuses of some component defined
in libraries that would not be explicitely reported otherwhise.
I have found some ways to do it during simulation using assert
commands with severity parameters but, as assert must be used in a
sequential process it cannot work during synthesis