Line 144... |
Line 144... |
4'h8: ram[dwb_adr_o] <= {dwb_dat_o[31:24], dwb_dat_t[23:0]};
|
4'h8: ram[dwb_adr_o] <= {dwb_dat_o[31:24], dwb_dat_t[23:0]};
|
4'h3: ram[dwb_adr_o] <= {dwb_dat_t[31:16], dwb_dat_o[15:0]};
|
4'h3: ram[dwb_adr_o] <= {dwb_dat_t[31:16], dwb_dat_o[15:0]};
|
4'hC: ram[dwb_adr_o] <= {dwb_dat_o[31:16], dwb_dat_t[15:0]};
|
4'hC: ram[dwb_adr_o] <= {dwb_dat_o[31:16], dwb_dat_t[15:0]};
|
4'hF: ram[dwb_adr_o] <= {dwb_dat_o};
|
4'hF: ram[dwb_adr_o] <= {dwb_dat_o};
|
default: begin
|
default: begin
|
$displayh("\n*** INVALID WRITE ",{dwb_adr_o,2'o0}, " ***");
|
//$displayh("\n*** INVALID WRITE ",{dwb_adr_o,2'o0}, " ***");
|
//$finish;
|
//$finish;
|
end
|
end
|
endcase // case (dwb_sel_o)
|
endcase // case (dwb_sel_o)
|
end // if (dwb_wre_o & dwb_stb_o & dwb_ack_i)
|
end // if (dwb_wre_o & dwb_stb_o & dwb_ack_i)
|
|
|
if (dwb_stb_o & !dwb_wre_o & dwb_ack_i) begin
|
if (dwb_stb_o & !dwb_wre_o & dwb_ack_i) begin
|
case (dwb_sel_o)
|
case (dwb_sel_o)
|
4'h1,4'h2,4'h4,4'h8,4'h3,4'hC,4'hF: begin
|
4'h1,4'h2,4'h4,4'h8,4'h3,4'hC,4'hF: begin
|
end
|
end
|
default: begin
|
default: begin
|
$displayh("\n*** INVALID READ ",{dwb_adr_o,2'd0}, " ***");
|
//$displayh("\n*** INVALID READ ",{dwb_adr_o,2'd0}, " ***");
|
//$finish;
|
//$finish;
|
end
|
end
|
endcase // case (dwb_sel_o)
|
endcase // case (dwb_sel_o)
|
end
|
end
|
|
|