D
Duke
Guest
Hey,
I am new with using variables in VHDL and am wondering how it gets
synthesized in the following case:
If you understand it can you also please explain why it gets
synthesized the way you think it does?
process(a)
variable x: integer;
variable y:integer;
variable z:integer;
begin
x:= 1;
if (a=1) then
x:=2;
end if
for i in 0 to 4 loop
y := i+x;
if(y>d) then
y := y - d;
end if
end if
if(b = 2) then
z:= y;
end if
end process
I am new with using variables in VHDL and am wondering how it gets
synthesized in the following case:
If you understand it can you also please explain why it gets
synthesized the way you think it does?
process(a)
variable x: integer;
variable y:integer;
variable z:integer;
begin
x:= 1;
if (a=1) then
x:=2;
end if
for i in 0 to 4 loop
y := i+x;
if(y>d) then
y := y - d;
end if
end if
if(b = 2) then
z:= y;
end if
end process