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.
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
> 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.
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
> 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.
i think 64mhz is too high
check the datasheet
Antti