Skip to content
Snippets Groups Projects

Add minimize memory to PE connection resource algorithm

Merged Simon Bjurek requested to merge add-min-mem-to-pe-con-res-alg into master
3 unresolved threads
  • Added min_mem_to_pe resource allocation/assignment algorithm.
  • Fixed bug where two PEs/memories with the same name broke the architecture rendering by enforcing unique names.
  • Fixed comments from !507 (merged)

Closes: #347 (closed)

Edited by Simon Bjurek

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1125 1135 total_ports: int,
1126 1136 sequence: list[Process],
1127 1137 processing_elements: list["ProcessingElement"],
1138 sfg,
1128 1139 ) -> list["ProcessCollection"]:
1129 raise NotImplementedError()
1140
1141 if set(self.collection) != set(sequence):
1142 raise KeyError("processes in `sequence` must be equal to processes in self")
  • Simon Bjurek changed title from Add min mem to pe con res alg to Add minimize memory to PE connection resource algorithm

    changed title from Add min mem to pe con res alg to Add minimize memory to PE connection resource algorithm

  • Simon Bjurek added 2 commits

    added 2 commits

    • b579fbdb - added min-mem-to-pe resource algorithm
    • 1bff8c7f - fix entity name bugs

    Compare with previous version

  • 615 615 direct_interconnects: ProcessCollection | None = None,
    616 616 ):
    617 617 super().__init__(entity_name)
    618
    619 pe_names = [pe._entity_name for pe in processing_elements]
  • 617 617 super().__init__(entity_name)
    618
    619 pe_names = [pe._entity_name for pe in processing_elements]
    620 if None in pe_names:
    621 raise ValueError(
    622 "Entity names must be defined for all processing elements."
    623 )
    624 if len(pe_names) != len(set(pe_names)):
    625 raise ValueError("Entity names of processing elements needs to be unique.")
    618 626 self._processing_elements = (
    619 627 [processing_elements]
    620 628 if isinstance(processing_elements, ProcessingElement)
    621 629 else list(processing_elements)
    622 630 )
    631
    632 mem_names = [mem._entity_name for mem in memories]
  • Oscar Gustafsson
  • Simon Bjurek added 1 commit

    added 1 commit

    Compare with previous version

  • Simon Bjurek added 1 commit

    added 1 commit

    Compare with previous version

  • Simon Bjurek changed the description

    changed the description

  • Oscar Gustafsson approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading