diff --git a/coreblocks/core.py b/coreblocks/core.py index 913654f1c..308b835a4 100644 --- a/coreblocks/core.py +++ b/coreblocks/core.py @@ -136,8 +136,9 @@ def elaborate(self, platform): m.submodules.exception_information_register = self.exception_information_register - if self.connections.dependency_provided(FetchResumeKey()): - fetch_resume_fb, fetch_resume_unifiers = self.connections.get_dependency(FetchResumeKey()) + fetch_resume = self.connections.get_optional_dependency(FetchResumeKey()) + if fetch_resume is not None: + fetch_resume_fb, fetch_resume_unifiers = fetch_resume m.submodules.fetch_resume_unifiers = ModuleConnector(**fetch_resume_unifiers) m.submodules.fetch_resume_connector = ConnectTrans(fetch_resume_fb, self.frontend.resume_from_unsafe) diff --git a/requirements.txt b/requirements.txt index 110a59f30..ac53cf74e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ amaranth-stubs @ git+https://github.com/kuznia-rdzeni/amaranth-stubs.git@edb302b001433edf4c8568190adc9bd0c0039f45 -transactron @ git+https://github.com/kuznia-rdzeni/transactron.git@6893f9aced6a8671f34a5007894e72273162af1b +transactron @ git+https://github.com/kuznia-rdzeni/transactron.git@af951bcae97ab5c926581b76622bcb20702b4fdf amaranth-yosys==0.40.0.0.post100 amaranth==0.5.3 dataclasses-json==0.6.3