You cannot use the SystemVerilog backend with Yosys because Yosys does not support much of the SystemVerilog spec. That is why we created the Yosys backend ...
Before we go too far down this route, please put together a minimal example which demonstrates the issue (possibly creating a GitHub repo with your code) and provide step-by-step instructions on how we can reproduce the issue from scratch.
> On Aug 4, 2020, at 11:44 PM, Jiangqiu Shen <
qiuqi...@gmail.com> wrote:
>
> Ok.. I was using the Yosys backend and I failed , then I changed to SystemVerilog backend, the I post the result of systemVerilog. Now the error code for Yosys result was:
>
> always_comb begin : up_rf_read
> for ( __loopvar__up_rf_read_i = 1'd0; __loopvar__up_rf_read_i < 1'd1; __loopvar__up_rf_read_i = __loopvar__up_rf_read_i + 1'd1 )
> rdata[1'(__loopvar__up_rf_read_i)] = regs[raddr[1'(__loopvar__up_rf_read_i)]];
> end
>