Skip to content

Commit e53b033

Browse files
committed
[examples/fpga] Fix memory interface
Logic driving instr_gnt/data_gnt violated Ibex memory protocol. It just happened to work until a recent change. Fixes #1500
1 parent 2ec8d74 commit e53b033

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

examples/fpga/artya7/rtl/top_artya7.sv

+2-11
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,8 @@ module top_artya7 (
111111
.b_rdata_o (instr_rdata)
112112
);
113113

114-
115-
// SRAM to Ibex
116-
always_ff @(posedge clk_sys or negedge rst_sys_n) begin
117-
if (!rst_sys_n) begin
118-
instr_gnt <= '0;
119-
data_gnt <= '0;
120-
end else begin
121-
instr_gnt <= instr_req ;
122-
data_gnt <= data_req ;
123-
end
124-
end
114+
assign instr_gnt = instr_req;
115+
assign data_gnt = data_req;
125116

126117
// Connect the LED output to the lower four bits of the most significant
127118
// byte

0 commit comments

Comments
 (0)