Closed flaviens closed 7 months ago
I have an idea what's going on here, but I'll need some time. I intend to take a closer look this weekend.
The $clog2
was actually unrelated. sv2v saw a pattern field name and thought it referred to a localparam defined further down due some extra indirection. This is closely related to #255. I've added logic to distinguish the typenames in struct patterns in a4639fa9ef21fdc8d1a04632a1698fbb5eecf9b3. Please let me know if it works for you. The converted output seems right to me, but I now believe you'll run into an unrelated Yosys limitation: YosysHQ/yosys#668.
This test case was very useful. Thank you very much for filing this issue!
Hi Zach, thank you so much for your reactivity! This indeed seems to resolve the problem! :heart: As you mentioned, we run into https://github.com/YosysHQ/yosys/issues/668, although for this specific purpose, it is easier to adapt the source code syntax. Thanks!
Hi there! I'm trying to pass the EL2 core through Yosys. sv2v works without error, but yosys is then complaining about
$clog2
of a parameter. It seems that the parameter disappears during sv2v, but I'm not very confident about that. I tried a slightly older sv2v version (10-29) and the newest, without it making any difference.Here is a pickle ready to be consumed by sv2v. el2_pickle.zip
Could you please have a quick look? I'm at your disposal, may you have any question. Thank you very much! Flavien