Permalink
Browse files

pfpu/test: keep up with pipeline length changes

  • Loading branch information...
1 parent 9be802c commit 711b9894d3bbec894f2834a70d8baeb35b771606 @ldoolitt ldoolitt committed with sbourdeauducq May 13, 2013
Showing with 8 additions and 6 deletions.
  1. +8 −6 cores/pfpu/test/complete/tb_pfpu.v
@@ -153,17 +153,18 @@ always begin
csrwrite(32'h0410, a);
/* Check they are correctly written */
- csrread(32'h010C);
- csrread(32'h0110);
+ csrread(32'h040C);
+ csrread(32'h0410);
/* Load test microcode */
/* PAD OPA OPB OPCD DEST */
csrwrite(32'h0800, 32'b0000000_0000011_0000100_0001_0000000); /* FADD R3, R4 */
csrwrite(32'h0804, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
csrwrite(32'h0808, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
csrwrite(32'h080C, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
- csrwrite(32'h0810, 32'b0000000_0000000_0000000_0000_0000011); /* NOP | EXIT R3 */
- csrwrite(32'h0814, 32'b0000000_0000011_0000100_0111_0000000); /* VECTOUT R3, R4 */
+ csrwrite(32'h0810, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
+ csrwrite(32'h0814, 32'b0000000_0000000_0000000_0000_0000011); /* NOP | EXIT R3 */
+ csrwrite(32'h0818, 32'b0000000_0000011_0000100_0111_0000000); /* VECTOUT R3, R4 */
/* DMA base */
csrwrite(32'h0004, 32'h401de328);
@@ -195,8 +196,9 @@ always begin
csrwrite(32'h0818, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
csrwrite(32'h081C, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
csrwrite(32'h0820, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
- csrwrite(32'h0824, 32'b0000000_0000000_0000000_0000_0000101); /* NOP | EXIT R5 */
- csrwrite(32'h0828, 32'b0000000_0000101_0000101_0111_0000000); /* VECTOUT R5, R5 */
+ csrwrite(32'h0824, 32'b0000000_0000000_0000000_0000_0000000); /* NOP */
+ csrwrite(32'h0828, 32'b0000000_0000000_0000000_0000_0000101); /* NOP | EXIT R5 */
+ csrwrite(32'h082C, 32'b0000000_0000101_0000101_0111_0000000); /* VECTOUT R5, R5 */
/* DMA base */
csrwrite(32'h0004, 32'h401de328);

0 comments on commit 711b989

Please sign in to comment.