본문 바로가기
728x90
반응형

HW Design80

[Verilog Data Types and Arrays] 3. 배열 array types 생성, 사용 가능 memories 모델링에 특별히 유용 array 선언 변수 이름 뒤에 array 요소를 선언하면 됨. 이 선언은 [[2-2. Basic Data Types in Verilog|벡터 크기 필드]]와 동일한 형식을 취함.// array type 선언 일반 구문 ; 3 bit reg type의 array 만들기 (배열 요소 : 8개)reg [2:0] example [7:0]; [] 를 사용하여 배열의 개별 요소에 access 가능 example 배열의 마지막 요소에 5h 값 할당example[7] = 3'h5; EDA playground Example을 통해 simulate 할 수 있음. Multi Dimensional Arrays (다차원 배열) 1995 표준에.. 2024. 1. 2.
[Verilog Data Types and Arrays] 2. 기본 데이터 type net types & variable types net types 디지털 회로의 연결을 모델링. 값 저장 x must be driven with data variable types registers or flip flops 모델링 값 저장 o C 언어 등의 ==변수== 와 같다. data table data 설명 0 2진수 0 1 2진수 1 z High impedance x unknown value 변수의 일반적 구문 = ; - type 선언 - ` integer example = 100; ` Net Types in Verilog 다른 컴포넌트 사이의 물리적 연결 표현 can not be used to store data values or drive data 위 그림에서 mux의 output을 ff의 i.. 2024. 1. 2.
[Verilog Data Types and Arrays] 1. Data 표현 Verilog 를 쓸 때, digital data 값을 code로 표현해야 함. binary (2진수) hexadecimal (16진수) octal (8진수) 등. 데이터 표현에 있는 비트 수 또한 정의해야 함. 베릴로그 == HW circuits을 describe 하기 때문. 원하는 만큼의 data 버스를 만들 수 있음. ' 표현하고자 하는 data의 비트 수를 나타냄 data가 어떻게 표시되는지 명시함. b : binary h : hex o : octal d : decimal 실제 data 값 예시 // Binary value of 8 4'b1000; // Hex value of 8 4'h8; // Octal value of 8 4'o10; // Decimal value .. 2024. 1. 2.
[Verilog Tutorial] Level-1 Basic Verilog Module 모음 1. Verilog 의 구조 2023.12.31 - [Verilog/Basic] - [Basic Verilog Module] 1. Verilog 의 구조 [Basic Verilog Module] 1. Verilog 의 구조 (https://fpgatutorial.com의 내용을 정리함.) 1. Structuring Verilog Code FPGA Verilog 코딩은 HW 디자인이다. 컴퓨터 프로그래밍이 아니다. 서로 다른 여러 ==컴포넌트==의 동작을 설명해야 한다. 그 이후에 서로 han-pu.tistory.com 2. 모듈 인스턴스화 2024.01.02 - [Verilog/Basic] - [Basic Verilog Module] 2. 모듈 인스턴스화 [Basic Verilog Module] 2. 모.. 2024. 1. 2.
728x90
반응형