Add some determinism to the randomness in 018.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2020-09-11 10:51:21 -07:00
parent 8f2456e4bd
commit f1eabc62b7
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
N := 4
N := 6
SLICEL ?= N
include ../clb.mk

View File

@ -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