Skip to content

A question on cycle counts of CFU unit #977

Closed Answered by stnolting
mahdi259 asked this question in Q&A
Discussion options

You must be logged in to vote

1- Does the 4 clock cycles that you mentioned for a fast multiplication in datasheet include fetch and write back stages?

Yes, it does. Here is a screenshot from simulating a multiplication instruction:

0x03558933 = mul x18, x11, x21

Execution takes 4 cycles (blue marker to yellow marker) requiring a single multi-cycle ALU stall cycle.

2- Does CPU perform fetch and write back of CFU similar to multiplication (each in one clock cycle)?

Short answer: yes.

Every instruction requires a fetch (or actually, a dispatch as the fetching is done independently of instruction execution). The write-back is "implicit" - there is no actual execution stage for this.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stnolting
Comment options

Answer selected by mahdi259
@mahdi259
Comment options

@mahdi259
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants