Skip to content

CLK_ENA should only go high after OSC_STABLE #219

@Rodrigodd

Description

@Rodrigodd

Noticed that when integrating this CPU into the complete Game Boy system made by msinger. That work is displayed at msinger/dmg-sim#1.

From msinger research, CLK_ENA should only go high after OSC_STABLE, otherwise the OSC_STABLE never goes up (this is better explained in the link above).

Extracting the logic of CLK_ENA from Seq.v, we can see it never interacts with OSC_STABLE, and goes up immediately after RESET:

RESET SYNC_RESET CLK_ENA
0 0 ~(d[100] | IR[4] & d[101]) | SeqControl_1
0 1 ~(d[100] | IR[4] & d[101])
1 x 0
  • d[100]: s1_op_halt_s0xx
  • d[101]: s1_op_nop_stop_s0xx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions