3 ms·
I actually did this exact thing in Verilog at a former employer, and got pretty good results (at least with the Xilinx toolchain). It just took some creative us
by nrclark 9y ago
I actually did this exact thing in Verilog at a former employer, and got pretty good results (at least with the Xilinx toolchain). It just took some creative use of Verilog's 'function' construct.
The basic structure was:
1. Write a function that calculated the next bit from a the existing state and the target poly.
2. Write a second function that called that first function repeatedly (once per bit in the target word).
3. Call the second function on the input data for a combinatorial output.