Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Remove the Halo2 frontend ConstraintSystem (#282)
Browse files Browse the repository at this point in the history
This PR is a better approach to Halo2 middleware compilation than #277.
It eliminates the need for TableColumns that are a purely frontend
concept. If we choose to proceed with this path, we can completely
remove the dependency on Halo2 frontend. I have prepared the
corresponding changes here:
93f9553
  • Loading branch information
alxkzmn authored Aug 6, 2024
1 parent e3bc01c commit 7086456
Show file tree
Hide file tree
Showing 4 changed files with 274 additions and 162 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ rand_chacha = "0.3"

[build-dependencies]
lalrpop = "0.20.0"

[features]
debug_pil = []
Binary file added examples/ptau/hermez-raw-12
Binary file not shown.
1 change: 1 addition & 0 deletions src/pil/backend/powdr_pil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ fn generate_pil_fixed_columns<F: Debug>(pil: &mut String, pil_ir: &PILCircuit<F>
"// === Fixed Columns for Signals and Step Type Selectors ==="
)
.unwrap();
#[cfg(feature = "debug_pil")]
for (col, assignments) in pil_ir.col_fixed.iter() {
let fixed_name = match col {
PILColumn::Fixed(_, annotation) => annotation.clone(),
Expand Down
Loading

0 comments on commit 7086456

Please sign in to comment.