Skip to content
Snippets Groups Projects
Commit a51c6d9c authored by root's avatar root
Browse files

Update README.md

parent d909b6e8
No related branches found
No related tags found
No related merge requests found
......@@ -2,33 +2,49 @@
## Team 6 - Project # 1 ( Fixed Point Number )
### brief information about our values
### 1. Brief information about our values
* fx_s4716 : fx-> fixed point(고정 소수점 방식 사용), s-> signed(부호 1비트 사용),
4716 -> 정수부 47비트, 소수부 16비트 사용
* fx_s4716
* **fx** -> fixed point(고정 소수점 방식 사용)
* **s** -> signed(부호 1비트 사용)
* **4716** -> 정수부 47비트, 소수부 16비트 사용
* minimum : -140,737,488,355,328 (-2^63/2^16)
* maximum : 140,737,488,355,327.9999847412109375 (2^63-1/2^16)
* resolution : 0.0000152587890625 (1/2^16)
### list of functions ( all functions are based on fixed point number operation )
* fx_s4716_double_add(a, b) - a와 b의 합 연산
* fx_s4716_double_sub(a, b) - a와 b의 차 연산
* fx_s4716_double_mul(a, b) - a와 b의 곱 연산
* fx_s4716_double_div(a, b) - a와 b의 나누기 연산
* fx_s4716_double_sqrt(a) - a의 제곱근 연산
* fx_s4716_double_pow(a) - a의 제곱 연산
* fx_pi - PI값을 고정소수점으로 변환
* fx_inv_pi - 1/PI값을 고정소수점으로 변환
* fx_to_double(a) - 고정소수점에서 double형으로 변환
* double_to_fx(a) - double형에서 고정소수점으로 변환
* fx_sine(a) - sin(a)값을 고정소수점으로 변환
### Make Build
### 2. List of functions ( All functions are based on fixed point number operation. )
* fx_s4716_double_add(a, b) : a와 b의 합 연산
* fx_s4716_double_sub(a, b) : a와 b의 차 연산
* fx_s4716_double_mul(a, b) : a와 b의 곱 연산
* fx_s4716_double_div(a, b) : a와 b의 나누기 연산
* fx_s4716_double_sqrt(a) : a의 제곱근 연산
* fx_s4716_double_pow(a) : a의 제곱 연산
* fx_pi : PI값을 고정소수점으로 변환
* fx_inv_pi : 1/PI값을 고정소수점으로 변환
* fx_to_double(a) : 고정소수점에서 double형으로 변환
* double_to_fx(a) : double형에서 고정소수점으로 변환
* fx_sine(a) : sin(a)값을 고정소수점으로 변환
### 3. Make Build
- Makefile은 기본저긍로 Target, Dependency, Recipe 등에 대한 Rules로 이루어져 있다.
```Text
<Target> : <Dependencies>
<Recipe>
```
- Macro, Variable 이용
1. SRCS : 소스 파일들의 이름을 적는다.
2. OBJS : 목적 파일들의 이름을 적는다.
3. CC : gcc
4. CFLAGS : 컴파일에 필요한 각종 옵션을 추가한다.
5. $@ : 현재 Target 파일명
6. $^ : 현재 모든 dependency 파일들의 명단
- test.c, fx_s4716_double.c 와 fx_s4716_double.h를 make 명령어 하나로 자동으로 빌드하게 해줌
- gcc 컴파일러를 사용하였으며 mytest 실행파일과 각 c파일의 목적파일을 자동으로 생성
* -lm : math.h 라이브러리 추가
- make clean을 통해 실행파일과 목적파일을 삭제할 수 있음
- make dep를 통해 각 파일의 헤더파일을 미리 연결해줌
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment