Skip to content

Editing Ticks and Frequency instead of Time(value) | formulas #11

@H43TO

Description

@H43TO

Hey, nice project, it really is useful, but I have one slight problem with it, editing the time instead of the Frequency or the Ticks(as you call it) it pretty time consuming(pun intended), and If one is trying out a lot of different values or has to edit a bunch of them, it is flustrating to calculate all of then by hand, add to that if someone doensn't know how to calculate them, they might get discouraged to use the app. Oh also, when you edit the time the values dont get updated real time and you have to save then reload the bin file for the new values to get calculated.

My proposal is that if you don't wanna change how the user inputs time instead of ticks or frequency, atleast add a little note with the formulas to calculate the specific values, and add a button to recalculate the displayed values now with the user inputted values.

For those that are interested in how to calculate the timing values(ticks) from time:

First we need to calculate the Frequency or our DIMM we can do this with this formula:

$$ \text{Freq} = \frac{1}{\text{minCycleTime} \cdot 10^6} $$

We can do this in reverse too:

$$ \text{minCycleTime} = \frac{1}{\text{Freq} \cdot 10^{-6}} $$

Now to calculate the timing values we need:
(I've come up with a compact formula and will not be going into details, if you want check out the src or contact me!)

The formula we'll be using is this:

$$ \text{Ticks} = \frac{997 \cdot \text{Time} \cdot \text{Freq} + 10^9}{10^9} $$

For going the other way around use this formula:

$$ \text{Time} = \frac{10^9 \cdot \text{Ticks} - 10^9}{997 \cdot \text{Freq}} $$

!!! For tRFC1,2 and C the time values you get have to be divided by 1000 for them to be viable(Time -> Ticks), or multiplied by 1000 (Ticks -> Time)

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