Skip to content

Commit 8cc5fc4

Browse files
committed
E should be no greater than 8192.
1 parent 7926ee6 commit 8cc5fc4

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
@@ -63,6 +63,9 @@
6363
end
6464

6565
E = length(f_tilde);
66+
if E > 8192
67+
error('polar_3gpp_matlab:UnsupportedBlockLength','E should be no greater than 8192.');
68+
end
6669

6770
% The CRC polynomial used in 3GPP PBCH and PDCCH channel is
6871
% D^24 + D^23 + D^21 + D^20 + D^17 + D^15 + D^13 + D^12 + D^8 + D^4 + D^2 + D + 1

PDCCH_encoder.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
if A > 140
5555
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no greater than 140.');
5656
end
57+
if E > 8192
58+
error('polar_3gpp_matlab:UnsupportedBlockLength','E should be no greater than 8192.');
59+
end
5760

5861

5962
% The CRC polynomial used in 3GPP PBCH and PDCCH channel is

0 commit comments

Comments
 (0)