An error occurred when converting a RTL Module into Verilog.

29 views
Skip to first unread message

Victor P

unread,
Sep 12, 2020, 6:42:27 AM9/12/20
to pymtl-users
I tried to run the code below:

from ChecksumRTL import ChecksumRTL
from pymtl3.passes.backends.yosys import YosysTranslationPass
cksum = ChecksumRTL()
cksum.set_metadata(YosysTranslationPass.enable, True)
cksum.elaborate()
cksum.apply(YosysTranslationPass())
success = True

Which is trying to compile the RTL Checksum Module (Example 2) into yosys-compatible SystemVerilog.
This piece of code is  extracted from "cksum-translate" file.

The error:
捕获.PNG

What could be wrong?

Thanks.

Shunning Jiang

unread,
Sep 12, 2020, 12:16:17 PM9/12/20
to Victor P, pymtl-users
Hi Victor,

I doubt this is a python version issue. Which Python version are you using? Starting from either Python3.6 or 3.7 virtual environment seems to work fine for me. We haven't tested pymtl3 under python3.8 yet.

Shunning

--
You received this message because you are subscribed to the Google Groups "pymtl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pymtl-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pymtl-users/55567861-b9be-4d16-8dad-8d9d4502550dn%40googlegroups.com.


--

Shunning Jiang

Ph.D. Candidate 

Computer Systems Laboratory

School of Electrical and Computer Engineering

Cornell University

http://www.csl.cornell.edu/~shunning

Victor P

unread,
Sep 13, 2020, 8:39:07 PM9/13/20
to pymtl-users
Hi Shunning,

I am using Python 3.8.5.

Victor

Shunning Jiang

unread,
Sep 13, 2020, 8:42:31 PM9/13/20
to Victor P, pymtl-users
Can you try if Python 3.7 will work as a workaround for now? We will put the compatibility issue on our list.

Victor P

unread,
Sep 13, 2020, 8:49:38 PM9/13/20
to pymtl-users
Hi Shunning,

You were right, it was the problem caused by Python 3.8

Victor

On Sunday, September 13, 2020 at 12:16:17 AM UTC+8 Shunning Jiang wrote:
Reply all
Reply to author
Forward
0 new messages