veryl icon indicating copy to clipboard operation
veryl copied to clipboard

Interface composition

Open dalance opened this issue 6 months ago • 0 comments

If interface can have interface instances as the member, interface composition can be achived like below. Syntax and use case should be more considerd.

interface Read {
}

interface Write {
}

interface RW {
    inst read: Read;
    inst write: Write
}

Refs: https://www.reddit.com/r/FPGA/comments/1exhbtj/comment/ljdyafm/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

dalance avatar Aug 23 '24 01:08 dalance