M
Marek Ponca
Hello everybody,
last time I have done some simulations with self-test features,
there was a problem of reporting a value of one signal.
It was an array of ennumerated types:
Something like this:
---------
type enum_t is (S1, S2, S3, S4, S5, S6, S7);
type enum_a is array (1 to 5) of enum_t;
constant enum_c : enum_a := (S1, S2, S3, S4, S5);
signal enum_s : natural range of 1 to 5;
....
enum_s <= 3;
assert(FALSE)
report "Value is:"&to_string(enum_c(enum_s))
severity note;
---------
Function to_string was from std_developers_kit.
But this does not work (Modelsim). The enummerated vatues have to be
somehow
converted to string...
Does anybody have a better approach ?
Thanks,
Marek Ponca
last time I have done some simulations with self-test features,
there was a problem of reporting a value of one signal.
It was an array of ennumerated types:
Something like this:
---------
type enum_t is (S1, S2, S3, S4, S5, S6, S7);
type enum_a is array (1 to 5) of enum_t;
constant enum_c : enum_a := (S1, S2, S3, S4, S5);
signal enum_s : natural range of 1 to 5;
....
enum_s <= 3;
assert(FALSE)
report "Value is:"&to_string(enum_c(enum_s))
severity note;
---------
Function to_string was from std_developers_kit.
But this does not work (Modelsim). The enummerated vatues have to be
somehow
converted to string...
Does anybody have a better approach ?
Thanks,
Marek Ponca