same thing: first build libresoc.v and copy it to the libresoc/ directory
-./versa_ecp5.py --sys-clk-freq=55e6 --build
+./versa_ecp5.py --sys-clk-freq=55e6 --build --yosys-nowidelut
./versa_ecp5.py --sys-clk-freq=55e6 --load
import litex_boards.targets.versa_ecp5 as versa_ecp5
import litex_boards.targets.ulx3s as ulx3s
+from litex.build.lattice.trellis import trellis_args, trellis_argdict
from litex.soc.integration.soc_sdram import (soc_sdram_args,
soc_sdram_argdict)
parser.add_argument("--fpga", default="versa_ecp5", help="FPGA target " \
"to build for/load to")
parser.add_argument("--load-from", default=None, help="svf to load, disables build")
+ parser.add_argument("--toolchain", default="trellis", help="Gateware toolchain to use, trellis (default) or diamond")
builder_args(parser)
+ trellis_args(parser)
soc_sdram_args(parser)
args = parser.parse_args()
if args.load_from == None:
builder = Builder(soc, **builder_argdict(args))
+ builder_kargs = trellis_argdict(args) \
+ if args.toolchain == "trellis" else {}
builder.build(run=args.build)
if args.load: