Skip to content

Built-in min/max functions #2262

@Timmmm

Description

@Timmmm

It would be nice if min/max worked out of the box. They're extremely common in signal widths, e.g. var foo: logic<max(N, M)>. I guess it's a bit tricky because of side effects, e.g. you can't compile it to M > N ? M : N because of max(print("hello"), print("world")) or whatever?

Metadata

Metadata

Assignees

No one assigned

    Labels

    langLanguage design

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions