Copilot-Language / copilot-bluespec

A Copilot backend for generating Bluespec code suitable for FPGAs.
Other
2 stars 0 forks source link

Share more code between `copilot-bluespec` and `copilot-c99` #3

Open RyanGlScott opened 7 months ago

RyanGlScott commented 7 months ago

Currently, copilot-bluespec has a fair bit of code that is copy-pasted from copilot-c99:

Ideally, we could find some way to share this code in between the two libraries to avoid code duplication. One complication is that most of this code lives in modules that aren't exported. Perhaps it would make sense to create a new copilot-backend library that factors out the code shared in common?