Skip to content

Commit

Permalink
docs: another small correction to the gateware-blinky tutorial text
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinevg committed Feb 4, 2025
1 parent c61b562 commit 902ae98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorials/gateware_blinky.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Now that we have a state definition for our timer we can move forward to the imp
Amaranth combines normal Python expressions with Amaranth in order to describe a design. Whenever you see the prefix ``m.`` you are making a call to the ``Module`` object you created at the beginning of the ``elaborate(...)`` method. These calls are what build the logic which makes up a design.

The ``with m.If(...):`` and ``with m.Else():`` blocks operate much like you'd expect where, every clock-cycle, the expression ``timer == half_freq`` will be evaluated and trigger the corresponding branch.
The ``with m.If(...):`` and ``with m.Else():`` blocks operate much like you'd expect where, every clock-cycle, the expression ``timer == half_freq - 1`` will be evaluated and trigger the corresponding branch.

The first block represents the point at which the timer has expired and we'd like to change the state of the LEDs and then reset the timer back to zero.

Expand Down

0 comments on commit 902ae98

Please sign in to comment.