Skip to content

cucapra/aoc2022-calyx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accelerating the Advent of Code

This is an attempt to solve the Advent of Code 2022 in Calyx, our intermediate language for generating hardware accelerators. It is almost certainly doomed.

You can test all the solutions using Turnt. This runs the sample inputs for everything:

$ turnt -j */sample.txt

The Turnt setup does differential testing across two RTL simulators and Calyx's interpreter to make sure they all agree. You can also just run the Icarus Verilog simulations:

$ turnt -j -e part1-icarus -e part2-icarus */sample.txt

When you have your own full input files, try something like this to print out the answer:

$ turnt -e part1-icarus -p 1/full.txt

The -p flag tells Turnt to just print the result instead of checking it against the saved expected output.

About

Calyx code generators for the Advent of Code 2022

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published