'n_data_o[7:0]', 'n_valid_o', 'n_ready_i']),
         ]),
         ('debug', {'module': 'top'},
-         ['src1_count[7:0]', 'src2_count[7:0]', 'dest1_count[7:0]'])
+            ['src1_count[7:0]', 'src2_count[7:0]', 'dest1_count[7:0]'])]
 
-    ]
     write_gtkw(
         "test_compunit_fsm1.gtkw",
         "test_compunit_fsm1.vcd",
 def test_compunit_regspec2_fsm():
 
     inspec = [('INT', 'data', '0:15'),
-              ('INT', 'shift', '0:15'),
-              ]
-    outspec = [('INT', 'data', '0:15'),
-               ]
+              ('INT', 'shift', '0:15')]
+    outspec = [('INT', 'data', '0:15')]
 
     regspec = (inspec, outspec)
 
     inspec = [('INT', 'a', '0:15'),
               ('INT', 'b', '0:15'),
               ('INT', 'c', '0:15')]
-    outspec = [('INT', 'o', '0:15'),
-               ]
+    outspec = [('INT', 'o', '0:15')]
 
     regspec = (inspec, outspec)
 
             ('oper_i_None__insn_type', {'display': 'insn_type'}),
             ('oper_i_None__invert_in', {'display': 'invert_in'}),
             ('oper_i_None__imm_data__data[63:0]', {'display': 'data[63:0]'}),
-            ('oper_i_None__imm_data__imm_ok', {'display': 'imm_ok'}),
+            ('oper_i_None__imm_data__ok', {'display': 'imm_ok'}),
             ('oper_i_None__zero_a', {'display': 'zero_a'})]),
         ('operand 1 port', 'in', [
             ('cu_rd__rel_o[1:0]', {'bit': 1}),
             'cu_wr__rel_o', 'cu_wr__go_i', 'dest1_o[15:0]']),
         ('alu', {'module': 'top.cu.alu'}, [
             ('prev port', 'in', [
-                'op__insn_type', 'op__invert_i', 'a[15:0]', 'b[15:0]',
+                'op__insn_type', 'op__invert_in', 'a[15:0]', 'b[15:0]',
                 'valid_i', 'ready_o']),
             ('next port', 'out', [
                 'alu_o[15:0]', 'valid_o', 'ready_i'])]),
 
     inspec = [('INT', 'a', '0:15'),
               ('INT', 'b', '0:15')]
-    outspec = [('INT', 'o', '0:15'),
-               ]
+    outspec = [('INT', 'o', '0:15')]
 
     regspec = (inspec, outspec)