Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSynchronizing TXCVR & RXCVR
Hello: If the interface between the FPGA fabric and the TX module is a 16-bit bus and the RX is 16 bit bus to the Fabric, is there a good way to synchronize so the RXCVR can detect a speci...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I am using the Cy IV. --- Quote End --- I assume you mean Cyclone IV GX. --- Quote Start --- I instantiated transceiver with Automatic synchronization . I see the pattern signals indicated the K28.5 coding correctly .. they came h9CBC, BCBC. I figured this happens sometimes after the RX reset is de-asserted. --- Quote End --- Depending on the IP core you use, its up to you to supply the correct reset sequence, so there should be no "I figure ...", you should know when it is supposed to happen :) But yeah, once the receiver CDR locks and it transitions to lock-to-data mode, it should start synchronizing. --- Quote Start --- 1- If the transmitter is up an running, when should it start sending real data --- Quote End --- The transmitter can send data whenever it likes. Whether or not the receiver at the other end is listening is another thing ... --- Quote Start --- 2- Since the FPGA FSM transmitter side is sending "something" on every clock cycle while the synchronization is detected by the RXCVR and after when does the transmitter start sending real data? How does the FPGA FSM know the beginng of real data vs the "filled data" that was sent until synchronization ocurrs? I assume at this point a protocol with beginning or frame or something needs to be detected as well and then every clock cycle is valid data until some kind of "end of frame"? (based on some type of protocol I assume) --- Quote End --- Yes, it depends on the protocol. In basic mode, you have to define the protocol. --- Quote Start --- 2- In fig 1-23 the byte order is shown misaligned but the byte ordering block that follows should put the data back into the same byte ordering as the transmitter (correct?) --- Quote End --- Yep. Depending on the ALTGX setup, you can access this signal manually, or the IP core wrapped over the ALTGX might use it to get data aligned correctly. Simulate the ALTGX component and you'll get a better feel for how things work. Cheers, Dave