Repetition code encoder helping

Status
Not open for further replies.

k2121

Newbie level 5
Joined
Aug 19, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
canada
Activity points
1,319
Hello
Can anyone tell me how can I write Repetition code decoder?
Thanks
 

You can use a majority logic; for a single info bit, find whether the code bits are mostly ones or zeros? If ones are more your decision is 1 and vice versa.
e.g. 1 (info bit) -> 1 1 1 (1/3 repetition code) -> 0.8 0.9 -0.1 (received bits) -> 1 1 0 (decoded) -> 1 (decision bec. we have two 1's and one 0)
 

Thanks a lot Ahmad for your helping .
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…