Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electroniceel/bd8802a7ed913652d266822ad236a394 to your computer and use it in GitHub Desktop.
Save electroniceel/bd8802a7ed913652d266822ad236a394 to your computer and use it in GitHub Desktop.
glasgow selftest error
[gerd@rdx software]$ ~/.local/bin/glasgow run selftest pins-ext
Traceback (most recent call last):
File "/home/gerd/.local/bin/glasgow", line 11, in <module>
load_entry_point('glasgow', 'console_scripts', 'glasgow')()
File "/home/gerd/opensource/Glasgow/software/glasgow/cli.py", line 787, in main
exit(loop.run_until_complete(_main()))
File "/usr/lib64/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/home/gerd/opensource/Glasgow/software/glasgow/cli.py", line 477, in _main
plan = target.build_plan()
File "/home/gerd/opensource/Glasgow/software/glasgow/target/hardware.py", line 88, in build_plan
return GlasgowBuildPlan(self.platform.prepare(self, **kwargs))
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/build/plat.py", line 98, in prepare
fragment = Fragment.get(elaboratable, self)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/hdl/ir.py", line 62, in get
obj = obj.elaborate(platform)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/hdl/dsl.py", line 469, in elaborate
fragment.add_subfragment(Fragment.get(submodule, platform), None)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/hdl/ir.py", line 62, in get
obj = obj.elaborate(platform)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/hdl/dsl.py", line 469, in elaborate
fragment.add_subfragment(Fragment.get(submodule, platform), None)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/hdl/ir.py", line 62, in get
obj = obj.elaborate(platform)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/compat/fhdl/specials.py", line 47, in elaborate
return platform.get_input_output(pin, self.target, attrs={}, invert=None)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/vendor/lattice_ice40.py", line 343, in get_input_output
self._get_io_buffer(m, pin, port, attrs, i_invert=invert, o_invert=invert)
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/vendor/lattice_ice40.py", line 295, in _get_io_buffer
io_args.append(("o", "D_IN_0", pin_i[bit]))
File "/home/gerd/.local/lib/python3.7/site-packages/nmigen-98278a0_dirty-py3.7.egg/nmigen/hdl/ast.py", line 117, in __getitem__
raise IndexError("Cannot index {} bits into {}-bit value".format(key, n))
IndexError: Cannot index 1 bits into 1-bit value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment