Enhancing Compiler-Driven HDL Design with Automatic Waveform Analysis