Efinix: instance of dbparser class now in platform

This commit is contained in:
Franck Jullien 2021-09-28 18:06:23 +02:00
parent b2e09832e5
commit 45961f733b
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import os
from litex.build.generic_platform import *
from litex.build.efinix import common, efinity
from litex.build.efinix import EfinixDbParser
# EfinixPlatform -----------------------------------------------------------------------------------
@ -32,6 +33,8 @@ class EfinixPlatform(GenericPlatform):
else:
raise ValueError("Unknown toolchain")
self.parser = EfinixDbParser(self.efinity_path, self.device)
def get_verilog(self, *args, special_overrides=dict(), **kwargs):
so = dict(common.efinix_special_overrides)
so.update(special_overrides)