Compare commits

..

No commits in common. "3a63e916f5ead3ca3a7a430028adbd2eee8b0fb7" and "8a62b89a136fcd477e88dab3b8214f2cc7013953" have entirely different histories.

4 changed files with 12 additions and 13 deletions

View File

@ -276,11 +276,11 @@ always @(posedge clock) begin
/*************** DATA READ ***************/ /*************** DATA READ ***************/
`define finished_read \ `define finished_read \
DATA_DIR <= 0; \ DATA_DIR <= 0; \
VALID_DATA <= 1;\
if ( read_request == 0 ) begin \ if ( read_request == 0 ) begin \
biu_state <= `BIU_NEXT_ACTION;\ biu_state <= `BIU_NEXT_ACTION;\
VALID_DATA <= 0;\ VALID_DATA <= 0;\
end else \ end
VALID_DATA <= 1;
`BIU_GET_ALIGNED_DATA:begin `BIU_GET_ALIGNED_DATA:begin
`ifdef DEBUG_DATA_READ_WRITES `ifdef DEBUG_DATA_READ_WRITES
if(Wbit==1) if(Wbit==1)

View File

@ -54,7 +54,7 @@ string waveform_name;
initial begin initial begin
if($value$plusargs("WAVEFORM=%s",waveform_name))begin if($value$plusargs("WAVEFORM=%s",waveform_name))begin
$dumpfile(waveform_name); $dumpfile(waveform_name);
$dumpvars(0,p,cycles); $dumpvars(0,p);
end end
`ifdef OTUPUT_JSON_STATISTICS `ifdef OTUPUT_JSON_STATISTICS
if($value$plusargs("STATS=%s",stats_name))begin if($value$plusargs("STATS=%s",stats_name))begin
@ -65,7 +65,6 @@ initial begin
json_file_descriptor=0; json_file_descriptor=0;
`endif `endif
sane=0; sane=0;
finish=0;
end end
//integer killswitch=0; //integer killswitch=0;
@ -82,7 +81,7 @@ end
`ifdef OTUPUT_JSON_STATISTICS `ifdef OTUPUT_JSON_STATISTICS
reg first_json_cycle; reg first_json_cycle;
always @(negedge clock)begin always @(negedge clock)begin
if(finish < 2 && json_file_descriptor!=0 && sane)begin if(finish < 2 && json_file_descriptor!=0)begin
$fdisplay(json_file_descriptor,"%s{\"C\":%0d,\"L1\":%0d,\"VDI\":%0d,\"JMP\":%0d}",first_json_cycle?"":",",cycles,L1_SIZE_STAT,VALID_INSTRUCTION_STAT,jump_req); $fdisplay(json_file_descriptor,"%s{\"C\":%0d,\"L1\":%0d,\"VDI\":%0d,\"JMP\":%0d}",first_json_cycle?"":",",cycles,L1_SIZE_STAT,VALID_INSTRUCTION_STAT,jump_req);
first_json_cycle <= 0; first_json_cycle <= 0;
end end