@@ -283,7 +283,7 @@ def sim_test():
283283
284284 sim = Simulator (dut )
285285 sim .add_testbench (sim_test )
286- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
286+ with sim .write_vcd (vcd_file = "test.vcd" ):
287287 sim .run ()
288288
289289 def test_addr_translate (self ):
@@ -394,7 +394,7 @@ def sim_test():
394394 m .submodules += dut , loop_1 , loop_2 , loop_3 , loop_4
395395 sim = Simulator (m )
396396 sim .add_testbench (sim_test )
397- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
397+ with sim .write_vcd (vcd_file = "test.vcd" ):
398398 sim .run ()
399399
400400 def test_coarse_granularity (self ):
@@ -416,7 +416,7 @@ def sim_test():
416416
417417 sim = Simulator (dut )
418418 sim .add_testbench (sim_test )
419- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
419+ with sim .write_vcd (vcd_file = "test.vcd" ):
420420 sim .run ()
421421
422422
@@ -534,7 +534,7 @@ def sim_test():
534534 sim = Simulator (dut )
535535 sim .add_clock (1e-6 )
536536 sim .add_testbench (sim_test )
537- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
537+ with sim .write_vcd (vcd_file = "test.vcd" ):
538538 sim .run ()
539539
540540 def test_lock (self ):
@@ -587,7 +587,7 @@ def sim_test():
587587 sim = Simulator (dut )
588588 sim .add_clock (1e-6 )
589589 sim .add_testbench (sim_test )
590- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
590+ with sim .write_vcd (vcd_file = "test.vcd" ):
591591 sim .run ()
592592
593593 def test_stall (self ):
@@ -613,7 +613,7 @@ def sim_test():
613613
614614 sim = Simulator (dut )
615615 sim .add_testbench (sim_test )
616- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
616+ with sim .write_vcd (vcd_file = "test.vcd" ):
617617 sim .run ()
618618
619619 def test_stall_compat (self ):
@@ -638,7 +638,7 @@ def sim_test():
638638
639639 sim = Simulator (dut )
640640 sim .add_testbench (sim_test )
641- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
641+ with sim .write_vcd (vcd_file = "test.vcd" ):
642642 sim .run ()
643643
644644 def test_roundrobin (self ):
@@ -700,5 +700,5 @@ def sim_test():
700700 sim = Simulator (dut )
701701 sim .add_clock (1e-6 )
702702 sim .add_testbench (sim_test )
703- with sim .write_vcd (vcd_file = open ( "test.vcd" , "w" ) ):
703+ with sim .write_vcd (vcd_file = "test.vcd" ):
704704 sim .run ()
0 commit comments