a_fetoh
Newbie level 6
- Joined
- Sep 29, 2006
- Messages
- 12
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Mansoura, Egypt
- Activity points
- 1,357
Hello,
there is a Parallel to serial block in my system which i make it with a 64*1 mux and 6-bit counter .
I want the counter to stop when it reach "111111" and start again from "000000" when the input changed.
I've tried many methods, something like that :
process (data_in)
begin
if x2="111111" then --o/p of counter
x3<='1';
else
x3<='0';
end if;
end process;
where x2 is the output of the counter and x3 is a signal when it equals 1 the counter restart from "000000"
But the prolblem is when the counter eraches "111111", x3 remains 1 and i want it changed to 1 for only a period of one clock.
Does any1 have suggestions ?
Thanks,
there is a Parallel to serial block in my system which i make it with a 64*1 mux and 6-bit counter .
I want the counter to stop when it reach "111111" and start again from "000000" when the input changed.
I've tried many methods, something like that :
process (data_in)
begin
if x2="111111" then --o/p of counter
x3<='1';
else
x3<='0';
end if;
end process;
where x2 is the output of the counter and x3 is a signal when it equals 1 the counter restart from "000000"
But the prolblem is when the counter eraches "111111", x3 remains 1 and i want it changed to 1 for only a period of one clock.
Does any1 have suggestions ?
Thanks,