UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor ght113
Visitor
13,199 Views
Registered: ‎05-26-2014

Incorrect Bitstream file from XCF

Jump to solution

Hi,

 

I'm in a partial reconfiguraion design using ICAP. I'm working on ML507. 

I build partial betstream files and load them into two revision of XCF. In my code the desired revision is selected through RS pins, and then send its files to the ICAP. But not affected.
Now, I'm going to debug the data that read from XCF and the result is as follow:

INCORRECT1.jpg

Whilst, the correct sequence must be as follw:

 

INCORRECT2.jpg

 

 

It's seems that a '1' is added to each of byte!

 

 

So, i think the problem can be the result of this incorrect data reading.

 

what's my mistake?

 

Thanks

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor ght113
Visitor
16,867 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

oh my god!

 

I forgot to assert the "sram_flash_d0_en" and it cause to the D0 hold to '1' for all the time!

 

Thanks to every one.

10 Replies
Visitor ght113
Visitor
13,156 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

Is it possible that this occurred due to wrong read operation?

 

At the first i assert the cf_b and ce_b and oe to the zero. and then after 300ns relase cf_b and oe.

0 Kudos
Visitor ght113
Visitor
13,126 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

Hi, i tested in several way but yet it send back the above sequence.

 

Can any one help please? 

 

Thanks

0 Kudos
Xilinx Employee
Xilinx Employee
13,116 Views
Registered: ‎07-23-2012

Re: Incorrect Bitstream file from XCF

Jump to solution
Hi,

Did you get a chance to perform verify operation of the PROM? If yes, what is the result?

Try to readback the PROM using impact and compare it with the original mcs file.

This will give us a clue whether the image in the PROM got corrupt or not.

Regards,
Krishna
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Visitor ght113
Visitor
13,115 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

In the ML507 schematic D0:D2 are pulled up as can be see follow:

INCORRECT3.jpg

 

Is this the problem?

Of course when i readback .mcs file from xcf it's data is correct.

0 Kudos
Visitor ght113
Visitor
13,110 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

Hi,

Did you get a chance to perform verify operation of the PROM? If yes, what is the result?

Try to readback the PROM using impact and compare it with the original mcs file.

This will give us a clue whether the image in the PROM got corrupt or not.

Regards,
Krishna

-----------------------------------------------

I did verify by impact and the result is succeed.

 

I tried readback and compare it with orginal and anything is identify.

 

I think the problem is the result of my bad read operation. this is the fsm that i use to issue read operation.

process (state_reg,trigger,tick,d)
begin
xcf_ce<='1';
xcf_cf<='1';
xcf_oe<='1';
count_reset<='0';
state_next<=state_reg;

case state_reg is
when idle=>
state1<="000";-- this is uesed for debuging
count_reset<='1';
if(trigger='1') then
state_next<=s0;
end if;
when s0=>
state1<="001";-- this is uesed for debuging
xcf_ce<='0';
xcf_cf<='0';
xcf_oe<='0';
if(tick='1') then-- after 300ns
state_next<=s1;
end if;
when s1=>
state1<="010";-- this is uesed for debuging
xcf_ce<='0';
when s2=>
state1<="011";-- this is uesed for debuging
xcf_ce<='0';
end case;
end process;

 

 

0 Kudos
Xilinx Employee
Xilinx Employee
13,105 Views
Registered: ‎07-23-2012

Re: Incorrect Bitstream file from XCF

Jump to solution
Yeah, this could be an issue with the code. In the first post, you stated that you were not able to do partial reconfiguration successfully through ICAP, how did you reach this conclusion?

Is that the reason why you are trying to read the contents of the PROM?

Regards,
Krishna
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Visitor ght113
Visitor
13,103 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

In the partial code i read the output of ICAP and debuge it and result is this: 

INCORRECT4.jpg

if it can detect the synch word the output must be came "df" but as you can see this is "9f". and of cource i write to RM module, an adder and a multiplier that replaced together. at the first i load the config1 that contain adder and then trrig the fsm to reconfig RM moudule from revesion1 of XCF that contains the multiplier. but this is not work and still adder becuase the result of RM module is the summention of its input.

 

yes, it's my resone to read the contents of the PROM. and spetialy why the sync word isn't correct.

 

Thanks for your attention.

 

0 Kudos
Xilinx Employee
Xilinx Employee
13,095 Views
Registered: ‎07-23-2012

Re: Incorrect Bitstream file from XCF

Jump to solution
If you are targeting select map mode configuration then you can use sleectmap abort command to see if the sync word got detected or not.

You can find the detailed explanation on this in "SelectMAP ABORT" section of http://www.xilinx.com/support/documentation/user_guides/ug191.pdf

Regards,
Krishna
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Visitor ght113
Visitor
13,088 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

Is this your mean?:" there is a command that i can send to the ICAP and then it send back the status."

 

I can't find any command. In ug191 just is mentioned :

"An ABORT is an interruption in the SelectMAP configuration or readback sequence

occurring when the state of RDWR_B changes while CS_B is asserted. During a
configuration ABORT, internal status is driven onto the D[7:4] pins over the next four
CCLK cycles. The other D pins are always High."

 

I can see the status from Output of the ICAP that its value is 9f at all the time.

-----------------------------------------------------------------------------------------------------------

Now, I try to do PR using Slave SelectMAP. But it isn't work too.

Is there a spetial constraint or bit gen option that must be use? 

Of cource i use "CONFIG CONFIG_MODE=S_SELECTMAP;" in ucf and "-g Persist:Yes" in bit gen option.

0 Kudos
Highlighted
Visitor ght113
Visitor
16,868 Views
Registered: ‎05-26-2014

Re: Incorrect Bitstream file from XCF

Jump to solution

oh my god!

 

I forgot to assert the "sram_flash_d0_en" and it cause to the D0 hold to '1' for all the time!

 

Thanks to every one.