mirror of https://github.com/YosysHQ/picorv32.git
testbench_wb.v: fix output stuff
This patch fixes wishbone testbench output issue: 'DNNE' instead of 'DONE', i.e. Cycle counter ......... 546536 Instruction counter .... 69770 CPI: 7.83 DNNE ------------------------------------------------------------ EBREAK instruction at 0x000006C4 Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
This commit is contained in:
parent
726a76c1cc
commit
0967a39c1d
|
@ -294,15 +294,14 @@ module wb_ram #(
|
||||||
reg [31:0] mem [0:depth/4-1] /* verilator public */;
|
reg [31:0] mem [0:depth/4-1] /* verilator public */;
|
||||||
|
|
||||||
always @(posedge wb_clk_i) begin
|
always @(posedge wb_clk_i) begin
|
||||||
if (adr_r[aw-1:0] == 32'h1000_0000 && wb_stb_i && !wb_ack_o)
|
if (ram_we)
|
||||||
begin
|
if (adr_r[aw-1:0] == 32'h1000_0000)
|
||||||
$write("%c", wb_dat_i[7:0]);
|
$write("%c", wb_dat_i[7:0]);
|
||||||
end else
|
else
|
||||||
if (adr_r[aw-1:0] == 32'h2000_0000 && wb_stb_i && !wb_ack_o) begin
|
if (adr_r[aw-1:0] == 32'h2000_0000)
|
||||||
if (wb_dat_i[31:0] == 123456789)
|
if (wb_dat_i[31:0] == 123456789)
|
||||||
tests_passed = 1;
|
tests_passed = 1;
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
always @(posedge wb_clk_i) begin
|
always @(posedge wb_clk_i) begin
|
||||||
if (waddr2 < 64 * 1024 / 4) begin
|
if (waddr2 < 64 * 1024 / 4) begin
|
||||||
|
|
Loading…
Reference in New Issue