Update heartbeat.py to check __name__ == '__main__'
This is necessary to avoid a multiprocessing bug on Windows.
import siliconcompiler # import python package
+
+def main():
chip = siliconcompiler.Chip() # create chip object
chip.set('source', 'heartbeat.v') # define list of source files
chip.set('design', 'heartbeat') # set top module
@@ -7,3 +9,6 @@ chip.target('asicflow_freepdk45') # load predefined target
chip.run() # run compilation
chip.summary() # print results summary
chip.show() # show layout file
+
+if __name__ == '__main__':
+ main()
