Rename JTAG to TAP.
authorStaf Verhaegen <staf@stafverhaegen.be>
Fri, 6 Dec 2019 09:43:10 +0000 (10:43 +0100)
committerStaf Verhaegen <staf@stafverhaegen.be>
Fri, 6 Dec 2019 19:15:45 +0000 (20:15 +0100)
c4m/nmigen/jtag/tap.py

index 0e4de64a43e03e646114301e3614fa27a2da7506..928634a545cc550f46947225a30352b5a110b2f2 100755 (executable)
@@ -4,15 +4,14 @@ import os
 from nmigen import *
 from nmigen.build import *
 from nmigen.lib.io import *
+from nmigen.tracer import get_var_name
 
 from wishbone import Wishbone
 
 __all__ = [
-    "JTAG",
+    "TAP",
 ]
 
-#TODO: Provide more documentation
-
 
 class ShiftReg(Elaboratable):
     def __init__(self, ircodes, length, domain):
@@ -171,7 +170,8 @@ class JTAGWishbone(Elaboratable):
         return m
 
 
-class JTAG(Elaboratable):
+class TAP(Elaboratable):
+    #TODO: Document TAP
     @staticmethod
     def _add_files(platform, prefix):
         d = os.path.realpath("{dir}{sep}{par}{sep}{par}{sep}vhdl{sep}jtag".format(
@@ -222,7 +222,7 @@ class JTAG(Elaboratable):
         self._wbs = []
 
     def elaborate(self, platform):
-        JTAG._add_files(platform, "jtag" + os.path.sep)
+        TAP._add_files(platform, "jtag" + os.path.sep)
 
         m = Module()