Scramblers

Summary
Scramblers
scramblerProvides a function to scramble an input bit stream using Galois LFSR, which is also known as the internal LFSR.
Types
bs_typeBit stream type.
lfsr_typeThe shorthand of the DEGREE-bit packed array of type T.
Functions
newCreates a new scrambler.
scrambleReturns a scrambled bit stream.
scrambler_2Provides a function to scramble an input bit stream using the following 2-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_3Provides a function to scramble an input bit stream using the following 3-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_4Provides a function to scramble an input bit stream using the following 4-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_5Provides a function to scramble an input bit stream using the following 5-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_6Provides a function to scramble an input bit stream using the following 6-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_7Provides a function to scramble an input bit stream using the following 7-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_8Provides a function to scramble an input bit stream using the following 8-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_9Provides a function to scramble an input bit stream using the following 9-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_10Provides a function to scramble an input bit stream using the following 10-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_11Provides a function to scramble an input bit stream using the following 11-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_12Provides a function to scramble an input bit stream using the following 12-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_13Provides a function to scramble an input bit stream using the following 13-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_14Provides a function to scramble an input bit stream using the following 14-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_15Provides a function to scramble an input bit stream using the following 15-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_16Provides a function to scramble an input bit stream using the following 16-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_17Provides a function to scramble an input bit stream using the following 17-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_18Provides a function to scramble an input bit stream using the following 18-bit LFSR polynomial:
Functions
newCreates a new scrambler.
scrambler_19Provides a function to scramble an input bit stream using the following 19-bit LFSR polynomial:
Functions
newCreates a new scrambler.

scrambler

class scrambler #(type T =  bit,
int DEGREE =  2)

Provides a function to scramble an input bit stream using Galois LFSR, which is also known as the internal LFSR.

Parameters

Toptional The type of a bit stream.  The T must be bit, logic, or reg.  The default is bit.
DEGREEoptional The degree of an LFSR polynomial.  The default is 2.
Summary
Types
bs_typeBit stream type.
lfsr_typeThe shorthand of the DEGREE-bit packed array of type T.
Functions
newCreates a new scrambler.
scrambleReturns a scrambled bit stream.

Types

bs_type

typedef T bs_type[]

Bit stream type.  The shorthand of the dynamic array of type T.

lfsr_type

typedef T[DEGREE-1:0] lfsr_type

The shorthand of the DEGREE-bit packed array of type T.

Functions

new

function new(lfsr_type tap =  0)

Creates a new scrambler.

Argument

tapoptional The bit vector representation of LFSR polynomial.  The default is 0 (no scramble).

scramble

virtual function bs_type scramble(bs_type bs,
ref lfsr_type lfsr)

Returns a scrambled bit stream.

Arguments

bsAn input bit stream.
lfsrThe value of an LFSR, which can be used as the seed of the next call of this function.  The initial value should be all ones.

Returns

A scrambled bit stream.

scrambler_2

class scrambler_2 #(type T =  bit) extends scrambler#(T, 2)

Provides a function to scramble an input bit stream using the following 2-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_3

class scrambler_3 #(type T =  bit) extends scrambler#(T, 3)

Provides a function to scramble an input bit stream using the following 3-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_4

class scrambler_4 #(type T =  bit) extends scrambler#(T, 4)

Provides a function to scramble an input bit stream using the following 4-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_5

class scrambler_5 #(type T =  bit) extends scrambler#(T, 5)

Provides a function to scramble an input bit stream using the following 5-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_6

class scrambler_6 #(type T =  bit) extends scrambler#(T, 6)

Provides a function to scramble an input bit stream using the following 6-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_7

class scrambler_7 #(type T =  bit) extends scrambler#(T, 7)

Provides a function to scramble an input bit stream using the following 7-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_8

class scrambler_8 #(type T =  bit) extends scrambler#(T, 8)

Provides a function to scramble an input bit stream using the following 8-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_9

class scrambler_9 #(type T =  bit) extends scrambler#(T, 9)

Provides a function to scramble an input bit stream using the following 9-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_10

class scrambler_10 #(type T =  bit) extends scrambler#(T, 10)

Provides a function to scramble an input bit stream using the following 10-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_11

class scrambler_11 #(type T =  bit) extends scrambler#(T, 11)

Provides a function to scramble an input bit stream using the following 11-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_12

class scrambler_12 #(type T =  bit) extends scrambler#(T, 12)

Provides a function to scramble an input bit stream using the following 12-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_13

class scrambler_13 #(type T =  bit) extends scrambler#(T, 13)

Provides a function to scramble an input bit stream using the following 13-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_14

class scrambler_14 #(type T =  bit) extends scrambler#(T, 14)

Provides a function to scramble an input bit stream using the following 14-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_15

class scrambler_15 #(type T =  bit) extends scrambler#(T, 15)

Provides a function to scramble an input bit stream using the following 15-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_16

class scrambler_16 #(type T =  bit) extends scrambler#(T, 16)

Provides a function to scramble an input bit stream using the following 16-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_17

class scrambler_17 #(type T =  bit) extends scrambler#(T, 17)

Provides a function to scramble an input bit stream using the following 17-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_18

class scrambler_18 #(type T =  bit) extends scrambler#(T, 18)

Provides a function to scramble an input bit stream using the following 18-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

scrambler_19

class scrambler_19 #(type T =  bit) extends scrambler#(T, 19)

Provides a function to scramble an input bit stream using the following 19-bit LFSR polynomial:

Parameter

TThe type of bit stream.  The T must be bit, logic, or reg.  The default is bit.
Summary
Functions
newCreates a new scrambler.

Functions

new

function new()

Creates a new scrambler.

class scrambler #(type T =  bit,
int DEGREE =  2)
Provides a function to scramble an input bit stream using Galois LFSR, which is also known as the internal LFSR.
typedef T bs_type[]
Bit stream type.
typedef T[DEGREE-1:0] lfsr_type
The shorthand of the DEGREE-bit packed array of type T.
function new(lfsr_type tap =  0)
Creates a new scrambler.
virtual function bs_type scramble(bs_type bs,
ref lfsr_type lfsr)
Returns a scrambled bit stream.
class scrambler_2 #(type T =  bit) extends scrambler#(T, 2)
Provides a function to scramble an input bit stream using the following 2-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_3 #(type T =  bit) extends scrambler#(T, 3)
Provides a function to scramble an input bit stream using the following 3-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_4 #(type T =  bit) extends scrambler#(T, 4)
Provides a function to scramble an input bit stream using the following 4-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_5 #(type T =  bit) extends scrambler#(T, 5)
Provides a function to scramble an input bit stream using the following 5-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_6 #(type T =  bit) extends scrambler#(T, 6)
Provides a function to scramble an input bit stream using the following 6-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_7 #(type T =  bit) extends scrambler#(T, 7)
Provides a function to scramble an input bit stream using the following 7-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_8 #(type T =  bit) extends scrambler#(T, 8)
Provides a function to scramble an input bit stream using the following 8-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_9 #(type T =  bit) extends scrambler#(T, 9)
Provides a function to scramble an input bit stream using the following 9-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_10 #(type T =  bit) extends scrambler#(T, 10)
Provides a function to scramble an input bit stream using the following 10-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_11 #(type T =  bit) extends scrambler#(T, 11)
Provides a function to scramble an input bit stream using the following 11-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_12 #(type T =  bit) extends scrambler#(T, 12)
Provides a function to scramble an input bit stream using the following 12-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_13 #(type T =  bit) extends scrambler#(T, 13)
Provides a function to scramble an input bit stream using the following 13-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_14 #(type T =  bit) extends scrambler#(T, 14)
Provides a function to scramble an input bit stream using the following 14-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_15 #(type T =  bit) extends scrambler#(T, 15)
Provides a function to scramble an input bit stream using the following 15-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_16 #(type T =  bit) extends scrambler#(T, 16)
Provides a function to scramble an input bit stream using the following 16-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_17 #(type T =  bit) extends scrambler#(T, 17)
Provides a function to scramble an input bit stream using the following 17-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_18 #(type T =  bit) extends scrambler#(T, 18)
Provides a function to scramble an input bit stream using the following 18-bit LFSR polynomial:
function new()
Creates a new scrambler.
class scrambler_19 #(type T =  bit) extends scrambler#(T, 19)
Provides a function to scramble an input bit stream using the following 19-bit LFSR polynomial:
function new()
Creates a new scrambler.