4bit 부스 곱하기 알고리즘 - main.cpp
본 자료는 미만의 자료로 미리보기를 제공하지 않습니다.
닫기
  • 1
해당 자료는 0페이지 까지만 미리보기를 제공합니다.
0페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

4bit 부스 곱하기 알고리즘 - main.cpp에 대한 보고서 자료입니다.

목차

main.cpp


4.23KB

본문내용

#include
#include

using namespace std;

int negative_;
int mul_result[10];
int n,m;

void input();
void calc(int *arrA, int *arrB, int carry);
void Dec2Bin(int num, int *arr);
void Right_sft(int front, int *Arr);
void print_bit(int *Arr,int num);
void output();


void main()
{
cout << \"< Booth Algorithm Multipler 4bit >\" << endl;
int A[10], B[10], B1[10];
int Q_state;
int sum, q, pos;
int Q[10], M[10], temp[10];
negative_ = 0; // 2양수
int count = 5;
int i, j;
int carry ;
q = 0;

memset(A,0,sizeof(A));
memset(B,0,sizeof(B));
memset(B1,0,sizeof(B1));

input();

cout << \"Binary list of M : \";
    Dec2Bin(n, M);
print_bit(M,5);
cout << endl;
cout << \"Binary list of Q : \";
    Dec2Bin(m, Q);
print_bit(Q,5);


cout << endl << endl << \"    \\t\\t AC\\t Q\\tQn Count\";
cout << endl << \"=============================================\" << endl;
cout << \"\\t\";
print_bit(A,5);
cout << \" \";
print_bit(Q,5);
cout << \"\\t\";
cout << q << \"    \";
Q_state = 3;
cout << count--; //초기 카운트
  • 가격3,300
  • 페이지수1페이지
  • 등록일2013.10.10
  • 저작시기2013.5
  • 파일형식기타(cpp)
  • 자료번호#885132
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니