Skip to content

Method brancher#539

Closed
lekcyjna123 wants to merge 1 commit intokuznia-rdzeni:masterfrom
lekcyjna123:lekcyjna/method-brancher-in
Closed

Method brancher#539
lekcyjna123 wants to merge 1 commit intokuznia-rdzeni:masterfrom
lekcyjna123:lekcyjna/method-brancher-in

Conversation

@lekcyjna123
Copy link
Copy Markdown
Contributor

As requested by @piotro888 here is the port of MethodBrancher from #395. I had to write a test for the Brancher, so I have decided to port also MethodMock, which simplify syntax. Instead of creating low level Adapter and TestbenchIO after that (and a long chain of accessors to get a real method), we can create a MethodMock which presents high level abstraction.

Comment thread test/common/sugar.py
from amaranth import *


class MethodMock(Elaboratable):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This functionality should be moved to another PR, and all method mocks should be updated to use this.

@tilk tilk added enhancement New feature or request transactions Transaction framework (deprecated label, see Transactron repo) labels Dec 18, 2023
@tilk
Copy link
Copy Markdown
Member

tilk commented Jan 2, 2024

After merging #551, this is no longer needed.

@tilk tilk closed this Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request transactions Transaction framework (deprecated label, see Transactron repo)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants