A
ahmadagha23
Guest
Hi
what is the diffrence between signal and variable in vhdl at implementation ?(what are the hardware that signal and variable map to?)
and why the following program:
architecture var of test is
begin
process(clk)
variable c:std_logic_vector(0 to 7);
variable d:std_logic_vector(0 to 7);
begin
if clk='1' then
c:=a;
d:=c;
b<=d;
end if;
end process;
end var;
is faster than the following one after implementation?:
architecture sig of test is
signal clk:bit;
signal c,d:std_logic_vector(0 to 7);
begin
process(clk)
begin
if clk='1'then
c<=a;
d<=c;
b<=d;
end if;
end process;
end sig;
thanks
what is the diffrence between signal and variable in vhdl at implementation ?(what are the hardware that signal and variable map to?)
and why the following program:
architecture var of test is
begin
process(clk)
variable c:std_logic_vector(0 to 7);
variable d:std_logic_vector(0 to 7);
begin
if clk='1' then
c:=a;
d:=c;
b<=d;
end if;
end process;
end var;
is faster than the following one after implementation?:
architecture sig of test is
signal clk:bit;
signal c,d:std_logic_vector(0 to 7);
begin
process(clk)
begin
if clk='1'then
c<=a;
d<=c;
b<=d;
end if;
end process;
end sig;
thanks