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