From 5f58789592d3986f94554d3d715b08d77e595012 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 20 Jul 2014 18:22:53 -0600 Subject: [PATCH] rtio: fix FIFO WE --- soc/artiqlib/rtio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/artiqlib/rtio/__init__.py b/soc/artiqlib/rtio/__init__.py index d918e0948..89e6b2166 100644 --- a/soc/artiqlib/rtio/__init__.py +++ b/soc/artiqlib/rtio/__init__.py @@ -54,7 +54,7 @@ class RTIO(Module, AutoCSR): channel_o.reset.eq(self._r_reset.storage), channel_o.event.timestamp.eq(self._r_o_timestamp.storage), channel_o.event.value.eq(self._r_o_value.storage), - channel_o.we.eq(self._r_o_we.re & (self._r_chan_sel == n)) + channel_o.we.eq(self._r_o_we.re & (self._r_chan_sel.storage == n)) ] channel_o = Array(channel_os)[self._r_chan_sel.storage]