Altera_Forum
Honored Contributor
10 years agoQuestion about building a prbs generator, using a lfsr, schematic entry
Hi,
I want to generate a random bit sequence, using a schematic entry in quartus. For example and to test, i tried a 4bit prbs. (see the screenshot attached) I used a LFSR, built it with D Latches and XOR Gates. The Problem is, i have to set an initial seed. So I used an input pin to feed PRN and an other to feed CLRN. In my testbench, I defined the values of those input pins. But as far as i can see, the D latch is initialized each clock step. Is it right, that i have to switch off (or cut off) the initialization pin to let the d latch work in normal mode? Btw. are there other possibilities to generate a prbs via schematic entry? Thank you in advance. regards EDIT: When i define all PRN and CLRN ports of the d latches, modelsim reports an error: Error: (vsim-3601) Iteration limit reached at time..... I also tried to enlarge the iteration time value, but the error still occurs.