Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Switching from internal ifclk to external ifclk

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Switching from internal ifclk to external ifclk
Moderator:
RSKV

Post Reply
Follow this topic



Switching from internal ifclk to external ifclk

dv2 posted on 21 Apr 2013 6:06 PM PST
Top Contributor
113 Forum Posts

 Hi

I willing to use internal ifclk to clock stable then resetting to external ifclk in FPGA. 

But i dont know how am i coding to switching internal ifclk to external ifclk in verilog

 

Is this need to inout port in verilog for clock switching?

Does anyone please let me know some example code for that?

 




Re: Switching from internal ifclk to external ifclk

NIKL posted on 21 Apr 2013 09:09 PM PST
Cypress Employee
148 Forum Posts

 dv2

Please check out the projects attached with the AN61345.

The projects and documentation have been updated.

In the App note projects, the switching of clock from internal to external has been implemented.

Please go through the App note for better understanding.

Thanks

Nikhil



Re: NIKL

dv2 posted on 21 Apr 2013 09:40 PM PST
Top Contributor
113 Forum Posts

 Thanks A lot

I just view updated F/W. It seems like solution for my case. 

But i have some questions.

1. Now i have running in fx2lp-56pin, can i use "IOA" for instead "IOC"?

(are there any change register setting for "IOA"?)

2. What am i supposed to make slwr and sensor's hsync signal in verilog during slavefifo?

(please verilog example code update please)

3.Also in verilog, what am i supposed to make "clock switchin" in verilog during slavefifo?

In switching from internal IFCLK to external IFCLK in verilog, what am i supposed to do?

 

 



Re: Switching from internal ifclk to external ifclk

NIKL posted on 23 Apr 2013 09:59 PM PST
Cypress Employee
148 Forum Posts

 dv2

If you are not using port A in your application , you can switch IOC with IOA.

I am just explaining the flow here for clarity:

1) intitially FX2LP is loaded with slave firmaware with IFCLK internal

2) FPGA is loaded with bit stream. As soon as FPGA comes up, it pulls "done" pin high

If you look at the file "slave.c" of FX2LP project, under function "TD_Poll", the code is written for monitoring PC.1 (PC.1 is onnected to done pin of FPGA), So as soon as PC.1 is high IFCONFIG (register fo rchanging IFCLK) is converted to EXTERNAL CLK and PC.0 pin of FX2LP is made high

PC.0 is connected to SYNC pin of FPGA. As soon as SYNC is high FPGA outputs the CLK. This CLK is provided to IFCLK of FX2LP. Inside FPGA, CLK is derived by taking CLKOUT from FX2LP.



Re: Switching from internal ifclk to external ifclk

NIKL posted on 24 Apr 2013 10:45 PM PST
Cypress Employee
148 Forum Posts

 Is yours a UVC application?

Can you please explain a little about your setup/application?



Re: Switching from internal ifclk to external ifclk

NIKL posted on 24 Apr 2013 10:46 PM PST
Cypress Employee
148 Forum Posts

one of us can comment more on whether hsync is to be connected to slwr  once we get an idea of your application.

 



//NILN

dv2 posted on 24 Apr 2013 12:45 AM PST
Top Contributor
113 Forum Posts

 Could you please let me know more detail? For about  slwr hsync?



Re: Switching from internal ifclk to external ifclk

NIKL posted on 26 Apr 2013 10:30 PM PST
Cypress Employee
148 Forum Posts

 hsync-slave select/enable

vsync-slave write






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20