aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bram
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-01-04 13:14:30 +0100
committerClifford Wolf <clifford@clifford.at>2015-01-04 13:14:30 +0100
commitdaae35319be6c8f8905f25826a8f5960cdfeda20 (patch)
tree696228f00339500407b2738af096c609ea19d7e4 /tests/bram
parent5d631f0ea74dc2507436cf315d13446e35c62cc3 (diff)
downloadyosys-daae35319be6c8f8905f25826a8f5960cdfeda20.tar.gz
yosys-daae35319be6c8f8905f25826a8f5960cdfeda20.tar.bz2
yosys-daae35319be6c8f8905f25826a8f5960cdfeda20.zip
Added memory_bram "shuffle_enable" feature
Diffstat (limited to 'tests/bram')
-rw-r--r--tests/bram/generate.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bram/generate.py b/tests/bram/generate.py
index 03f2555dc..4bf3a9541 100644
--- a/tests/bram/generate.py
+++ b/tests/bram/generate.py
@@ -68,6 +68,10 @@ def create_bram(dsc_f, sim_f, ref_f, tb_f, k1, k2, or_next):
print(" clkpol %s" % " ".join(["%d" % i for i in clkpol]), file=dsc_f)
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]
+ if len(non_zero_enables):
+ print(" shuffle_enable %d" % random.choice(non_zero_enables), file=dsc_f)
if or_next:
print(" or_next_if_better", file=dsc_f)
print("endmatch", file=dsc_f)