- const : 상수표 같은 읽기 전용 변수에 사용 : 혹 const 안붙인 상수 변수중 멤버 하나만 바꿔도, .const/.bss에 메모리 이중으로 잡히고 초기화때 복사도 함 : const char *A; A = "sample"(OK); *A = 'c'(X); A는 상수문자 포인터므로, A가 가리킨 *A는 상수문자이므로 변경불가 : char * const A = "sample"; A[1] = 'i'(OK); A++(X); A는 상수 (문자포인터)므로, 주소값이 상수로 변경불가 - volatile : 외부장치/인터럽트에 의해 변경되는 메모리, 딜레이를 위한 루프 등 일반적인 컴파일러가 변경할 코드를 못 건드리게 함 : 데이터가 휙 날아가거나 일시적이기 때문에 (volatile의 뜻), 컴파일러가 최적화..
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity VGA_Pattern_Generator is port( nRst : in std_logic; clk : in std_logic; VGA_CLK : out std_logic; VGA_BLANK : out std_logic; VGA_HS : out std_logic; VGA_VS : o..
0~15를 카운팅하여 LED로 표시하는 프로그램을 테스트 해보자 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include #include #include void main(void) { unsigned char led = 0x00; DDRB = 0xff; PORTB = 0x00; while(1) { delay_ms(1000); led++; PORTB = ~led; if(led==15) led=0x00; } } cs 0에서 15, 15에서 0으로 반복하여 led로 표시 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include #include #include void main(void) { unsigned char le..
1초 생성기 12345678910111213141516171819202122232425262728293031323334353637383940414243library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity sec_gen is port( nRst : in std_logic; clk : in std_logic; sec_sig : out std_logic );end sec_gen; architecture BEH of sec_gen is signal cnt : std_logic_vector(31 downto 0); signal sig : std_logic; begin..
계층 구조(Hierarchy structure) 전체 시스템의 설계를 하나의 디자인이 아닌 기능별로 구분된 최소 모듈(블록)단위로 설계하고 이를 Top-Down 구조로 연결하거나, 협업/분업 설계(Bottom-Up)설계하여 완성시키는 방식 COMPONENT(AND GATE) 1234567891011121314151617library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity and_gate is port( A : in std_logic; B : in std_logic; Y : out std_logic );end and_gate; architecture BEH o..
- Total
- Today
- Yesterday
- REACT
- vue.js
- Next.js
- Angular
- gcp
- Cloud
- LINQ
- garbage collection
- node.js
- JavaScript
- SQLite
- nosql
- .NET
- alpine.js
- nuxt.js
- hoisting
- MySQL
- Quasar
- C#
- PostgreSQL
- 이진탐색 #중복
- Gatsby.js
- delegate
- oracle
- svelte
- aws
- RDBMS
- DevOps
- vue
- Azure
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |