Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Spartan-3A Device DNA ...

12 views
Skip to first unread message

Kappasm

unread,
Jul 5, 2009, 3:33:19 AM7/5/09
to
Hi,

I have read the Device DNA in VHDL, but I have some problems. I have written
code that certainly is not working well. If I put this code in the same fpga
but in different projects, I read two different dna device ... :-| ...

If someone has already written something ?

Thanks very much.

Kappa.


Antti....@googlemail.com

unread,
Jul 5, 2009, 5:42:07 AM7/5/09
to

just find the problem it has, it DEFENETLY works
and reads same dna on same chip
no matter the way you use the readout

I have written own code that reads same code as ken chapmans reader
so i know it all just works

Antti

Kappa

unread,
Jul 5, 2009, 8:29:58 AM7/5/09
to
Hi Antti,

> I have written own code that reads same code as ken chapmans reader
> so i know it all just works

You could post code ?

Thanks very much.

Kappa.

Antti....@googlemail.com

unread,
Jul 5, 2009, 8:39:52 AM7/5/09
to

you dont ask the right questions ;)

my system is customized microblazed based soc, and code is

void DNA_Read() {
int i;

SetPin(DNA_CLK, 0);
SetPin(DNA_SHIFT, 0);

// Load DNA Value
SetPin(DNA_READ, 1);
PulsePin(DNA_CLK, 1);
// Go shift mode
SetPin(DNA_READ, 0);
SetPin(DNA_SHIFT, 1);
// 57 bits of DNA shift register to read out
dna_high=0;
for (i=0;i<(57-32);i++) {
dna_high<<=1;
dna_high |= GetPin(DNA_DOUT);
PulsePin(DNA_CLK, 1);
}
for (i=0;i<(32);i++) {
dna_low<<=1;
dna_low |= GetPin(DNA_DOUT);
PulsePin(DNA_CLK, 1);
}
}


int main (void) {
LCD_Init();
DNA_Read();
xil_printf("%08X%08X",dna_high,dna_low);

return 0;
}

it doesnt help you i guess
Antti

Kappa

unread,
Jul 5, 2009, 9:31:49 AM7/5/09
to
Hi Antti,

> you dont ask the right questions ;)

Corry for my not right questions ... :-) ...

> my system is customized microblazed based soc, and code is

Is what I tried to do ....

In that way you have connected "dna_port" with pcore ?

I had created a state machine in VHDL, with this I place a "device
dna" in 64-bit register. I can connect my clock "64MHz" to "dna_port"
clock ?

> it doesnt help you i guess

Important is to help

Kappa.

Antti....@googlemail.com

unread,
Jul 5, 2009, 11:47:54 AM7/5/09
to

i think 64mhz is too high
check the datasheet

Antti

0 new messages