mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-12-23 07:08:39 +00:00
31 lines
628 B
Systemverilog
31 lines
628 B
Systemverilog
|
interface srdl2sv_widget_if #(
|
||
|
parameter ADDR_W = 32,
|
||
|
parameter DATA_W = 32
|
||
|
);
|
||
|
|
||
|
localparam DATA_BYTES = DATA_W >> 3;
|
||
|
|
||
|
logic [ADDR_W-1:0] addr;
|
||
|
logic [DATA_W-1:0] w_data;
|
||
|
logic w_vld;
|
||
|
logic r_vld;
|
||
|
logic [DATA_BYTES-1:0] byte_en;
|
||
|
|
||
|
logic [DATA_W-1:0] r_data;
|
||
|
logic rdy;
|
||
|
logic err;
|
||
|
|
||
|
modport widget (
|
||
|
output addr,
|
||
|
output w_data,
|
||
|
output w_vld,
|
||
|
output r_vld,
|
||
|
output byte_en,
|
||
|
|
||
|
input r_data,
|
||
|
input rdy,
|
||
|
input err
|
||
|
);
|
||
|
endinterface
|
||
|
|