Re: Howto Lookup-Table
Marcel Hellwig <[email protected]> Thu, 21 Jan 2016 16:34:41 +0100
| Newsgroups | gmane.comp.python.myhdl |
|---|---|
| Message-ID | <[email protected]> |
On 21.01.2016 15:28, Christopher Felton wrote: [...] > Yes, as you discovered dictionaries are not directly > convertible. The convertible types are described > here: > http://docs.myhdl.org/en/stable/manual/conversion.html#supported-types > > This doesn't mean you can't use dicts to manage the > information in your design it just means you are limited > to using dicts in elaboration (outside the myhdl > generators). Thanks for the clarification. > >> Okay, I thought, then I will just outsource the tuples to variables and >> make a "big" if/elif switch-case. But that don't work either :/ >> > > I am not sure I am following but I think you need this > simple change > > offset = USER[rd] > regs[offset].next = din > I'm used to write everything as compact as possible (especially in python), so this seems a bit of weird to me, but okay. It works now. :) Thanks for the help Marcel ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ myhdl-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/myhdl-list
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWoPqRAAoJEIROXYQnkAHpaQQP/R+MWcf1Ucy+MKCawetBpCng Pbjlo9xf/NN+aZoGzlNlzv/OzxP7uOQ+2Yorze0vbDZAQ/ZWGgfDFctlzD+bjNC0 fW51sXNobm/HYNziIzzKvpcca6cteTiUW6j8PjpyVcvXNgy38u80tgoqWoc2p81/ hZaHV59CgntnoHm2ZcBvXoh6QO7XBmPCPcQdFCCnBhYh6ri/hil6xFia0FW5LEXm flzjoSc6pMHMXSxksW9osmQcUuq5eZE3YpiikB1XgpiShTCk8c8GXPIsCg9muf58 n4tvoPkGB/lzLvXI2A8/LqoLi5VnQ/+EIHH4qOzBB3GzxlGLCUzbo3ZfZq3gMqJL 6pk7dEIc2qEqjHNCV9mMrvE5vhfIOXr5YwSC07EuFQd48GYGkeGJ0+T1eosoGoIR Aa74+5dzoB+8oON/K14m0yKyGqnPN7yX2lvOvhq+uoYwgdqvybYUvG6UUqe81Fo0 7Bk3usu4LQX6hdyhkx00LiHQhmeHtBt4JTLA58FllO1rBGiGezrexfZwcJnPy6U0 62O6J/4LdlDv1DhuZeivMVoSVhgn1dMSSsOrfJ4L6Oc4EBlPhBKHAmqxidPyCYQv 3Xt7jk/0d/gpcjGPYGYRE757SGe9HMrf8wQD36xvblydnUVwHHDPFf07hoX72yY8 QJ9grNPpNwesxAYgVuuU =FPIv -----END PGP SIGNATURE-----