build/osfpga: Add macros dict and use it for now to derivate macro from device.
This commit is contained in:
parent
c2e9125d05
commit
5bdc0cbc63
|
@ -33,8 +33,9 @@ def _build_tcl(name, device, files, build_name):
|
||||||
tcl.append(f"create_design {build_name}")
|
tcl.append(f"create_design {build_name}")
|
||||||
|
|
||||||
# Set Device.
|
# Set Device.
|
||||||
# TODO (Use Macro for now).
|
# FIXME: Directly pass Devices instead of Macro when possible.
|
||||||
tcl.append("set_macro P1=10 P2=20")
|
macro = {"test": "P1=10 P2=20"}[device]
|
||||||
|
tcl.append(f"set_macro {macro}")
|
||||||
|
|
||||||
# Add Include Path.
|
# Add Include Path.
|
||||||
# TODO.
|
# TODO.
|
||||||
|
|
Loading…
Reference in New Issue