Sooryakiran / Domain-Specific-Hardware-Accelerator-VLSI-CAD-Project

Domain Specific Hardware Accelerators - VLSI CAD Project
Other
6 stars 2 forks source link

Bluespec Compiler Error when using SizeOf (..) inside interface definition #8

Closed Sooryakiran closed 3 years ago

Sooryakiran commented 3 years ago

To reproduce the error, uncomment (Line 22) pointed below and comment out the workaround (Line 25)

https://github.com/Sooryakiran/Domain-Specific-Hardware-Accelerator-VLSI-CAD-Project/blob/e1350adaabe4e2db5bd4164b48f1af672fc2e8f8/src/CPU/Exec.bsv#L11-L33

Simulate src/Demo/Demo.bspec

Sooryakiran commented 3 years ago

Just for quick reference, Regpackets and SizeRefPackets are defined here:

https://github.com/Sooryakiran/Domain-Specific-Hardware-Accelerator-VLSI-CAD-Project/blob/e1350adaabe4e2db5bd4164b48f1af672fc2e8f8/src/CPU/CPUDefines.bsv#L70-L76