Skip to content

Make a flop-like function that constructs a FlipFlop and gets the output #257

Closed
@mkorbel1

Description

@mkorbel1

Motivation

Similar to how mux creates a Mux and returns the output.

Currently, to make a flop requires FlipFlop(clk, d).q, but it would be nicer to write flop(clk, d) to get the same thing.

Desired solution

Implement a new globally visible function like

Logic flop(clk, d) { ... }

which performs the same functionality as getting q from a constructed FlipFlop.

Alternatives considered

No response

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions