hwtBuildsystem.yosys.api package

Submodules

hwtBuildsystem.yosys.api.project module

class hwtBuildsystem.yosys.api.project.YosysProject(executor: YosysExecutor, path: str, name: str)[source]

Bases: SynthesisToolProject

API for controlling of the yosys project :note: The yosys does not have explicit project file, but in this context

it means the api for control of the files, parts and executing of design runs

SUFFIX_TO_FILE_TYPE = {'.sv': '-sv2012', '.svh': '-sv2012', '.v': '-sv2012', '.vh': '-sv2012', '.vhd': '-vhdl2008'}
addFiles(files)[source]
close()[source]

The project was just virtual in the first place, no closing required.

create()[source]
implemAll()[source]
setPart(part: LatticePart | IntelPart | XilinxPart | Tuple[str, str, str])[source]
Parameters:

part – vendor specific tuple IntelPart(“Intel”, “Cyclone”, “EP1C12F256C6”), LaticePart(‘Lattice’, ‘iCE40’, ‘up5k’, ‘sg48’)

setTop(topName)[source]
synthAll()[source]
writeBitstream()[source]