The forum sw has some problems with correct rendering since the last
update...
But to cut down your code it looks like that:
1 | freq_divider_1 : PROCESS (reset, clk)
|
2 | BEGIN
|
3 |
|
4 | IF rising_edge(clk) THEN
|
5 | :
|
6 | END IF;
|
7 |
|
8 |
|
9 | IF (reset = '1') THEN
|
10 | :
|
11 | ELSIF rising_edge(clk) THEN
|
12 | :
|
13 | END IF;
|
14 |
|
15 |
|
16 | IF (reset = '1') THEN
|
17 | :
|
18 | ELSIF rising_edge(clk) THEN
|
19 | :
|
20 | END IF;
|
21 |
|
22 | END PROCESS;
|
Where did you find that fairless amazing coding style with several
"subprocesses" in one process?
Are you sure, that your synthesizer is able to generate hardware out of
this?
> however I missing something.
I would implement 1 counter steadily counting from 0 to 9. One step each
100ns. Then I would set both of the PWM outputs high with counter = 0,
and I would reset one PWM output with counter = 4 and the second PWM
output with counter = 6. Sounds kind of easy...