#NEWLINE# def elaborate_logic( s ) : #NEWLINE# #INDENT# s . wire_rd = [ Wire ( 4 ) for x in range ( 2 ) ] #NEWLINE# s . wire_wr = [ Wire ( 4 ) for x in range ( 2 ) ] #NEWLINE# for i in range ( 2 ) : #NEWLINE# #INDENT# s . connect ( s . in_ [ i ] , s . wire_rd [ i ] ) #NEWLINE# s . connect ( x . out [ i ] , s . wire_wr [ i ] ) #NEWLINE# #UNINDENT# @ s . combinational #NEWLINE# def logic( ) : #NEWLINE# #INDENT# for i in range ( 2 ) : #NEWLINE# #INDENT# s . wire_wr [ i ] . value = s . wire_rd [ i ]