comment on why clocks are in FSM
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Apr 2021 08:03:09 +0000 (09:03 +0100)
committerStaf Verhaegen <staf@stafverhaegen.be>
Wed, 21 Apr 2021 17:43:56 +0000 (19:43 +0200)
c4m/nmigen/jtag/tap.py

index a6b702fd7786c751355eac1f2a0ab92a8307c53a..2753063b0c391249297785a21c9e065867a3bfd9 100755 (executable)
@@ -26,6 +26,7 @@ class _FSM(Elaboratable):
         self.shift = Signal()
         self.update = Signal()
 
+        # JTAG uses both edges of the incoming clock (TCK). set them up here
         self.posjtag = ClockDomain("posjtag", local=True)
         self.negjtag = ClockDomain("negjtag", local=True, clk_edge="neg")