Good morning, I was trying to run some test vectors on an ATF1504ASVL_A44 CPLD. Even found some BSDL files on the net(no Idea if they're correct, tho').
I have vectors like this: V0001 NLLNLLNLNLL1NNNNNNNHNNNNNNNNNNNNNN0NNNNNNLLL* V0002 NLLNLLNLNLL0NNNNNNNHNNNNNNNNNNNNNN0NNNNNNLLL* V0003 NLLNLLNLNLL0NNNNNNNLNNNNNNNNNNNNNN1NNNNNNHLL* [...]
They are generated from a verilog sim.
From those I tried generating SVF files like this: [...] SIR 10 TDI (055); SDR 192 TDI (0000000000000000840101510401415145c1401045400411); SIR 10 TDI (000); RUNTEST 1.000000E-05 SEC; SIR 10 TDI (055); SDR 192 TDI (000000000000000044010151040141514541401045400411) TDO (000000080000000044010151040141514541401045400411) MASK (000000080185709400000000000000000000000000000000); SIR 10 TDI (055); SDR 192 TDI (000000000000000084010151040141514581401045400411); SIR 10 TDI (000); RUNTEST 1.000000E-05 SEC; SIR 10 TDI (055); SDR 192 TDI (000000000000000044010151040141514541401045400411) TDO (000000080000000044010151040141514541401045400411) MASK (000000080185709400000000000000000000000000000000); [...] using sample/preload runtest and extest states. When playing, it failed at the first vector. There was an IDCODE check before that, and that worked, so the communication seems ok.
Then I tried this: [...] SIR 10 TDI (000); SDR 192 TDI (0000000000000000840101510401415145c1401045400411); SIR 10 TDI (000); SDR 192 TDI (000000000000000084010151040141d1458280208a800822) TDO (000000000000000044010151040141d1454280208a800822) MASK (000000000000000000000000000000c00003c030cfc00c33); SIR 10 TDI (000); SDR 192 TDI (0000000000000000c4010151040141d1458280208a800822) TDO (000000000000000044010151040141d1454280208a800822) MASK (000000000000000000000000000000c00003c030cfc00c33); SIR 10 TDI (000); SDR 192 TDI (00000000000000008401015104014191458280208a800823) TDO (00000000000000004401015104014191454280208a800823) MASK (000000000000000000000000000000c00003c030cfc00c33); [...] ..extest only... It also failed at the first vector (with the same bitpattern read back)...
The program for generating the svf files is there:
What am I doing wrong? (/Is/ there a way of doing it right?)