Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

USB 3300 PHY not showing up on DE1-SoC board.

Altera_Forum
Honored Contributor II
4,345 Views

Hello All, 

 

I was trying to get some data to pop up over the 3300 (http://www.microchip.com/wwwproducts/devices.aspx?product=usb3300) USB phy. 

And was finding the .QSF file was incomplete, so I assigned the pins at 3.3v LVTTL. 

 

and used.. 

module Phytherface ( input clock, input direction, input readline, inout uart, output writeline ); reg a; reg b; assign uart = direction ? a : 8'bz; assign writeline = b; always @ (posedge clock) begin b <= uart; a <= readline; end  

 

in conjunction with. 

Phytherface AK01 (.direction(HPS_USB_DIR),.clock(HPS_USB_CLKOUT),.uart(HPS_USB_DATA),.writeline(take)); wire take; takeone TK01 (.in(take),.out (HEX5)); /*<-- posedge sample&hold*/ endmodule  

 

But no go,  

Did I do something obviously wrong (with the tristate?)?
0 Kudos
13 Replies
Altera_Forum
Honored Contributor II
2,850 Views

USB 3300 is connected to HPS, why do you want to use it from FPGA?

0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

Mostly because I want to go purist FPGA on this one, possibly get a better fit or cheaper chip at that. 

Not that I understand it all as to how to relate to the ARM part. Didn't even delve into it. 

 

Can I reroute this for now? Or how do I go about this problem?
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

USB to UART is FTDI chip and not USB 3300. 

 

I dont think you can reroute pin. Better to use Linux on HPS to have USB. With FPGA is very complex to handle USB protocol. 

 

You can make FPGA and HPS talk, see DE1-SOC manual and examples.
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

The USB3300 chip has a 1byte bidirectional paralel IO, and the FTDI has RX TX lines. 

I gues the 3300 chip does the handshake, and it puts out a clock for convenience. I think it lacks sense not to put this onto the FPGA. 

But hey.. :)  

 

Ill start to read about it, thanks in advance.
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

The answer should be in this topic, although I find it hard to grasp. Signals don't automatically show up on my part like I assume they should? 

Also strange to have to clock some parts for this. 

 

http://www.alteraforum.com/forum/showthread.php?t=44486
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

Hello, 

 

Would it be possible for you to show via some simple block diagram functionality you require? I have been working on USB cores. I might be able to help you. 

 

Warm Regards, 

Bhaumik
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

 

--- Quote Start ---  

Hello, 

 

Would it be possible for you to show via some simple block diagram functionality you require? I have been working on USB cores. I might be able to help you. 

 

Warm Regards, 

Bhaumik 

--- Quote End ---  

 

 

In the topic I linked to in the post before, I updated the status of my problem.
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

Hello, 

 

I do not have much idea about using HPS. But I would like to inform that USB3300 is USB PHY which follows ULPI specification. I afraid code you have written at the beginning of this post would not work. Please refer datasheet of USB3300 as well as ULPI specification to get idea about how to communicate with it. Also in DE1-SOC board, D+/D- pins of USB3300 have been routed to one USB Hub. So it is intended to work only as USB Host mode. Terms I have used are related to USB. I afraid it may confuse. 

 

If it is not confidential, please let me know function you are planning to do with USB3300.  

 

Warm Regards, 

Bhaumik
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

 

--- Quote Start ---  

I would like to inform that USB3300 is USB PHY which follows ULPI specification. I afraid code you have written at the beginning of this post would not work.  

--- Quote End ---  

 

 

Why would that be then? 

 

Anyway, This thread is where it goes from here. Could be better suited for HPS dummies like me :P 

http://www.alteraforum.com/forum/showthread.php?t=44486
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

 

--- Quote Start ---  

Why would that be then? 

--- Quote End ---  

 

 

Cyclone V SOC has inbuilt USB Controller which supports ULPI Interface. That USB controller uses that USB PHY chip. 

 

If you wish to communicate with that USB chip from FPGA ( i.e. bypassing inbuilt USB Controller ), you need to follow ULPI specification while writing Verilog code. 

 

Anyway, best of luck for your attempt. 

 

Warm Regards, 

Bhaumik
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

If you want usb simple and fast add a ft232h ic

0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

 

--- Quote Start ---  

Cyclone V SOC has inbuilt USB Controller which supports ULPI Interface. That USB controller uses that USB PHY chip. 

 

--- Quote End ---  

 

 

If you're not going to tell what it's going to be that's causing it, you're just spamming the topic. Thats why I brought up the link to the area I'd like to move into twice. Since that topic sank into oblivion again.. Which may well have had the potential to save me a day of work. 

 

I don't know what the problem would be. So does it mean the chip is misconfigured by default to recieve "is what im doing" a byte of data from whatever device, (that may well be a computer slave,or a MIDI controller master) ? And if so why?  

Seeing I don't think I would "have" to start feeding it headers, since it provides it's own clock.
0 Kudos
Altera_Forum
Honored Contributor II
2,850 Views

Hi, 

 

I'm using DE1-SoC board with linux console provided by Terasic. what should i do to change the USB Host mode to USB peripheral mode ? I know that i have to short the ID pin of usb3300 PHY to V3.3. But i don't know if i have to do some software modifications. The idea is to make my board act as a device and establish a communication between the PC and the board. 

 

ps: sorry for my bad english
0 Kudos
Reply