mirror of https://github.com/openXC7/prjxray.git
Make 018 more robust by selectively disabling inputs and outputs.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
f1eabc62b7
commit
5ad24eb6cd
|
|
@ -126,9 +126,15 @@ for clbi, loc in zip(range(CLBN), slices):
|
|||
|
||||
print(' %s' % module)
|
||||
print(' #(.LOC("%s")%s)' % (loc, params))
|
||||
sel = random.random()
|
||||
if sel > .15:
|
||||
print(
|
||||
' clb_%d (.clk(clk), .din(din[ %d +: 8]), .dout(dout[ %d +: 8]));'
|
||||
% (clbi, 8 * clbi, 8 * clbi))
|
||||
else:
|
||||
print(
|
||||
" clb_%d (.clk(clk), .din({8{1'b1}}), .dout());" %
|
||||
(clbi, ))
|
||||
|
||||
f.write('%s,%s%s\n' % (module, loc, cparams))
|
||||
f.close()
|
||||
|
|
|
|||
Loading…
Reference in New Issue