Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Oct 27, 2017
1 parent 22c902b commit 5e9cbf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion urukul.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from migen import *


# increment this if the behavior changes
__proto_rev__ = 4


class SR(Module):
def __init__(self, width):
self.sdi = Signal()
Expand Down Expand Up @@ -100,9 +104,11 @@ def __init__(self, platform, n=4):
("smp_err", n),
("pll_lock", n),
("ifc_mode", 4),
("proto_rev", 8)
])
self.comb += [
self.data.ifc_mode.eq(platform.lookup_request("ifc_mode"))
self.data.ifc_mode.eq(platform.lookup_request("ifc_mode")),
self.data.proto_rev.eq(__proto_rev__)
]
for i in range(n):
dds = platform.lookup_request("dds", i)
Expand Down

0 comments on commit 5e9cbf4

Please sign in to comment.