M
MariuszK
Guest
Hello,
What is a difference between constant declared in entity and in
architecture?
In this sample is the same? When it is change something (synthezis
etc.....):
----------------------------------------------------
entity EWeightValue is
port(
out1 : out TNumberType(1 downto 0)
);
constant cc: TNumberType:= "00";
end EWeightValue;
--}} End of automatically maintained section
architecture AWeightValue of EWeightValue is
constant cc: TNumberType:="00";
end EWbegin
out1 <= cc;
end AWeightValue;
----------------------------------------------------
Thank you for answers.
Mariusz
What is a difference between constant declared in entity and in
architecture?
In this sample is the same? When it is change something (synthezis
etc.....):
----------------------------------------------------
entity EWeightValue is
port(
out1 : out TNumberType(1 downto 0)
);
constant cc: TNumberType:= "00";
end EWeightValue;
--}} End of automatically maintained section
architecture AWeightValue of EWeightValue is
constant cc: TNumberType:="00";
end EWbegin
out1 <= cc;
end AWeightValue;
----------------------------------------------------
Thank you for answers.
Mariusz