From 5917048a3701b2de36ac18fc27853d97be115b32 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 21 May 2012 22:56:41 +0200 Subject: [PATCH] minimac: add tx start register --- milkymist/minimac3/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/milkymist/minimac3/__init__.py b/milkymist/minimac3/__init__.py index 75c88e31f..fb6b314b4 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),