Permalink
Browse files

improve debuggability

  • Loading branch information...
1 parent a7c9c40 commit f01d90a0282faad63b5de54df680cf3696ec6ca9 @bwalex committed Aug 27, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 hdl/circ_buf.sv
  2. +3 −3 hdl/iss.sv
View
@@ -69,7 +69,7 @@ module circ_buf #(
for (integer i = EXT_COUNT-1; i >= 0; i--) begin
automatic iq_entry_int_t e = buffer[i];
if (ext_consumed[i] & ext_valid[i]) begin
- if (i <= fi)
+ if (i < fi)
fi -= 1;
buffer.delete(i);
View
@@ -556,16 +556,16 @@ module iss#(
end
always_ff @(posedge clock) begin
- $fwrite(trace_file, "%d: ISS: ls_ready=%b, exmul1_ready=%b, branch_ready=%b, ",
- $time, ls_ready, exmul1_ready, branch_ready);
+ $fwrite(trace_file, "%d: ISS: bds_issued=%b, ls_ready=%b, exmul1_ready=%b, branch_ready=%b, ",
+ $time, bds_issued, ls_ready, exmul1_ready, branch_ready);
for (integer i = 0; i < EX_UNITS; i++)
$fwrite(trace_file, "ex%1d_ready=%b, ", i, ex_ready[i]);
$fwrite(trace_file, "\n");
for (integer i = 0; i < ISSUE_PER_CYCLE; i++) begin
automatic bit [6:0] k = bds_flush_iq_idx_r + 1;
$fwrite(trace_file, "%d: ISS: ext_consumed[%d] = %b\n", $time, i, ext_consumed[i]);
- $fwrite(trace_file, "%d: ISS: insns[%d].idx = %d (k=%d)\n", $time, i, insns[i].idx, k);
+ $fwrite(trace_file, "%d: ISS: insns [%d].idx = %d (k=%d)\n", $time, i, insns[i].idx, k);
end
if (ls_inst_valid)

0 comments on commit f01d90a

Please sign in to comment.