YosysHQ / yosys

Yosys Open SYnthesis Suite
https://yosyshq.net/yosys/
ISC License
3.37k stars 874 forks source link

Seems like non used modules in yosys screw up place and routing in nextpnr. #1734

Closed joseluisquiroga closed 4 years ago

joseluisquiroga commented 4 years ago

I have created an small project to show the error.

https://github.com/messaging-cells/bug_synth_01

The expected behavior is to make OK when NS_SHOW_ERROR in https://github.com/messaging-cells/bug_synth_01/blob/master/rtl/test_bug_top.v is set to 1.

To reproduce:

daveshah1 commented 4 years ago

You aren't specifying a top module, and so an unused module is picked arbitrarily (if all modules are used then this will end up being the correct top module). Add -top test_9_top to synth_ice40.