diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-01-18 19:05:29 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-01-18 19:05:29 +0100 |
commit | 8d295730e568421d3dc5b0779bd90d826e874254 (patch) | |
tree | ca5acff688717ec467e1988f9327aa795f84515b /tests/bram/generate.py | |
parent | 694cc01f1de8e0d7db7c5e03cb93796430c6ca5b (diff) | |
download | yosys-8d295730e568421d3dc5b0779bd90d826e874254.tar.gz yosys-8d295730e568421d3dc5b0779bd90d826e874254.tar.bz2 yosys-8d295730e568421d3dc5b0779bd90d826e874254.zip |
Refactoring of memory_bram and xilinx brams
Diffstat (limited to 'tests/bram/generate.py')
-rw-r--r-- | tests/bram/generate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bram/generate.py b/tests/bram/generate.py index 4bf3a9541..2adfdcfb0 100644 --- a/tests/bram/generate.py +++ b/tests/bram/generate.py @@ -69,9 +69,9 @@ def create_bram(dsc_f, sim_f, ref_f, tb_f, k1, k2, or_next): print("endbram", file=dsc_f) print("match bram_%02d_%02d" % (k1, k2), file=dsc_f) if random.randrange(2): - non_zero_enables = [i for i in enable if i] + non_zero_enables = [chr(ord('A') + i) for i in range(len(enable)) if enable[i]] if len(non_zero_enables): - print(" shuffle_enable %d" % random.choice(non_zero_enables), file=dsc_f) + print(" shuffle_enable %c" % random.choice(non_zero_enables), file=dsc_f) if or_next: print(" or_next_if_better", file=dsc_f) print("endmatch", file=dsc_f) |