FYI, Yosys synth_ice40 with default settings will infer a sync reset fromhttps://pastebin.com/HQFnvRcs
-
-
Using & instead of ?: should prevent this
1 reply 0 retweets 0 likes -
Replying to @fpga_dave @OlofKindgren
That would be *really* important to know! Can you please test that? (Anything that makes behavioural vs. structural implementations differ is very significant.)
1 reply 1 retweet 0 likes -
Replying to @elaforest @OlofKindgren
Replacing the ?: with out <= in & ~{WORD_WIDTH{annul}}; means that Yosys no longer infers a sync reset, but Vivado still does infer the reset (don't have Quartus installed)
2 replies 1 retweet 3 likes -
Replying to @fpga_dave @OlofKindgren
Wow. I did not expect that. Thank you for testing. I wonder what
@oe1cxw would think of that difference?1 reply 0 retweets 0 likes -
This is definitely deliberate in how the pass that extracts iCE40 (and the equivalent pass I wrote for ECP5) sync SRs. It maps muxes selecting between a signal and 0/1 to reset or set; but not ANDNOT or OR gates.
3 replies 0 retweets 3 likes -
Replying to @fpga_dave @elaforest and
It always bothered me that verilog style differences on otherwise equivalent logic guide the mapping. If the Verilog is generated from a higher level description, “style” assumptions don’t hold. I’d bypass Verilog if I could find a portable way to do it.
3 replies 1 retweet 2 likes -
Replying to @iamtommythorn @fpga_dave and
Yes, exactly that. And it's one of my main reasons for being sceptic towards new HDL as long as they still pass through verilog. I think a standard library with tech-specific backends is a better short-time solution
1 reply 1 retweet 4 likes -
Replying to @OlofKindgren @symbiotic_eda and
Good thing nMigen doesn't pass through Verilog :)
4 replies 1 retweet 7 likes -
Replying to @whitequark @symbiotic_eda and
Yes, nmigen is a very interesting PoC and the way I hope we will go in the future. Now, I'm not qualified to judge which is the better IR but I would love to see RTLIL<=> FIRRTL <=> CoreIR converters as I don't think people will agree on one IR anytime soon
1 reply 0 retweets 1 like
Yosys can write FIRRTL. And the FIRRTL tools can write Verilog, which Yosys can read. CoreIR is using Yosys as Verilog front-end. They have a Yosys-plugin for converting RTLIL to CoreIR.
-
-
Replying to @oe1cxw @whitequark and
Oh....then I guess we're pretty much done. Just VHDL living in isolation
0 replies 0 retweets 4 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.