Motion FPGA
Motion FPGA for the MachX02-7000HE Breakout Board
rtl Architecture Reference

Architecture rtl of blink entity. More...

Processes

pr_count  ( clk_in , rst_in )
 Process to count and toggle.

Signals

count  integer range 0 TO max_count
 Internal counter.
led  std_logic
 Current led.

Detailed Description

Architecture rtl of blink entity.

Definition at line 28 of file blink.vhd.

Member Function Documentation

§ pr_count()

pr_count (   clk_in ,
  rst_in  
)
Process

Process to count and toggle.

This process counts clocks and toggles the state when appropriate.

Definition at line 41 of file blink.vhd.

pr_count : PROCESS (clk_in, rst_in) IS
41  BEGIN
42 
43  IF (rst_in = '1') THEN
44  count <= 0;
45  led <= '0';
46  ELSIF (rising_edge(clk_in)) THEN
47  IF (count = max_count) THEN
48  count <= 0;
49  led <= NOT led;
50  ELSE
51  count <= count + 1;
52  END IF;
53  END IF;
54 
55  END PROCESS pr_count;
56 

The documentation for this class was generated from the following file: