mirror of https://github.com/openXC7/prjxray.git
01x-clb/top.py: Added CLBN increment from env var
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
parent
3f2305c542
commit
8b66865106
|
|
@ -1,11 +1,14 @@
|
||||||
import random
|
import os, random
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
from prjxray import verilog
|
||||||
|
|
||||||
from prims import *
|
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))
|
print('//Requested CLBs: %s' % str(CLBN))
|
||||||
|
|
||||||
f = open("top.txt", "w")
|
f = open("top.txt", "w")
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
import random
|
import os, random
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
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))
|
print('//Requested CLBs: %s' % str(CLBN))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
import random
|
import os, random
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
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))
|
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
|
always @(*) begin
|
||||||
s = din[7:4];
|
s = din[7:4];
|
||||||
s[N] = o6;
|
s[N] = o6;
|
||||||
|
|
||||||
di = {din[3:0]};
|
di = {din[3:0]};
|
||||||
di[N] = o5;
|
di[N] = o5;
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,10 @@ import re
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
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))
|
print('//Requested CLBs: %s' % str(CLBN))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
import random
|
import os, random
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
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))
|
print('//Requested CLBs: %s' % str(CLBN))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
import random
|
import os, random
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
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))
|
print('//Requested CLBs: %s' % str(CLBN))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,10 @@ import re
|
||||||
from prjxray import verilog
|
from prjxray import verilog
|
||||||
from prjxray import util
|
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([
|
SLICEX, SLICEY = util.site_xy_minmax([
|
||||||
'SLICEL',
|
'SLICEL',
|
||||||
'SLICEM',
|
'SLICEM',
|
||||||
|
|
|
||||||
|
|
@ -15,12 +15,15 @@ SRLC32E_N
|
||||||
Note: LUT6 was added to try to simplify reduction, although it might not be needed
|
Note: LUT6 was added to try to simplify reduction, although it might not be needed
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import random
|
import os, random
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
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))
|
print('//Requested CLBs: %s' % str(CLBN))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
import random
|
import os, random
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
from prjxray import util
|
from prjxray import util
|
||||||
from prjxray import verilog
|
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))
|
print('//Requested CLBs: %s' % str(CLBN))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue