01x-clb/top.py: Added CLBN increment from env var

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2019-01-17 15:31:50 +01:00
parent 3f2305c542
commit 8b66865106
9 changed files with 44 additions and 17 deletions

View File

@ -1,11 +1,14 @@
import random
import os, random
random.seed(0)
from prjxray import util
from prjxray import verilog
from prims import *
CLBN = 600
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 600 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))
f = open("top.txt", "w")

View File

@ -1,9 +1,12 @@
import random
import os, random
random.seed(0)
from prjxray import util
from prjxray import verilog
CLBN = 40
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 40 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))

View File

@ -1,9 +1,12 @@
import random
import os, random
random.seed(0)
from prjxray import util
from prjxray import verilog
CLBN = 400
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 400 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))
@ -107,7 +110,7 @@ module clb_NCY0_O5 (input clk, input [7:0] din, output [7:0] dout);
always @(*) begin
s = din[7:4];
s[N] = o6;
di = {din[3:0]};
di[N] = o5;
end

View File

@ -5,7 +5,10 @@ import re
from prjxray import util
from prjxray import verilog
CLBN = 600
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 600 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))

View File

@ -1,9 +1,12 @@
import random
import os, random
random.seed(0)
from prjxray import util
from prjxray import verilog
CLBN = 400
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 400 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))

View File

@ -1,9 +1,12 @@
import random
import os, random
random.seed(0)
from prjxray import util
from prjxray import verilog
CLBN = 400
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 400 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))

View File

@ -5,7 +5,10 @@ import re
from prjxray import verilog
from prjxray import util
CLBN = 400
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 400 + int(INCREMENT)
SLICEX, SLICEY = util.site_xy_minmax([
'SLICEL',
'SLICEM',

View File

@ -15,12 +15,15 @@ SRLC32E_N
Note: LUT6 was added to try to simplify reduction, although it might not be needed
'''
import random
import os, random
random.seed(0)
from prjxray import util
from prjxray import verilog
CLBN = 50
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 50 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))

View File

@ -1,9 +1,12 @@
import random
import os, random
random.seed(0)
from prjxray import util
from prjxray import verilog
CLBN = 50
# INCREMENT is the amount of additional CLBN to be instantiated in the design.
# This makes the fuzzer compilation more robust against failures.
INCREMENT = os.getenv('CLBN', 0)
CLBN = 50 + int(INCREMENT)
print('//Requested CLBs: %s' % str(CLBN))