O
Olaf Petzold
Guest
Hi,
this time a question to unconstrained args for procedures. Is there a
way to write it something like:
package oo is
procedure foo (
signal a, b : in std_logic_vector(natural range <>
....
package body oo is
procedure foo(
signal a, b : std_logic_vector(natural range <>
...) is
constant WIDTH : natural := a'range;
...
begin
...
I got syntax errors. Imo there is no reasing why isn't possible.
Thank you
Olaf
this time a question to unconstrained args for procedures. Is there a
way to write it something like:
package oo is
procedure foo (
signal a, b : in std_logic_vector(natural range <>
....
package body oo is
procedure foo(
signal a, b : std_logic_vector(natural range <>
...) is
constant WIDTH : natural := a'range;
...
begin
...
I got syntax errors. Imo there is no reasing why isn't possible.
Thank you
Olaf