Merge pull request #63 from olofk/fix-spiflash_tb

Fix spiflash_tb
This commit is contained in:
Clifford Wolf 2018-05-12 15:29:16 +02:00 committed by GitHub
commit ad95e88e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -53,8 +53,8 @@ module testbench;
); );
localparam [23:0] offset = 24'h100000; localparam [23:0] offset = 24'h100000;
localparam [31:0] word0 = 32'h 01300293; localparam [31:0] word0 = 32'h 00000093;
localparam [31:0] word1 = 32'h 00502223; localparam [31:0] word1 = 32'h 00000193;
reg [7:0] rdata; reg [7:0] rdata;
integer errcount = 0; integer errcount = 0;
@ -291,7 +291,7 @@ module testbench;
xfer_qspi_wr(offset[15:8]); xfer_qspi_wr(offset[15:8]);
xfer_qspi_wr(offset[7:0]); xfer_qspi_wr(offset[7:0]);
xfer_qspi_wr(8'h a5); xfer_qspi_wr(8'h a5);
xfer_dummy; repeat (8) xfer_dummy;
xfer_qspi_rd; expect(word0[7:0]); xfer_qspi_rd; expect(word0[7:0]);
xfer_qspi_rd; expect(word0[15:8]); xfer_qspi_rd; expect(word0[15:8]);
xfer_qspi_rd; expect(word0[23:16]); xfer_qspi_rd; expect(word0[23:16]);
@ -308,7 +308,7 @@ module testbench;
xfer_qspi_wr(offset[15:8]); xfer_qspi_wr(offset[15:8]);
xfer_qspi_wr(offset[7:0]); xfer_qspi_wr(offset[7:0]);
xfer_qspi_wr(8'h ff); xfer_qspi_wr(8'h ff);
xfer_dummy; repeat (8) xfer_dummy;
xfer_qspi_rd; expect(word0[7:0]); xfer_qspi_rd; expect(word0[7:0]);
xfer_qspi_rd; expect(word0[15:8]); xfer_qspi_rd; expect(word0[15:8]);
xfer_qspi_rd; expect(word0[23:16]); xfer_qspi_rd; expect(word0[23:16]);
@ -326,7 +326,7 @@ module testbench;
xfer_qspi_ddr_wr(offset[15:8]); xfer_qspi_ddr_wr(offset[15:8]);
xfer_qspi_ddr_wr(offset[7:0]); xfer_qspi_ddr_wr(offset[7:0]);
xfer_qspi_ddr_wr(8'h a5); xfer_qspi_ddr_wr(8'h a5);
xfer_dummy; repeat (8) xfer_dummy;
xfer_qspi_ddr_rd; expect(word0[7:0]); xfer_qspi_ddr_rd; expect(word0[7:0]);
xfer_qspi_ddr_rd; expect(word0[15:8]); xfer_qspi_ddr_rd; expect(word0[15:8]);
xfer_qspi_ddr_rd; expect(word0[23:16]); xfer_qspi_ddr_rd; expect(word0[23:16]);
@ -343,7 +343,7 @@ module testbench;
xfer_qspi_ddr_wr(offset[15:8]); xfer_qspi_ddr_wr(offset[15:8]);
xfer_qspi_ddr_wr(offset[7:0]); xfer_qspi_ddr_wr(offset[7:0]);
xfer_qspi_ddr_wr(8'h ff); xfer_qspi_ddr_wr(8'h ff);
xfer_dummy; repeat (8) xfer_dummy;
xfer_qspi_ddr_rd; expect(word0[7:0]); xfer_qspi_ddr_rd; expect(word0[7:0]);
xfer_qspi_ddr_rd; expect(word0[15:8]); xfer_qspi_ddr_rd; expect(word0[15:8]);
xfer_qspi_ddr_rd; expect(word0[23:16]); xfer_qspi_ddr_rd; expect(word0[23:16]);