Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fx_s4716
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
battle_C_6
fx_s4716
Commits
a51c6d9c
Commit
a51c6d9c
authored
4 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
d909b6e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+38
-22
38 additions, 22 deletions
README.md
with
38 additions
and
22 deletions
README.md
+
38
−
22
View file @
a51c6d9c
...
...
@@ -2,33 +2,49 @@
## Team 6 - Project # 1 ( Fixed Point Number )
###
b
rief information about our values
###
1. B
rief 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를 통해 각 파일의 헤더파일을 미리 연결해줌
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment