Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

"case" inside "case" path delay long or short?

Hi

reg[4:0] a1;

reg[2:0] b1;

case(a1)

5'd0:case(b1

||||||3'd0:

||||||3'd1:

||||||.

||||||.

||||||endcae

5'd1:case(b1

||||||3'd0:

||||||3'd1:

||||||.

||||||.

||||||endcae

.

.

.

.

endcase

does the path delay long or short??

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Path delay of combinational logic is generated according to the complexity of the logic, independent of coding style. In so far, there's nothing special with nested case structures.