Closed wzab closed 2 years ago
The problem is probably fixed with commit https://github.com/wzab/agwb/commit/5413fc8ab58cb3ac19c61255dea22af90da42a71 (merged with https://github.com/wzab/agwb/commit/6a713b5de15576c1d87a5e4c1e1723870cff3d15 to the "updates_from_cbm" branch).
If somebody sets the default value to a bitfield in the vector of control registers, the initialization code is generated incorrectly. Many thanks to Esteban Rubio from CBM team for finding that bug. The problem may be recreated in the "test" demo design by setting the repetition count to "1" and adding a default value to one of the bitfields in X2 register in block1.xml:
Then we get the following error in GHDL compilation:
The problem does not occur if the number of repetitions (reps) is higher than 1.