efinity: small fixes
- do not include *.vh files in project, - add self.options to class EfinityToolchain - remove unconditional call to self.ifacewriter.add_ddr_xml
This commit is contained in:
parent
b24475b07d
commit
109dbd1d62
|
@ -231,6 +231,7 @@ def _build_xml(partnumber, build_name, sources, additional_xml_commands):
|
||||||
design_info = et.SubElement(root, 'efx:design_info')
|
design_info = et.SubElement(root, 'efx:design_info')
|
||||||
et.SubElement(design_info, "efx:top_module", name = build_name)
|
et.SubElement(design_info, "efx:top_module", name = build_name)
|
||||||
for filename, language, library in sources:
|
for filename, language, library in sources:
|
||||||
|
if '.vh' not in filename:
|
||||||
val = {'name':filename, 'version':'default', 'library':'default'}
|
val = {'name':filename, 'version':'default', 'library':'default'}
|
||||||
et.SubElement(design_info, "efx:design_file", val)
|
et.SubElement(design_info, "efx:design_file", val)
|
||||||
et.SubElement(design_info, "efx:top_vhdl_arch", name = "")
|
et.SubElement(design_info, "efx:top_vhdl_arch", name = "")
|
||||||
|
@ -270,6 +271,7 @@ class EfinityToolchain():
|
||||||
attr_translate = {}
|
attr_translate = {}
|
||||||
|
|
||||||
def __init__(self, efinity_path):
|
def __init__(self, efinity_path):
|
||||||
|
self.options = {}
|
||||||
self.clocks = dict()
|
self.clocks = dict()
|
||||||
self.false_paths = set()
|
self.false_paths = set()
|
||||||
self.efinity_path = efinity_path
|
self.efinity_path = efinity_path
|
||||||
|
@ -340,7 +342,7 @@ class EfinityToolchain():
|
||||||
|
|
||||||
# DDR doesn't have Python API so we need to configure it
|
# DDR doesn't have Python API so we need to configure it
|
||||||
# directly in the peri.xml file
|
# directly in the peri.xml file
|
||||||
self.ifacewriter.add_ddr_xml(build_name)
|
# self.ifacewriter.add_ddr_xml(build_name)
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
if run:
|
if run:
|
||||||
|
|
|
@ -169,7 +169,7 @@ is_verbose = {1}
|
||||||
design = DesignAPI(is_verbose)
|
design = DesignAPI(is_verbose)
|
||||||
device = DeviceAPI(is_verbose)
|
device = DeviceAPI(is_verbose)
|
||||||
|
|
||||||
design.create('{2}', '{3}', './../build', overwrite=True)
|
design.create('{2}', '{3}', './../gateware', overwrite=True)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return header.format(self.efinity_path, 'True', build_name, partnumber)
|
return header.format(self.efinity_path, 'True', build_name, partnumber)
|
||||||
|
|
Loading…
Reference in New Issue