Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| dt-code-sequ [2012/06/11 10:35] – concurrent flipflop beckmanf | dt-code-sequ [2014/01/08 11:02] (current) – flipflop process -> concurrent beckmanf | ||
|---|---|---|---|
| Line 69: | Line 69: | ||
| begin | begin | ||
| - | ff_p : process(clk, | + | q <= ' |
| - | begin | + | |
| - | if reset_n | + | |
| - | q <= ' | + | |
| - | elsif rising_edge(clk) | + | |
| - | q <= new_q; | + | |
| - | end if; | + | |
| - | end process ff_p; | + | |
| new_q <= not q; | new_q <= not q; | ||
| - | end; | + | end architecture rtl; |
| </ | </ | ||
| Line 97: | Line 90: | ||
| entity strangecnt is | entity strangecnt is | ||
| port ( | port ( | ||
| - | | + | |
| - | | + | |
| s_i : in std_ulogic; | s_i : in std_ulogic; | ||
| cnt0_o | cnt0_o | ||
| Line 109: | Line 102: | ||
| signal l : std_ulogic; | signal l : std_ulogic; | ||
| begin | begin | ||
| - | | + | |
| - | | + | |
| - | if reset_ni | + | c1 <= ' |
| - | c0 <= ' | + | |
| - | c1 <= ' | + | |
| - | elsif rising_edge(clk_i) then | + | |
| - | c0 <= c0_new; | + | |
| - | c1 <= c1_new; | + | |
| - | end if; | + | |
| - | end process seq_p; | + | |
| c0_new <= not c0; | c0_new <= not c0; | ||