mirror of https://github.com/openXC7/prjxray.git
Add some determinism to the randomness in 018.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
8f2456e4bd
commit
f1eabc62b7
|
|
@ -5,7 +5,7 @@
|
|||
# https://opensource.org/licenses/ISC
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
N := 4
|
||||
N := 6
|
||||
SLICEL ?= N
|
||||
include ../clb.mk
|
||||
|
||||
|
|
|
|||
|
|
@ -50,14 +50,14 @@ verilog.top_harness(DIN_N, DOUT_N)
|
|||
|
||||
f = open('params.csv', 'w')
|
||||
f.write('module,loc,bela,belb,belc,beld\n')
|
||||
slices = gen_slicems()
|
||||
slices = sorted(gen_slicems())
|
||||
random.shuffle(slices)
|
||||
|
||||
print(
|
||||
'module roi(input clk, input [%d:0] din, output [%d:0] dout);' %
|
||||
(DIN_N - 1, DOUT_N - 1))
|
||||
randluts = 0
|
||||
for clbi in range(CLBN):
|
||||
loc = next(slices)
|
||||
|
||||
for clbi, loc in zip(range(CLBN), slices):
|
||||
params = ''
|
||||
cparams = ''
|
||||
# Multi module
|
||||
|
|
|
|||
Loading…
Reference in New Issue