|
23 | 23 | // The behavior of the encoder is presented on the waveform below:
|
24 | 24 |
|
25 | 25 | // This encoder is implemented as a net of 4 proc.
|
26 |
| -// 1. Reduce step - this process takes incoming symbols and symbol_valid |
| 26 | +// 1. Reduce proc - this process takes incoming symbols and symbol_valid |
27 | 27 | // and reduces them into symbol count pairs. This step is stateless.
|
28 |
| -// 2. Realign step - this process moves pairs emitted from the reduce step |
| 28 | +// 2. Realign proc - this process moves pairs emitted from the reduce step |
29 | 29 | // so that they are aligned to the left, it also calculates propagation
|
30 | 30 | // distance for the first pair.
|
31 | 31 | // Example behaviours:
|
|
37 | 37 | // input: [.., .., (A, 3), (A, 1)]
|
38 | 38 | // output: [(A, 3), (A, 1), .., ..]
|
39 | 39 | // propagation distance: 1
|
40 |
| -// 3. Core step - this step is stateful. It takes align pairs from |
| 40 | +// 3. Core proc - this step is stateful. It takes align pairs from |
41 | 41 | // the realign step, and combines them with its state to create multiple
|
42 | 42 | // symbol/count pairs output. State is represented by following tuple
|
43 | 43 | // `<symbol, count, last>`. It contains symbol and count from last pair
|
44 | 44 | // received from realign step, or current sum of repeating symbol spanning
|
45 | 45 | // multiple input widths.
|
46 |
| -// 4. - Adjust Width step - this step takes output from the core step. |
| 46 | +// 4. Adjust Width proc - this step takes output from the core step. |
47 | 47 | // If output can handle more or equal number of pairs as
|
48 | 48 | // input number of symbols. This step does nothing.
|
49 | 49 | // If the output is narrower than the input,
|
|
0 commit comments