Line 40... |
Line 40... |
o_busy, o_pipe_stalled, o_valid, o_err, o_wreg, o_result,
|
o_busy, o_pipe_stalled, o_valid, o_err, o_wreg, o_result,
|
o_wb_cyc_gbl, o_wb_cyc_lcl,
|
o_wb_cyc_gbl, o_wb_cyc_lcl,
|
o_wb_stb_gbl, o_wb_stb_lcl,
|
o_wb_stb_gbl, o_wb_stb_lcl,
|
o_wb_we, o_wb_addr, o_wb_data,
|
o_wb_we, o_wb_addr, o_wb_data,
|
i_wb_ack, i_wb_stall, i_wb_err, i_wb_data);
|
i_wb_ack, i_wb_stall, i_wb_err, i_wb_data);
|
parameter ADDRESS_WIDTH=32, IMPLEMENT_LOCK=0, AW=ADDRESS_WIDTH;
|
parameter ADDRESS_WIDTH=32, IMPLEMENT_LOCK=0;
|
|
localparam AW=ADDRESS_WIDTH;
|
input i_clk, i_rst;
|
input i_clk, i_rst;
|
input i_pipe_stb, i_lock;
|
input i_pipe_stb, i_lock;
|
// CPU interface
|
// CPU interface
|
input i_op;
|
input i_op;
|
input [31:0] i_addr;
|
input [31:0] i_addr;
|
Line 88... |
Line 89... |
else if ((i_wb_ack)&&(cyc))
|
else if ((i_wb_ack)&&(cyc))
|
rdaddr <= rdaddr + 4'h1;
|
rdaddr <= rdaddr + 4'h1;
|
assign nxt_rdaddr = rdaddr + 4'h1;
|
assign nxt_rdaddr = rdaddr + 4'h1;
|
|
|
wire gbl_stb, lcl_stb;
|
wire gbl_stb, lcl_stb;
|
assign lcl_stb = (i_addr[31:8]==24'hc00000)&&(i_addr[7:5]==3'h0);
|
assign lcl_stb = (i_addr[31:24]==8'hff);
|
assign gbl_stb = (~lcl_stb);
|
assign gbl_stb = (~lcl_stb);
|
//= ((i_addr[31:8]!=24'hc00000)||(i_addr[7:5]!=3'h0));
|
//= ((i_addr[31:8]!=24'hc00000)||(i_addr[7:5]!=3'h0));
|
|
|
initial cyc = 0;
|
initial cyc = 0;
|
initial r_wb_cyc_lcl = 0;
|
initial r_wb_cyc_lcl = 0;
|