Cyclic Codes

Status
Not open for further replies.

Sherif Welsen

New Member
Hi every body,

I've to produce a C program that represents the one of the cyclic codes " BCH, RS, CRC, Golay, ...".

So Please if one could tell me about a link containing a source code written with C in a simple way he'd be greatfule.

Thanks inadvance
 
Searching google for combinations of Golay, LFSR (linear feedback shift register), and code should lead you to some sites with p-code or maybe even 'C'. I was able to find some perl, p-code, and C in the past.
 
I dont think performing the search is difficult ... is there a reason that you needed the specific sites/code?

In any case, this search is for CRC

here is the first hit, with source code, in c++ ...
**broken link removed**

here is the bch BCH

here is the golay Golay
 
Thanks Crust...
The problem is that I'm not that clever to write the C code, so I'm looing for some easy source code, just direct implementation for the decoder.

Thanks inadvance,
I'll keep you informed with the results.
 
Welcom back Crust,

Do you know how to write a simple C code that implement only the ENCODER for one of the cyclic codes ?

Thanks inadvance.
 
What .... unless I am mistaken, each of the links in my previous post have both encoder and decoders in 'C'. The only exception is the CRC which is a c++ file, but if you look at the code, there is no c++ except one c-string, which they have a non-c++ substitiution for posted on the same page.
 
The problem is that I know little about C and nothing about C++.
So I wanna simple C code written already for one of the cyclic encoders to study it and then present it for my course, its very important to me.

Hoping that you can help me.
 
If you dont want the c++ then choose either the golay or the bch, both of them are in C and are simple.
 
Could you give me a help and excule the code of the decoder?
I wanna just the encoder, I'll be greatful.

Thanks inadvance.
 
Sherif Welsen said:
Could you give me a help and excule the code of the decoder?

I'm not being mean, but no. Engineering is a way of thinking. The idea in lots of cases is to take something you know or have and adapt it to solve an existing problem. In this case, you have both the encoder and decoder. You need to explain the encoder to your class. What you need to do to prepare is to go through the code and cut out the pieces that are unneccessary.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…