From: Sebastien Bourdeauducq Date: Mon, 21 May 2012 20:56:41 +0000 (+0200) Subject: minimac: add tx start register X-Git-Tag: 24jan2021_ls180~3180 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5917048a3701b2de36ac18fc27853d97be115b32;p=litex.git minimac: add tx start register --- diff --git a/milkymist/minimac3/__init__.py b/milkymist/minimac3/__init__.py index 75c88e31..fb6b314b 100644 --- a/milkymist/minimac3/__init__.py +++ b/milkymist/minimac3/__init__.py @@ -26,7 +26,8 @@ class MiniMAC: self._rx_count_0 = RegisterField("rx_count_0", _count_width, access_bus=READ_ONLY, access_dev=WRITE_ONLY) self._rx_count_1 = RegisterField("rx_count_1", _count_width, access_bus=READ_ONLY, access_dev=WRITE_ONLY) self._tx_count = RegisterField("tx_count", _count_width, access_dev=READ_WRITE) - regs = [self._phy_reset, self._rx_count_0, self._rx_count_1, self._tx_count] + self._tx_start = RegisterField("tx_start", access_bus=WRITE_ONLY) + regs = [self._phy_reset, self._rx_count_0, self._rx_count_1, self._tx_count, self._tx_start] self._rx_event_0 = EventSourcePulse() self._rx_event_1 = EventSourcePulse() @@ -78,7 +79,7 @@ class MiniMAC: ("rx_ready_0", rx_ready_0), ("rx_ready_1", rx_ready_1), - ("tx_start", self._tx_count.re), + ("tx_start", self._tx_start.re), ("tx_count", self._tx_count.field.r), ("wb_adr_i", self.membus.adr),