Skip to content

Conversation

AlexJones0
Copy link

Despite the clkmgr connections being present, KMAC hasn't actually had clock hinting implemented, which was causing a failure in the kmac_idle_test. Simply implement clock hinting on changes of FSM state.

You can see the relevant RTL here. It reports idle to the clkmgr as long as the state is idle and the msg_fifo is empty - which will always be the case here as we have to be in the ST_MSG_FEED FSM state to allow data to be written to the input fifo, and we can only return to ST_IDLE by either (a) a HW operation finishing, which doesn't use the input FIFO or (b) SW sends a DONE command after processing, where processing will empty the input fifo first.

KMAC never actually provided clock hints to the clkmgr; implement some
basic initial clock hinting for when the KMAC transitions into and out
of the IDLE FSM state.

Signed-off-by: Alex Jones <[email protected]>
This test was only failing because of the lack of KMAC clock hinting.

Signed-off-by: Alex Jones <[email protected]>
Copy link

@jwnrt jwnrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants