We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MCVE:
from nmigen import * from nmigen.back import verilog, rtlil class Good(Elaboratable): def elaborate(self, platform): m = Module() s = Signal(reset=1) m.submodules.ins = ins = Instance("GOOD", i_in=s, o_out=s, ) return m class Bad(Elaboratable): def elaborate(self, platform): m = Module() s = Signal(reset=1) m.submodules.ins = ins = Instance("BAD", o_out=s, i_in=s, ) return m def main(): print(rtlil.convert(Bad(), name="bad")) print(rtlil.convert(Good(), name="good")) if __name__ == "__main__": main()
Output:
attribute \generator "nMigen" attribute \top 1 attribute \nmigen.hierarchy "bad" module \bad attribute \src "toto.py:20" wire width 1 \s cell \BAD \ins connect \out \s connect \in \s end connect \s 1'1 # <<<< ?? end attribute \generator "nMigen" attribute \top 1 attribute \nmigen.hierarchy "good" module \good attribute \src "toto.py:10" wire width 1 \s cell \GOOD \ins connect \in \s connect \out \s end end
The text was updated successfully, but these errors were encountered:
Good catch!
Sorry, something went wrong.
56bb42a
No branches or pull requests
MCVE:
Output:
The text was updated successfully, but these errors were encountered: