litex/misoc/cores/identifier.py

17 lines
366 B
Python
Raw Normal View History

2015-09-22 12:36:47 -04:00
from migen import *
2015-09-25 06:43:20 -04:00
from misoc.interconnect.csr import *
2012-05-16 19:41:41 -04:00
2013-03-30 12:28:15 -04:00
class Identifier(Module, AutoCSR):
def __init__(self, sysid, frequency, revision=None):
self._sysid = CSRStatus(16)
self._frequency = CSRStatus(32)
2014-10-17 05:14:35 -04:00
###
self.comb += [
self._sysid.status.eq(sysid),
self._frequency.status.eq(frequency)
]