@@ -7,46 +7,46 @@ def __init__(self):
7
7
self .dbus = d = wishbone .Interface ()
8
8
self .interrupt = Signal (32 )
9
9
self .ext_break = Signal ()
10
+ self ._i_adr_o = Signal (32 )
11
+ self ._d_adr_o = Signal (32 )
10
12
self ._inst = Instance ("lm32_top" ,
11
13
Instance .ClockPort ("clk_i" ),
12
14
Instance .ResetPort ("rst_i" ),
13
15
14
16
Instance .Input ("interrupt" , self .interrupt ),
15
17
#Instance.Input("ext_break", self.ext_break),
16
18
17
- Instance .Output ("I_ADR_O" , 32 ),
19
+ Instance .Output ("I_ADR_O" , self . _i_adr_o ),
18
20
Instance .Output ("I_DAT_O" , i .dat_w ),
19
21
Instance .Output ("I_SEL_O" , i .sel ),
20
22
Instance .Output ("I_CYC_O" , i .cyc ),
21
23
Instance .Output ("I_STB_O" , i .stb ),
22
24
Instance .Output ("I_WE_O" , i .we ),
23
25
Instance .Output ("I_CTI_O" , i .cti ),
24
- Instance .Output ("I_LOCK_O" , 1 ),
26
+ Instance .Output ("I_LOCK_O" ),
25
27
Instance .Output ("I_BTE_O" , i .bte ),
26
28
Instance .Input ("I_DAT_I" , i .dat_r ),
27
29
Instance .Input ("I_ACK_I" , i .ack ),
28
30
Instance .Input ("I_ERR_I" , i .err ),
29
- Instance .Input ("I_RTY_I" , 1 ),
31
+ Instance .Input ("I_RTY_I" , 0 ),
30
32
31
- Instance .Output ("D_ADR_O" , 32 ),
33
+ Instance .Output ("D_ADR_O" , self . _d_adr_o ),
32
34
Instance .Output ("D_DAT_O" , d .dat_w ),
33
35
Instance .Output ("D_SEL_O" , d .sel ),
34
36
Instance .Output ("D_CYC_O" , d .cyc ),
35
37
Instance .Output ("D_STB_O" , d .stb ),
36
38
Instance .Output ("D_WE_O" , d .we ),
37
39
Instance .Output ("D_CTI_O" , d .cti ),
38
- Instance .Output ("D_LOCK_O" , 1 ),
40
+ Instance .Output ("D_LOCK_O" ),
39
41
Instance .Output ("D_BTE_O" , d .bte ),
40
42
Instance .Input ("D_DAT_I" , d .dat_r ),
41
43
Instance .Input ("D_ACK_I" , d .ack ),
42
44
Instance .Input ("D_ERR_I" , d .err ),
43
- Instance .Input ("D_RTY_I" , 1 ))
45
+ Instance .Input ("D_RTY_I" , 0 ))
44
46
45
47
def get_fragment (self ):
46
48
comb = [
47
- self ._inst .get_io ("I_RTY_I" ).eq (0 ),
48
- self ._inst .get_io ("D_RTY_I" ).eq (0 ),
49
- self .ibus .adr .eq (self ._inst .get_io ("I_ADR_O" )[2 :]),
50
- self .dbus .adr .eq (self ._inst .get_io ("D_ADR_O" )[2 :])
49
+ self .ibus .adr .eq (self ._i_adr_o [2 :]),
50
+ self .dbus .adr .eq (self ._d_adr_o [2 :])
51
51
]
52
52
return Fragment (comb = comb , instances = [self ._inst ])
0 commit comments