good morning
I want to program a vhdl code wich work with input , output and selector
pointing a generic component. this component is a registre lfsr each
time it take new parameter generator polynomial
it joined my idea of implementation
And this my first think of code :
1
libraryIEEE;
2
useIEEE.STD_LOGIC_1164.ALL;
3
useIEEE.STD_LOGIC_ARITH.ALL;
4
useIEEE.NUMERIC_STD.ALL;
5
useSTD.TEXTIO.ALL;
6
libraryWORK;
7
useWORK.pkgg.ALL;
8
entityscrambleris
9
Port(e:inSTD_LOGIC_VECTOR(29downto0);
10
Sel:inSTD_LOGIC_VECTOR(3downto0);
11
s:outSTD_LOGIC_VECTOR(29downto0));
12
endscrambler;
13
architectureBehavioralofscrambleris
14
15
SIGNALrst_n:std_logic;
16
SIGNALclk:std_logic;
17
SIGNALdout:std_logic_vector(29downto0);
18
19
CONSTANTwidth:integer:=30;
20
CONSTANTlength:integer:=31;-- length of the register
siwar wrote:> So I don't understand how to make a generic registre lfsr with different> value
What do you mean with a "different value"?
Different taps?
siwar wrote:> 12:33siwar wrote:> 13:02> please help me
Please wait some minutes. At least half an hour. This is not a hotline.
And then post your own suggestion of a solution for the desired
component "genlfsr". Then we can discuss the design. But no one is
intended to do all of your job, bcause its your homework...
And additionally: one post is enough! I have deleted the other one.