diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-05-11 21:46:35 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-05-11 21:58:21 +0200 |
commit | dae00e1d8301aae25f3432ca12995c9a3b380679 (patch) | |
tree | b55a32f53afa4611a6c3a1ef824b2b22b95dcc2e /tests/bram | |
parent | 42348cddd9218f198e93bc11909e7b118a71c9ba (diff) | |
download | yosys-dae00e1d8301aae25f3432ca12995c9a3b380679.tar.gz yosys-dae00e1d8301aae25f3432ca12995c9a3b380679.tar.bz2 yosys-dae00e1d8301aae25f3432ca12995c9a3b380679.zip |
changed file() to open() in python scripts
Diffstat (limited to 'tests/bram')
-rw-r--r-- | tests/bram/generate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/bram/generate.py b/tests/bram/generate.py index 2adfdcfb0..766157eb3 100644 --- a/tests/bram/generate.py +++ b/tests/bram/generate.py @@ -250,10 +250,10 @@ print("Rng seed: %d" % seed) random.seed(seed) for k1 in range(5): - dsc_f = file("temp/brams_%02d.txt" % k1, "w") - sim_f = file("temp/brams_%02d.v" % k1, "w") - ref_f = file("temp/brams_%02d_ref.v" % k1, "w") - tb_f = file("temp/brams_%02d_tb.v" % k1, "w") + dsc_f = open("temp/brams_%02d.txt" % k1, "w") + sim_f = open("temp/brams_%02d.v" % k1, "w") + ref_f = open("temp/brams_%02d_ref.v" % k1, "w") + tb_f = open("temp/brams_%02d_tb.v" % k1, "w") for f in [sim_f, ref_f, tb_f]: print("`timescale 1 ns / 1 ns", file=f) |