mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
12 lines
269 B
Python
12 lines
269 B
Python
from migen.fhdl.structure import *
|
|
from migen.fhdl.specials import Tristate
|
|
from migen.fhdl import verilog
|
|
|
|
n = 6
|
|
pad = Signal(n)
|
|
o = Signal(n)
|
|
oe = Signal()
|
|
i = Signal(n)
|
|
|
|
f = Fragment(specials={Tristate(pad, o, oe, i)})
|
|
print(verilog.convert(f, ios={pad, o, oe, i}))
|