Commits

David Lin committed 86d9767

minor fix

Comments (0)

Files changed (2)

project2/code/CPU.v

     .sel_i(EX_regdst)
   );
   Buffer #(.BITS(5)) EX_Buf_RdAddr(
-    .clock_i(clock_i), .reset_i(reset_i), .write_i(ID_Buf_write), 
+    .clock_i(clock_i), .reset_i(reset_i), .write_i(EX_Buf_write), 
     .data_i(EX_regdst_mux.data_o), .clear_i(0)
   );
   

project2/code/dcache_top.v

 wire	[4:0]		p1_offset;
 wire	[4:0]		p1_index;
 wire	[21:0]		p1_tag;
-reg		[255:0]		r_hit_data;
+reg		[255:0]		r_hit_data; // reg? wire?
 wire	[21:0]		sram_tag;
-reg					hit;
+reg					hit; // reg? wire?
 reg		[255:0]		w_hit_data;
 wire				write_hit;
 wire				p1_req;
 	.data_o(sram_cache_data)
 );
 
-endmodule
+endmodule