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_pkts.sv | |
| parent | 1ffcdb62cd7e95ccd3f971d0b5cb2e617e1481b2 (diff) | |
rtl/if_common: initial commit, moved out of gfx
Diffstat (limited to 'rtl/if_common/if_pkts.sv')
| -rw-r--r-- | rtl/if_common/if_pkts.sv | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rtl/if_common/if_pkts.sv b/rtl/if_common/if_pkts.sv new file mode 100644 index 0000000..b6e5b0b --- /dev/null +++ b/rtl/if_common/if_pkts.sv @@ -0,0 +1,27 @@ +interface if_pkts +#(int WIDTH = 32); + + logic tlast; + logic tready; + logic tvalid; + logic[WIDTH - 1:0] tdata; + + modport tx + ( + input tready, + + output tdata, + tlast, + tvalid + ); + + modport rx + ( + input tdata, + tlast, + tvalid, + + output tready + ); + +endinterface |
