16
Altera Corporation
Specifications
PPP Packet Processor 155 Mbps MegaCore Function (PP155) User Guide
Transparency
Special flag characters delimit the start and end of a PPP frame. These
special characters are known as a Flag Sequence, which is the binary
sequence 01111110 (hexadecimal 0x7e). There is no length field, loss of
carrier, or other delimiter of packet boundaries. Since the data in the
packet is unrestricted, all data patterns are valid. Transparency is
achieved when the framing protocol stuffs flag and escape characters as
explained in RFC1662:
“
An octet stuffing procedure is used. The Control Escape octet is
defined as binary 01111101 (hexadecimal 0x7d), most significant
bit first (...)
After FCS computation, the transmitter examines the entire
frame between the two Flag Sequences. Each Flag Sequence,
Control Escape octet (...) is replaced by a two octet sequence
consisting of the Control Escape octet followed by the original
octet exclusive-or'd with hexadecimal 0x20 (...)
0x7e is encoded as 0x7d, 0x5e. (Flag Sequence)
0x7d is encoded as 0x7d, 0x5d. (Control Escape) (...)
”
RFC1662 also defines an ACCM for the convenience of software and
hardware designed for transferring text files. This allows other special
characters to be stuffed as directed by the user. The PP155 does not
implement the ACCM, thus the TXHDLC does not stuff anything other
than the flag and control escape patterns. However, in accordance with
RFC1662, the RXHDLC destuffs any stuffed octets.
“
On reception (...) Each Control Escape octet is also removed,
and the following octet is exclusive-or'd with hexadecimal 0x20,
unless it is the Flag Sequence (which aborts a frame).
”
Pin-Outs
The following table describes the pins used by the PP155
.
Port
Direction
Description
Receive Interface Signals
rxclk
input
Clock
rxreset_n
input
Active low reset
Midbus Receive Interface Signals
mrxena
input
Enable
mrxdat[7:0]
input
Data bus