# Enforce use of SystemVerilog (Quartus does not support global parameters in Verilog)
if language == "verilog":
language = "systemverilog"
- qsf_contents += "set_global_assignment -name "+language.upper()+"_FILE " + filename.replace("\\","/") + "\n"
+ qsf_contents += "set_global_assignment -name "+ language.upper() + "_FILE " + filename.replace("\\", "/") + "\n"
for path in vincpaths:
- qsf_contents += "set_global_assignment -name SEARCH_PATH " + path.replace("\\","/") + "\n"
+ qsf_contents += "set_global_assignment -name SEARCH_PATH " + path.replace("\\", "/") + "\n"
qsf_contents += _build_qsf(named_sc, named_pc)
qsf_contents += "set_global_assignment -name DEVICE " + device
Subsignal("cas_n", Pins("L1")),
Subsignal("we_n", Pins("C2")),
Subsignal("dq", Pins("G2 G1 L8 K5 K2 J2 J1 R7 T4 T2 T3 R3 R5 P3 N3 K1")),
- Subsignal("dm", Pins("R6","T5")),
+ Subsignal("dm", Pins("R6 T5")),
IOStandard("3.3-V LVTTL")
),
build_script_file = "build_" + build_name + ".sh"
tools.write_to_file(build_script_file, build_script_contents, force_unix=True)
- _build_tb(platform, vns, serial, os.path.join("..", sim_path,"dut_tb.cpp"))
+ _build_tb(platform, vns, serial, os.path.join("..", sim_path, "dut_tb.cpp"))
if verbose:
r = subprocess.call(["bash", build_script_file])
else:
return [_Cell(k, v) for k, v in cell_dict.items()]
-def _generate_instances(f,ns):
+def _generate_instances(f, ns):
instances = []
for special in f.specials:
if isinstance(special, Instance):
cases = {}
for i in range(n):
switch = []
- for j in reversed(range(i+1,i+n)):
+ for j in reversed(range(i+1, i+n)):
t = j % n
switch = [
If(self.request[t],