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_ifu_ctr5
|
// Module Name: sparc_ifu_ctr5
|
// Description:
|
// Description:
|
// 5 bit counter for starvation detect
|
// 5 bit counter for starvation detect
|
Line 49... |
Line 54... |
assign sum[2] = count[2] ^ (count[1] & count[0]);
|
assign sum[2] = count[2] ^ (count[1] & count[0]);
|
assign sum[3] = count[3] ^ (count[2] & count[1] & count[0]);
|
assign sum[3] = count[3] ^ (count[2] & count[1] & count[0]);
|
assign sum[4] = count[4] ^ (count[3] & count[2] & count[1] & count[0]);
|
assign sum[4] = count[4] ^ (count[3] & count[2] & count[1] & count[0]);
|
assign count_nxt = sum & {5{rst_ctr_l}};
|
assign count_nxt = sum & {5{rst_ctr_l}};
|
|
|
dff #(5) cnt_reg(.din (count_nxt),
|
dff_s #(5) cnt_reg(.din (count_nxt),
|
.q (count),
|
.q (count),
|
.clk (clk),
|
.clk (clk),
|
.se (se), .si(), .so());
|
.se (se), `SIMPLY_RISC_SCANIN, .so());
|
|
|
// limit set to 24 for now
|
// limit set to 24 for now
|
assign limit = count[4] & count[3];
|
assign limit = count[4] & count[3];
|
|
|
|
|