Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/obi_cut.sv
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,28 @@
input obi_rsp_t mgr_port_rsp_i
);

// PATCH: Internal ready signal to fix OBI protocol violation
// BUG FIX: spill_register can assert ready_o even when valid_i=0,
// violating OBI protocol which requires gnt=0 when req=0
logic internal_ready;

spill_register #(
.T ( obi_a_chan_t ),
.Bypass ( BypassReq )
) i_reg_a (
.clk_i,
.rst_ni,
.valid_i ( sbr_port_req_i.req ),
.ready_o ( sbr_port_rsp_o.gnt ),
.ready_o ( internal_ready ), // Use internal signal
.data_i ( sbr_port_req_i.a ),
.valid_o ( mgr_port_req_o.req ),
.ready_i ( mgr_port_rsp_i.gnt ),
.data_o ( mgr_port_req_o.a )
);

// PATCH: Ensure gnt=0 when req=0 to comply with OBI protocol
assign sbr_port_rsp_o.gnt = internal_ready & sbr_port_req_i.req;

logic ready_o;
logic ready_i;

Expand All @@ -70,4 +78,4 @@
.data_o ( sbr_port_rsp_o.r )
);

endmodule
endmodule

Check warning on line 81 in src/obi_cut.sv

View workflow job for this annotation

GitHub Actions / verible-verilog-lint

[verible-verilog-lint] src/obi_cut.sv#L81

File must end with a newline. [Style: posix-file-endings] [posix-eof]
Raw output
message:"File must end with a newline. [Style: posix-file-endings] [posix-eof]" location:{path:"./src/obi_cut.sv" range:{start:{line:81 column:10}}} severity:WARNING source:{name:"verible-verilog-lint" url:"https://github.com/chipsalliance/verible"} suggestions:{range:{start:{line:81 column:10} end:{line:82}} text:"endmodule\n"}