Skip to content

Commit

Permalink
c -> ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Jan 13, 2025
1 parent 0d6f5a8 commit 3717045
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/design/chiplets/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ $$
To simplify description of constraints, we'll define two variables $n_0$ and $n_1$ as follows:

$$
n_0 = \Delta c \cdot t' \\
n_0 = \Delta ctx \cdot t' \\
n_1 = \Delta a \cdot t'
$$

Where $\Delta c = c' - c$ and $\Delta a = a' - a$.
Where $\Delta ctx = ctx' - ctx$ and $\Delta a = a' - a$.

To make sure the prover sets the value of column `t` correctly, we'll need to impose the following constraints:

Expand All @@ -228,7 +228,7 @@ f_{mem\_nl} \cdot (n_0^2 - n_0) = 0 \text{ | degree} = 7
$$
>$$
f_{mem\_nl} \cdot (1 - n_0) \cdot \Delta c = 0 \text{ | degree} = 7
f_{mem\_nl} \cdot (1 - n_0) \cdot \Delta ctx = 0 \text{ | degree} = 7
$$
>$$
Expand Down Expand Up @@ -263,7 +263,7 @@ $$
To enforce the values of context ID, word address, and clock cycle grow monotonically as described in the previous section, we define the following constraint.

>$$
f_{mem\_nl} \cdot \left(n_0 \cdot \Delta c + (1 - n_0) \cdot (n_1 \cdot \Delta a + (1 - n_1) \cdot \Delta clk) \right) - (2^{16} \cdot d_1' + d_0') = 0 \text{ | degree} = 8
f_{mem\_nl} \cdot \left(n_0 \cdot \Delta ctx + (1 - n_0) \cdot (n_1 \cdot \Delta a + (1 - n_1) \cdot \Delta clk) \right) - (2^{16} \cdot d_1' + d_0') = 0 \text{ | degree} = 8
$$
Where $\Delta clk = clk' - clk - 1$.
Expand Down

0 comments on commit 3717045

Please sign in to comment.