C
Colin Beighley
Guest
Hello,
I'm looking to do something like the following.
--code-
signal signal_a, signal b : unsigned(3 downto 0);
type registers is array 0 to 1 of unsigned(3 downto 0);
alias my_regs : registers is (signal_a,signal_b);
--end code--
So essentially I have a bunch of signals in a module and want to group
them as an array of registers using aliases. The other way around is
possible - declaring the array of registers as signals and then
declaring the individual signals using aliases. However, I can't do it
as I've shown, at least not using Xilinx's tools. Any suggestions?
Thanks,
Colin
I'm looking to do something like the following.
--code-
signal signal_a, signal b : unsigned(3 downto 0);
type registers is array 0 to 1 of unsigned(3 downto 0);
alias my_regs : registers is (signal_a,signal_b);
--end code--
So essentially I have a bunch of signals in a module and want to group
them as an array of registers using aliases. The other way around is
possible - declaring the array of registers as signals and then
declaring the individual signals using aliases. However, I can't do it
as I've shown, at least not using Xilinx's tools. Any suggestions?
Thanks,
Colin