Skip to content

Commit

Permalink
Merge pull request #198 from EverythingElseWasAlreadyTaken/WIP/Fix_VH…
Browse files Browse the repository at this point in the history
…DL_configMem_instantiation

:fabric_gen: Fix VHDL ConfigMem gets instantiated twice per tile
  • Loading branch information
KelvinChung2000 authored Jun 20, 2024
2 parents 3362417 + 34892b9 commit 0142717
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions FABulous/fabric_generator/fabric_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,15 +877,6 @@ def generateTile(self, tile: Tile) -> None:
f"Could not find {tile.name}_ConfigMem.vhdl in {basePath} config_mem generation first"
)

if (
self.fabric.configBitMode == ConfigBitMode.FRAME_BASED
and tile.globalConfigBits > 0
):
if os.path.exists(f"{basePath}/{tile.name}_ConfigMem.vhdl"):
self.writer.addComponentDeclarationForFile(
f"{basePath}/{tile.name}_ConfigMem.vhdl"
)

# VHDL signal declarations
self.writer.addComment("signal declarations", onNewLine=True)
# BEL port wires
Expand Down

0 comments on commit 0142717

Please sign in to comment.