G
Grigorios Angelis
Guest
Does anyone know if it is possible and how to define new operators in vhdl.
A very usefull one for example would be a "++" operator which would behave
as its c counterpart.
Possible use:
signal MySignal : integer := 0;
.
.
.
process (clock) is
begin
if rising_edge(clock) then
MySignal ++
end if;
end process;
The first (of some) error message that I seem to get from the compiler when
I try to declare a function "++" is the following:
Not a predefined operator: "++"
Which is kind of a given because the reason I'm trying to make the operator
is exactly because it's not predefined.
Any input appreciated.
Greg.
A very usefull one for example would be a "++" operator which would behave
as its c counterpart.
Possible use:
signal MySignal : integer := 0;
.
.
.
process (clock) is
begin
if rising_edge(clock) then
MySignal ++
end if;
end process;
The first (of some) error message that I seem to get from the compiler when
I try to declare a function "++" is the following:
Not a predefined operator: "++"
Which is kind of a given because the reason I'm trying to make the operator
is exactly because it's not predefined.
Any input appreciated.
Greg.