recursive test of get_net_connections
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 21 Apr 2020 18:07:06 +0000 (18:07 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 21 Apr 2020 18:07:06 +0000 (18:07 +0000)
experiments7/doAlu16.py

index 71d465b59d4bc4a0e38fc22fe8a89b1e93d687e3..19bf8f74be69dbecdf0d5d6649f8cc27aa20069b 100755 (executable)
@@ -157,8 +157,8 @@ class ALU16(Module):
 
             self.create_pins()
 
-        find = self.get_net_connections(['add_o(0)', 'sub_o(0)', 'o(0)'],
-                                        ['clk', 'rst'])
+        find = self.get_net_connections(['add_o(1)', 'sub_o(1)', 'o(1)'],
+                                        ['clk', 'rst', 'op'])
         print (find)
         sys.exit(0)
         find = self.get_net_connections(['o_next(0)'],
@@ -224,8 +224,8 @@ class ALU16(Module):
         if search_more:
             print("more", search_more)
             new_found = find + already_found
-            #more = self.get_net_connections(search_more, new_found)
-            #res.update(more)
+            more = self.get_net_connections(search_more, new_found)
+            res.update(more)
         return res