Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Koder i dekoder kodu polaryzującego zrealizowany na FPGA
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Sławomir Stepanowski
Koder i dekoder kodu polaryzującego zrealizowany na FPGA
Commits
d9291996
Commit
d9291996
authored
2 years ago
by
Sławomir Stepanowski
Browse files
Options
Downloads
Patches
Plain Diff
Update wyjscie_zdekodowane.m
parent
24897e93
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wyjscie_zdekodowane.m
+2
-15
2 additions, 15 deletions
wyjscie_zdekodowane.m
with
2 additions
and
15 deletions
wyjscie_zdekodowane.m
+
2
−
15
View file @
d9291996
...
...
@@ -5,7 +5,6 @@ INITIAL_LEVEL = 1;
INITIAL
_
SHIFT
_
J
=
0
;
%
Bity
zamrozne
przedstawione
jako
1
XN
jako
vector
Bity
zamrozne
przedstawione
jako
1
XN
jako
vector
frozen
_
bits
_
expanded
=
nan
(
1
,
BLOCKLENGTH
)
;
frozen
_
bits
_
expanded
(
A
_
c
)
=
frozen
_
bits
;
...
...
@@ -15,11 +14,10 @@ LRs = nan(BLOCKLENGTH, log2(BLOCKLENGTH)+1);
wyjscie
_
zdekodowane
=
nan
(
1
,
BLOCKLENGTH
)
;
for
j
=
1
:
BLOCKLENGTH
if
(
A
_
c
(
j
))
%
If
the
bit
is
frozen
,
we
don
'
t
need
to
compute
anything
%
sprawdzenie
czy
bit
zamrozony
wyjscie
_
zdekodowane
(
j
)
=
frozen
_
bits
_
expanded
(
j
)
;
else
%
To
decode
,
first
compute
the
likelihood
ratio
using
the
previously
%
decoded
bits
[
LRs
,
L
]
=
compute
_
lr
(
received
_
output
,
wyjscie
_
zdekodowane
(
1
:
j
-
1
)
,
...
BLOCKLENGTH
,
j
,
LRs
,
INITIAL
_
SHIFT
_
J
,
INITIAL
_
LEVEL
)
;
...
...
@@ -39,17 +37,7 @@ wyjscie_zdekodowane = wyjscie_zdekodowane(A);
end
%
Compute
the
likelihood
ration
using
channels
outputs
and
decoded
bits
.
%
See
Arikan
formula
74
and
75
%
%
We
complete
the
table
LRs
to
avoid
recomputing
the
same
likelihood
ratio
.
%
%
level
indicates
the
recursion
level
(
1
for
decision
level
,
log2
(
N
)
+
1
for
%
channel
level
)
.
%
%
shift
_
j
allows
to
compute
quickly
where
the
local
j
is
in
the
LRs
table
%
(
abs
_
j
=
j
+
shift
_
j
)
.
%
%
For
convenience
,
return
L
:=
LRs
(
j
)
%
%
INPUT
...
...
@@ -91,7 +79,6 @@ if(N == 1)
return
;
end
%
%
Use
formula
74
or
75
according
to
the
parity
of
j
%
First
compute
the
recursive
likelihood
ratio
(
same
are
used
)
if
(
mod
(
j
,
2
)
==
1
)
j
_
even
=
j
+
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment