projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c3d1a
)
back.rtlil: accept any elaboratable, not just fragments.
author
whitequark
<cz@m-labs.hk>
Sat, 26 Jan 2019 16:11:29 +0000
(16:11 +0000)
committer
whitequark
<cz@m-labs.hk>
Sat, 26 Jan 2019 16:11:29 +0000
(16:11 +0000)
nmigen/back/rtlil.py
patch
|
blob
|
history
diff --git
a/nmigen/back/rtlil.py
b/nmigen/back/rtlil.py
index 4d78b8286e9cca9e5b579935212cebd32a2bb97a..f85fcea4135f151de0d4307f472dbc02c2453bbb 100644
(file)
--- a/
nmigen/back/rtlil.py
+++ b/
nmigen/back/rtlil.py
@@
-844,7
+844,7
@@
def convert_fragment(builder, fragment, name, top):
def convert(fragment, name="top", **kwargs):
- fragment =
fragment
.prepare(**kwargs)
+ fragment =
ir.Fragment.get(fragment, platform=None)
.prepare(**kwargs)
builder = _Builder()
convert_fragment(builder, fragment, name=name, top=True)
return str(builder)