-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheq.typ
More file actions
41 lines (30 loc) · 1.15 KB
/
Copy patheq.typ
File metadata and controls
41 lines (30 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#import "/book.typ": book-page, rj
#import "/src.typ": load_config, load_chip
#import "/chip.typ": (
render_chip_assumptions,
render_chip_variable_table,
total_nr_variables,
total_nr_instantiated_columns,
compute_nr_interactions,
render_constraint_table,
render_chip_padding_table,
)
#let config = load_config()
#let chip = load_chip("src/eq.toml", config)
#show: book-page(chip.name)
#let eq = raw(chip.name)
The #eq chip is an ALU chip that compares two values and outputs a bit indicating whether they are equal or not.
It optionally inverts the result if the `invert` flag is set.
= Variables
#let nr_variables = total_nr_variables(chip)
#let nr_columns = total_nr_instantiated_columns(chip, config)
#let nr_interactions = compute_nr_interactions(chip)
The #eq chip is comprised of #nr_variables variables that are expressed using #nr_columns columns and leverages #nr_interactions interaction(s):
#render_chip_variable_table(chip, config)
= Assumptions
#render_chip_assumptions(chip, config)
= Constraints
#render_constraint_table(chip, config)
= Padding
The chip can be padded with the following values:
#render_chip_padding_table(chip, config)