Skip to content

Commit a2cf529

Browse files
committed
A should be no less than 12 in PDCCH, since padding is used for shorter lengths. This can be further improved by treating the padded bits as frozen bits.
1 parent 3a5d1c1 commit a2cf529

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

PDCCH_decoder.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343

4444
addpath 'components'
4545

46+
if A < 12
47+
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no less than 12.');
48+
end
4649
if A > 140
4750
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no greater than 140.');
4851
end

PDCCH_encoder.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141

4242
A = length(a);
4343

44+
if A < 12
45+
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no less than 12.');
46+
end
4447
if A > 140
4548
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no greater than 140.');
4649
end

0 commit comments

Comments
 (0)