add attempt at mapping between PortInterface and LoadStoreUnitInterface
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 25 Jun 2020 09:56:35 +0000 (10:56 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 25 Jun 2020 09:56:35 +0000 (10:56 +0100)
src/soc/experiment/pi2ls.py [new file with mode: 0644]

diff --git a/src/soc/experiment/pi2ls.py b/src/soc/experiment/pi2ls.py
new file mode 100644 (file)
index 0000000..7b2e6d0
--- /dev/null
@@ -0,0 +1,21 @@
+"""
+    PortInterface                LoadStoreUnitInterface
+
+    is_ld_i/1                    x_ld_i
+    is_st_i/1                    x_st_i
+
+    data_len/4                   x_mask/16  (translate using LenExpand)
+
+    busy_o/1                     most likely to be x_busy_o
+    go_die_i/1                   rst?
+    addr.data/48                 x_addr_i[4:] (x_addr_i[:4] goes into LenExpand)
+    addr.ok/1                    probably x_valid_i & ~x_stall_i
+
+    addr_ok_o/1                  no equivalent.  *might* work using x_stall_i
+    addr_exc_o/2(?)              m_load_err_o and m_store_err_o
+
+    ld.data/64                   m_ld_data_o
+    ld.ok/1                      probably implicit, when x_busy drops low
+    st.data/64                   x_st_data_i
+    st.ok/1                      probably kinda redundant, set to x_st_i
+"""