diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-05-05 18:45:11 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-05-05 18:45:11 -0600 |
| commit | 638b75fb4c8fdc3c9d3a208f6bd9976841bc0928 (patch) | |
| tree | 3f26dad5958d6713d942b53b8c0bf62e003565a3 /rtl/if_common/if_beats.sv | |
| parent | 1ffcdb62cd7e95ccd3f971d0b5cb2e617e1481b2 (diff) | |
rtl/if_common: initial commit, moved out of gfx
Diffstat (limited to 'rtl/if_common/if_beats.sv')
| -rw-r--r-- | rtl/if_common/if_beats.sv | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/rtl/if_common/if_beats.sv b/rtl/if_common/if_beats.sv new file mode 100644 index 0000000..f9e58e9 --- /dev/null +++ b/rtl/if_common/if_beats.sv @@ -0,0 +1,29 @@ +interface if_beats +#(int WIDTH = 32); + + logic[WIDTH - 1:0] data; + logic ready; + logic valid; + + modport tx + ( + input ready, + output data, + valid + ); + + modport rx + ( + input data, + valid, + output ready + ); + + modport peek + ( + input data, + ready, + valid + ); + +endinterface |
