Commits

David Lin committed 4b7caaa

solved

Comments (0)

Files changed (2)

project2/code/CPU.v

   (
     // System clock, reset and stall
     .clk_i(clock_i), 
-    .rst_i(reset_i),
+    .rst_i(~reset_i),
 	
 	// to Data Memory interface		
     .mem_data_i(mem_data_i),

project2/code/TestBench.v

 	
 	if (1) // Debug
 	begin
-	  $display("MEM_stall = %d\n", cpu.MEM_stall);
+	  $display("MEM_stall = %d", cpu.MEM_stall);
+	  $display("dcache.mem_ack_i = %d", cpu.dcache.mem_ack_i);
+	  $display("dcache.hit = %d", cpu.dcache.hit);
+	  $display("dcache.r_hit_data = %h", cpu.dcache.r_hit_data);
+	  $display("dmem.mem_ack_o = %d", Data_Memory.ack_o);
 	end
 	
 	$fdisplay(outfile, "\n");
 	
 	counter = counter + 1;
 end
-
   
 endmodule