litex/milkymist/m1reset/__init__.py

21 lines
603 B
Python
Raw Normal View History

2011-12-16 16:25:26 -05:00
from migen.fhdl.structure import *
2012-01-21 06:25:22 -05:00
class M1Reset:
2011-12-16 16:25:26 -05:00
def __init__(self):
2011-12-18 16:02:05 -05:00
self.trigger_reset = Signal()
self.sys_rst = Signal()
self.ac97_rst_n = Signal()
self.videoin_rst_n = Signal()
self.flash_rst_n = Signal()
2011-12-16 16:25:26 -05:00
self._inst = Instance("m1reset",
[("sys_rst", self.sys_rst),
("ac97_rst_n", self.ac97_rst_n),
("videoin_rst_n", self.videoin_rst_n),
("flash_rst_n", self.flash_rst_n)],
[("trigger_reset", self.trigger_reset)],
clkport="sys_clk")
def get_fragment(self):
return Fragment(instances=[self._inst],
pads={self.ac97_rst_n, self.videoin_rst_n, self.flash_rst_n})