본문 바로가기
HW Design/1. Verilog HDL Basic

[Verilog Data Types and Arrays] 4. 예제 풀이

by 한PU 2024. 1. 2.
728x90
반응형

data representation 의 types는?

더보기

- Binary,
- Hexidecimal
- octal
- decimal
- decimal numbers
    - can represnet but not synthesizable

 

2가지 메인 data types는? 그 차이는?

더보기

- Net type
- Variable type
- Net types are used to model connections in our design and can’t store values. Variable types can store data values and behave like variables in other programming languages.

 

point to point 연결의 가장 일반적인 type은?

더보기

wire type

 

flip flops 처럼 storage 행위 모델에 쓰이는 가장 일반적인 type은?

더보기

reg type

 

Numeric types의 두 가지 세부 분류는? 그 차이는?

더보기

- integer type
- real type
- The integer type represents whole numerical values. The real type can be used to represent decimal values as well.

 

8bit wire type을 선언하고 AAh 값을 할당하는 코드를 작성하시오.

더보기
wire [7:0] A = 8'haa;
// or
wire [0:7] B = 8'haa;

 

16 bit reg type의 배열 선언. 배열에는 총 4개의 요소가 있음. 배열의 첫 번째 요소에 FFFFh 값을, 네 번째 요소에 AAAAh 값을 할당하시오.

더보기
reg [15:0] C [3:0];
C [0] = 16'hffff;
C [3] = 16'haaaa;
728x90
반응형