ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
Functions | Variables
lfsr.cpp File Reference
#include "lfsr.h"
Include dependency graph for lfsr.cpp:

Functions

unsigned int GetPrimePoly (int degree, int select)
 
template<int W>
sc_uint< W > GetNextLfsrState (sc_uint< W > state)
 
template sc_uint< 8 > GetNextLfsrState< 8 > (sc_uint< 8 > state)
 
template sc_uint< 16 > GetNextLfsrState< 16 > (sc_uint< 16 > state)
 

Variables

int polys_available [MAXLFSR - 1]
 
unsigned int prime_poly_list_few_xors [MAXLFSR - 1][16]
 
unsigned int prime_poly_list_many_xors [MAXLFSR - 1][16]
 

Function Documentation

◆ GetNextLfsrState()

template<int W>
sc_uint<W> GetNextLfsrState ( sc_uint< W >  state)

◆ GetNextLfsrState< 16 >()

template sc_uint<16> GetNextLfsrState< 16 > ( sc_uint< 16 >  state)

◆ GetNextLfsrState< 8 >()

template sc_uint<8> GetNextLfsrState< 8 > ( sc_uint< 8 >  state)

◆ GetPrimePoly()

unsigned int GetPrimePoly ( int  degree,
int  select 
)

Variable Documentation

◆ polys_available

int polys_available[MAXLFSR - 1]
Initial value:
= {
1, 2, 2, 6, 6, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 14,
16, 16, 16, 16, 16, 16, 16, 16,
}

◆ prime_poly_list_few_xors

unsigned int prime_poly_list_few_xors[MAXLFSR - 1][16]

◆ prime_poly_list_many_xors

unsigned int prime_poly_list_many_xors[MAXLFSR - 1][16]