@@ -19,7 +19,10 @@ def __init__(self, *, bitwidth, fraction_bits, no_cores, test=False):
19
19
# I/O
20
20
self .command_stream_in = StreamInterface (name = "command_stream" )
21
21
self .pixel_stream_out = StreamInterface (name = "pixel_stream" )
22
- self .busy = Signal (no_cores )
22
+ self .busy_out = Signal (no_cores )
23
+
24
+ self .result_x_out = Signal (16 )
25
+ self .result_y_out = Signal (16 )
23
26
24
27
def elaborate (self , platform : Platform ) -> Module :
25
28
m = Module ()
@@ -103,10 +106,10 @@ def elaborate(self, platform: Platform) -> Module:
103
106
start = Array ([Signal ( name = f"start_{ n } " ) for n in range (no_cores )])
104
107
xs = Array ([Signal (signed (bitwidth ), name = f"x_{ n } " ) for n in range (no_cores )])
105
108
ys = Array ([Signal (signed (bitwidth ), name = f"y_{ n } " ) for n in range (no_cores )])
106
- pixel_x = Array ([Signal (signed (bitwidth ), name = f"pixelx_{ n } " ) for n in range (no_cores )])
107
- pixel_y = Array ([Signal (signed (bitwidth ), name = f"pixely_{ n } " ) for n in range (no_cores )])
109
+ pixel_x = Array ([Signal (signed (bitwidth ), name = f"pixelx_{ n } " ) for n in range (no_cores )])
110
+ pixel_y = Array ([Signal (signed (bitwidth ), name = f"pixely_{ n } " ) for n in range (no_cores )])
108
111
109
- m .d .comb += self .busy .eq (~ Cat (idle ))
112
+ m .d .comb += self .busy_out .eq (~ Cat (idle ))
110
113
111
114
# result collector signals
112
115
done = Array ([Signal ( name = f"done_{ n } " ) for n in range (no_cores )])
@@ -210,14 +213,18 @@ def elaborate(self, platform: Platform) -> Module:
210
213
211
214
pixel_out = self .pixel_stream_out
212
215
result_iterations = Signal (32 )
213
- result_color = Signal (24 )
214
216
result_pixel_x = Signal (16 )
215
217
result_pixel_y = Signal (16 )
216
218
result_escape = Signal ()
217
219
result_maxed = Signal ()
218
220
send_byte = Signal (8 )
219
221
first_result_sent = Signal ()
220
222
223
+ m .d .comb += [
224
+ self .result_x_out .eq (result_pixel_x ),
225
+ self .result_y_out .eq (result_pixel_y ),
226
+ ]
227
+
221
228
# result collector FSM
222
229
with m .FSM (name = "result_collector" ) as fsm :
223
230
with m .State ("WAIT" ):
0 commit comments