[전기전자기초실험]9장 - 연산 회로 설계 실험 [예비&결과]
- 최초 등록일
- 2010.12.08
- 최종 저작일
- 2007.10
- 8페이지/ 압축파일
- 가격 1,000원
소개글
1. 다른 형태의 수 체계를 조사하시오.
(1) Sign and Magnitude Representation
- High order bit is sign : 0 = positive(or zero), 1 = negative
- The remaining bits is the magnitude : 0 (000) thru 7 (111)
- Number range for n bits = +/- 2 -1
- Problem : Two representations for 0 : +0(0000) & -0(1000)
- Cumbersome addition / subtraction
- Must compare magnitudes to determine sign of result
(2) One`s Complement
- Positive numbers represented same as in Sign & mag. Scheme
- N is positive number, then is the negative Ones complement
- Subtraction implemented by addition & 1`s complement
- Problem : Still two representations of 0
- Some complexities in addition
목차
[결과]9주.hwp
[예비]9주.hwp
본문내용
1. 다른 형태의 수 체계를 조사하시오.
(1) Sign and Magnitude Representation
- High order bit is sign : 0 = positive(or zero), 1 = negative
- The remaining bits is the magnitude : 0 (000) thru 7 (111)
- Number range for n bits = +/- 2 -1
- Problem : Two representations for 0 : +0(0000) & -0(1000)
- Cumbersome addition / subtraction
- Must compare magnitudes to determine sign of result
(2) One`s Complement
- Positive numbers represented same as in Sign & mag. Scheme
- N is positive number, then is the negative Ones complement
- Subtraction implemented by addition & 1`s complement
- Problem : Still two representations of 0
- Some complexities in addition
2. 4비트 덧셈기/뺄셈기에서 오버플로우 조건이 왜 최상위 2비트 올림수가 다를 때 인지 조사하시오.
오버플로우는 양수의 음수를 더했을 경우에는 절대로 발생하지 않는다. 부호가 다르면 결과가 음수이건 양수이건 두 수중 큰 수보다 작아지기 때문이다. 두 수의 부호가 같을 경우 발생한 오버플로우는 항상 결과의 부호를 바꾸고, 잘못된 (n)비트의 결과를 가져온다. 다음의 두 예를 살펴보자.
(+5) 0 101 (-5) 1 011
+ (+6) 0 110 + (-6) 1 010
+11 1 011 -11 0 101
(캐리 0,1 발생) (캐리 1,0 발생)
위 둘의 경우 양수가 되어야 할 결과는 음의 부호를 가지게 되고, 음수가 되어야 할 결과는 양의 부호를 가지게 되었다. 만약 부호비트 밖으로 발생한 캐리가 부호로 간주된다면 이 덧셈의 5비트 결과는 옳은 것이나 이는 4비트 연산이기 때문에 틀린 값이 된다. 즉 오버플로우는 결과의 부호를 반대로 바꾸어 틀린 결과를 발생한다. 이는 부호비트로 발생해 들어오는 캐리와 부호비트 밖으로 발생해 나가는 캐리를 조사해 알아낼 수 있다. 위의 경우에서 보듯이 제일 왼쪽의 두 비트에서 발생한 캐리가 다를 경우 즉 양수를 음수로, 음수를 양수로 변환시켰을 경우에는 오버플로우가 발생한 것이다.
참고 자료
없음
압축파일 내 파일목록
[예비]9주.hwp
[결과]9주.hwp