검색어 입력폼

scrambler

등록일 2004.09.17 한글파일한컴오피스 (hwp) | 4페이지 | 가격 1,000원

소개글

OFDM 통신방식을 구현하는 첫번째 단계로 구현한 스크램블러입니다.
This program is Scrambler.
Source of this program is the Song "Ode to joy".
At first, get hex code data from "input.txt" file. =>GetMessage();
Next, Generate Sequence array with the Seed "1011101".
This process includes "Xor process".
Last, Scrambler function generates scrambled data using DATA bits and
Sequence array.
If you excute this program, this program will show you First 144 bits
after scrambling.

컴파일 실행환경

작업환경
- 데스크탑
- CPU : 1.3GHz
- Memory : 256Mbyte
- Hdd : 60 Gbyte
- 운영체제 : window XP
- 통신속도 : adsl lite (1Mbps)

본문내용

/*
This program is Scrambler.
Source of this program is the Song "Ode to joy".
At first, get hex code data from "input.txt" file. =>GetMessage();
Next, Generate Sequence array with the Seed "1011101".
This process includes "Xor process".
Last, Scrambler function generates scrambled data using DATA bits and
Sequence array.
If you excute this program, this program will show you First 144 bits
after scrambling.
*/
#include<iostream>
using namespace std;
int DATA1[864] , DATA2[864] , Scrambled[864];
void GetMessage(); //Converting hex to binary than making DATA bits
void GetSequence(); //Generating the Sequence array with the Seed
void Scrambler(int *input, int *output); // Xor process between DATA bits
int xor(int a, int b); // and Sequence array
main()
{
int j,k,num;
GetMessage();
GetSequence();
Scrambler(DATA1,DATA2);
num=0;
for(k=0 ; k<6 ; k++)
{
for(j=0 ; j<24 ; j++)
{
cout<<Scrambled[num];
num++;
}
cout<<endl;
}
return 0;
}

참고 자료

없음
다운로드 맨위로