wo_osama
Newbie level 1
- Joined
- Jan 1, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,292
I need to know what the difference between "=" and "<="
for example
architecture UPCOUNTER IS
begin
process(clk,rst)
begin
if rst='1' then cout <="000";
elseif rising_edge(clk) then cout <= cout +1;
end if;
end process;
end upcounter;
I need to know why is it we used "=" with if but "<=" with the rest, I usually pull it off by luck I don't give it a lot of thoght, but I have a lab exam tomorrow and I expect to be asked about these little things, so help needed, really appreciate it.
Thanks in advance.
for example
architecture UPCOUNTER IS
begin
process(clk,rst)
begin
if rst='1' then cout <="000";
elseif rising_edge(clk) then cout <= cout +1;
end if;
end process;
end upcounter;
I need to know why is it we used "=" with if but "<=" with the rest, I usually pull it off by luck I don't give it a lot of thoght, but I have a lab exam tomorrow and I expect to be asked about these little things, so help needed, really appreciate it.
Thanks in advance.