1 from migen
.fhdl
import structure
as f
2 from migen
.bus
import wishbone
6 self
.ibus
= i
= wishbone
.Master("lm32i")
7 self
.dbus
= d
= wishbone
.Master("lm32d")
8 f
.declare_signal(self
, "interrupt", f
.BV(32))
9 f
.declare_signal(self
, "ext_break")
10 self
._inst
= f
.Instance("lm32_top",
11 [("I_ADR_O", i
.adr_o
),
18 ("I_LOCK_O", f
.BV(1)),
27 ("D_LOCK_O", f
.BV(1)),
28 ("D_BTE_O", d
.bte_o
)],
29 [("interrupt", self
.interrupt
),
30 #("ext_break", self.ext_break),
38 ("D_RTY_I", f
.BV(1))],
44 def get_fragment(self
):
46 f
.Assign(self
._inst
.ins
["I_RTY_I"], 0),
47 f
.Assign(self
._inst
.ins
["D_RTY_I"], 0)
49 return f
.Fragment(comb
=comb
, instances
=[self
._inst
])