#NEWLINE# def mkLed( ) : #NEWLINE# #INDENT# modules = from_verilog . read_verilog_module_str ( led_v ) #NEWLINE# m = modules [ 'blinkled' ] #NEWLINE# m . name = 'modified_led' #NEWLINE# enable = m . Input ( 'enable' ) #NEWLINE# busy = m . Output ( 'busy' ) #NEWLINE# old_statement = m . always [ 0 ] . statement [ 0 ] . false_statement #NEWLINE# m . always [ 0 ] . statement [ 0 ] . false_statement = If ( enable ) ( * old_statement ) #NEWLINE# m . Assign ( busy ( ( m . variable [ 'count' ] < 1023 ) ) ) #NEWLINE# return m