@@ -19,7 +19,10 @@ def __init__(self, *, bitwidth, fraction_bits, no_cores, test=False):
1919 # I/O
2020 self .command_stream_in = StreamInterface (name = "command_stream" )
2121 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 )
2326
2427 def elaborate (self , platform : Platform ) -> Module :
2528 m = Module ()
@@ -103,10 +106,10 @@ def elaborate(self, platform: Platform) -> Module:
103106 start = Array ([Signal ( name = f"start_{ n } " ) for n in range (no_cores )])
104107 xs = Array ([Signal (signed (bitwidth ), name = f"x_{ n } " ) for n in range (no_cores )])
105108 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 )])
108111
109- m .d .comb += self .busy .eq (~ Cat (idle ))
112+ m .d .comb += self .busy_out .eq (~ Cat (idle ))
110113
111114 # result collector signals
112115 done = Array ([Signal ( name = f"done_{ n } " ) for n in range (no_cores )])
@@ -210,14 +213,18 @@ def elaborate(self, platform: Platform) -> Module:
210213
211214 pixel_out = self .pixel_stream_out
212215 result_iterations = Signal (32 )
213- result_color = Signal (24 )
214216 result_pixel_x = Signal (16 )
215217 result_pixel_y = Signal (16 )
216218 result_escape = Signal ()
217219 result_maxed = Signal ()
218220 send_byte = Signal (8 )
219221 first_result_sent = Signal ()
220222
223+ m .d .comb += [
224+ self .result_x_out .eq (result_pixel_x ),
225+ self .result_y_out .eq (result_pixel_y ),
226+ ]
227+
221228 # result collector FSM
222229 with m .FSM (name = "result_collector" ) as fsm :
223230 with m .State ("WAIT" ):
0 commit comments