Skip to content

Enumerated value used on its own in if condition #11

@jotego

Description

@jotego

SRMC_RES is defined as:

fx68k/fx68k.sv

Line 2305 in 0602ee4

enum int unsigned { SRESET = 0, SIDLE, S0, S2, S4, S6, SRMC_RES} busPhase, next;

So it must have a value of 6 and at least 3 bits. Then it is used in this if condition:

fx68k/fx68k.sv

Line 2397 in 0602ee4

else if( Clks.enPhi2 & bcComplete & ~SRMC_RES)

What is the meaning of that? Clks.enPhi2 and bcComplete are single bits, the SRMC_RES is, well, 32 bit as an integer with a value of 6. What is the meaning of having it in the expression?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions