Line 16... |
Line 16... |
// You should have received a copy of the GNU General Public
|
// You should have received a copy of the GNU General Public
|
// License along with this work; if not, write to the Free Software
|
// License along with this work; if not, write to the Free Software
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
//
|
//
|
// ========== Copyright Header End ============================================
|
// ========== Copyright Header End ============================================
|
|
`ifdef SIMPLY_RISC_TWEAKS
|
|
`define SIMPLY_RISC_SCANIN .si(0)
|
|
`else
|
|
`define SIMPLY_RISC_SCANIN .si()
|
|
`endif
|
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
/*
|
/*
|
// Module Name: sparc_exu_rndrob
|
// Module Name: sparc_exu_rndrob
|
// Description:
|
// Description:
|
// Round robin scheduler. Least priority to the last granted
|
// Round robin scheduler. Least priority to the last granted
|
Line 46... |
Line 51... |
park_vec;
|
park_vec;
|
|
|
|
|
assign next_pv = advance ? grant_vec : park_vec;
|
assign next_pv = advance ? grant_vec : park_vec;
|
|
|
dffr #4 park_reg(.din (next_pv[3:0]),
|
dffr_s #4 park_reg(.din (next_pv[3:0]),
|
.clk (clk),
|
.clk (clk),
|
.q (pv[3:0]),
|
.q (pv[3:0]),
|
.rst (reset),
|
.rst (reset),
|
.se (se), .si(), .so());
|
.se (se), `SIMPLY_RISC_SCANIN, .so());
|
|
|
assign park_vec = pv;
|
assign park_vec = pv;
|
|
|
// if noone requests, don't advance, otherwise we'll go back to 0
|
// if noone requests, don't advance, otherwise we'll go back to 0
|
// and will not be fair to other requestors
|
// and will not be fair to other requestors
|