Skip to content

Commit

Permalink
pfpu/test: keep up with pipeline length changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ldoolitt authored and Sebastien Bourdeauducq committed May 13, 2013
1 parent 9be802c commit 711b989
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cores/pfpu/test/complete/tb_pfpu.v
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 711b989

Please sign in to comment.