Skip to content

Commit

Permalink
updating description
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikeshbajaj committed Apr 11, 2018
1 parent bdd3717 commit 5765e25
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -81,44 +81,44 @@ This will also check Three fundamental Property of LFSR
* (2) Runlength Property
* (3) Autocorrelation Property

### This MATLAB Code work for any length of LFSR with given taps (feedback polynomial) -Universal, There are three files LFSRnik1.m an LFSRnik2.m, LFSRnik3.m
### LFSRnik1
### This MATLAB Code work for any length of LFSR with given taps (feedback polynomial) -Universal, There are three files LFSRv1.m an LFSRv2.m, LFSRv3.m
### LFSRv1
This function will return all the states of LFSR and will check Three fundamental Property of LFSR
(1) Balance Property (2) Runlength Property (3) Autocorrelation Property

#### EXAMPLE
```
>>s=[1 1 0 0 1]
>>t=[5 2]
>>[seq c] =LFSRnik1(s,t)
>>[seq c] =LFSRv1(s,t)
```

### LFSRnik2
### LFSRv2
This function will return only generated sequence will all the states of LFSR, no verification of properties are done
here. Use this function to avoid verification each time you execute the program.
#### EXAMPLE
```
>>s=[1 1 0 0 1]
>>t=[5 2]
>>[seq c] =LFSRnik1(s,t)
>>[seq c] =LFSRv2(s,t)
```

### LFSRnik3 (faster)
<p>seq = LFSRnik3(s,t,N)</p>
### LFSRv3 (faster)
<p>seq = LFSRv3(s,t,N)</p>
this function generates N bit sequence only. This is faster then other two functions, as this does not gives each state of LFSR

#### EXAMPLE
```
>>s=[1 1 0 0 1]
>>t=[5 2]
>>seq =LFSRnik3(s,t,50)
>>seq =LFSRv3(s,t,50)
```



## Tips
* If you want to use this function in middle of any program, use LFSRnik2 or LFSRnik1 with verification =0.
* If you want to make it fast for long length of LFSR,use LFSRnik3.m
* If you want to use this function in middle of any program, use LFSRv2 or LFSRv1 with verification =0.
* If you want to make it fast for long length of LFSR,use LFSRv3.m

______________________________________
If any doubt, confusion or feedback please contact me
Expand Down

0 comments on commit 5765e25

Please sign in to comment.