분류 전체보기 232

DSD - Structural Modeling(2) / instantiation / ports / basic example / parity bit

Structural Modeling Instantiation of Basic Gates - Primitives gate는 primitives이다. 사용자가 만든 것이 아닌 주어진 것이며 사용자, simulation program이 모두 알고 있는 정보이다. module basic_gates (x, y, z, f) ; input x, y, z; output f ; wire a, b, c; // internal nets // Structural modeling using basic gates. nor g1 (b, x, y); not g2 (a, x); and g3 (c, a, z); nor g4 (f, b, c); endmodule primitives는 module이름이 본인의 기능을 하는 것이나 마찬가지이..

DSD - Structural Modeling(1) / gate primitives

Structural Modeling Modeling in Verilog - Structurla Modeling : a set of interconnected component - dataflow modeling : by interconnecting registers and a combinational logic put between them - Behavioral Modeling : concurrent algorithms Structural Modeling [GPT said] Structural modeling refers to designing digital circuits using a structural descripton of the circuit. The structural description..

DSD - Verilog Coding Basic

Verilog coding basic 수 표현 앞쪽에는 사용할 bits수를 ' 뒤에는 사용할 진수(ex. b,h,d)를 명시하고, 그 뒤에 입력할 값을 작성한다. cpu는 general purpose를 가지고 있으므로 많은 기능을 위한 많은 공간을 필요로 하기에, cpu와 같은 HW에서는 공간의 낭비가 없어야하므로 사용하고자 하는 bit 수를 공간 낭비 없이 명확히 해야한다. 수 표현에 있어서 verilog의 엄청난 장점은 음수 사용이 -로 가능하다는 것이다. ex, -6;d3 //3의 2의 보수로써 음수 위와 같이 편리하게 음수 사용이 가능하다. Invalid & Unsized 1.bit 수 or 진수 표현이 없을 때 default로 32bits가 할당되고 decimal(십진수)로 인식된다. 2. 선언..

DSD - Verilog HDL / SW vs HW / schematic

SW vs HW Programming language (vs) Hardware description language - Final Product? or just descriptoin? Programming language는 ~~.c 형태의 파일로서 final product가 완성된 셈이다. 하지만 HDL은 말 그대로 Hareware의 description일 뿐이며, 아직은 hardware도 아니고 final ouput 없는 상태라고 할 수 있다. - Sequential (ordered? out of ordered?) Programming language는 순서가 매우 중요하며 윗줄 아랫줄의 차이가 있고, 한줄 한줄이 순서대로의 instruction이다. 하지만 hdl에서는 code의 순서는 전혀 중요하지..

카테고리 없음 2023.04.02

DSD - Verilog HDL-based design flow(2) / ASIC

ASIC ASIC (Application-Specific Integrated Circuit) : It is a type of specialized integrated circuit (IC), designed for a specific application or task, as opposed to a general-purpose IC that can be used for a wide range of applications. ASICs are typically used in situations where performance, power consumption, and cost are critical factors. (ex, microprocessors, digital signal processor, grap..

DSD - Verilog HDL-based design flow / FPGA

[ Contents ] - Introduction to Verilog - HDL-based design flow (FPGA, ASIC) - Comparison with others Step1. Introduction to Verilog Importance of HDLs HDL : HDL is an acronym(두문자) of Hardware Description Language. Two most commonly used HDLs - Verilog HDL (also called Verilog for short) - VHDL (Very high-speed integrated circuits HDL) Features of HDLs - Design can be described at a very abstract..

Processor / Bandwidth / data bus / cache memory

Bandwidth Bandwidth (대역폭) ( 사전적 의미 ) : 특정한 기능을 수행할 수 있는 주파수의 범위로, 헤르츠 단위로 측정된다. 문맥에 따라 통과대역 대역폭 (passband bandwidth)로 부를 수 있다. 정보이론, 무선 통신, 신호 처리 등 여러 분야에서 중요한 개념으로 다룬다. ( in processor ) :대역폭은 일정한 시간 내에 데이터 연결을 통과할 수 있는 정보량의 척도를 의미한다. 즉, processor에서는 processor가 처리할 수 있는 데이터 양의 한계(maximum)를 의미한다. 이는 processor내부의 data bus, cache등 다양한 하드웨어 요소들의 속도와 효율성에 영향을 받는다. *** Computer bus : cpu가 처리한 데이터들은 모니..

Processor / Latency

Latency Latency : Processor가 명령어를 실행하기 위해 필요한 시간을 의미한다. ( 즉, 명령어를 받고 해당 명령어를 실행하기까지의 걸리는 시간을 의미한다. ) Latency 최적화 - Increase Processor clock speed : Processor가 명령어를 빠르게 실행할 수 있도록 하여, 작업 완료 시간을 줄일 수 있다. [ Ways to increase the processor clock speed ] - Overclocking(오버클럭) : 제조업체의 규격을 초과하여 Processor의 clock speed를 높이는 방법이다. 오버클럭은 processor를 손상시키거나, 안정성 문제를 일으킬 수 있다. - Upgrading the processor(프로세서 업그레이..

Verilog - 4bit Ripple Carry Adder

Full Adder 4bit Full Adder Hierarchical Design module이 여러개일 때 ( design source) 4bit full adder를 만들기 위해서는 half_adder, full_adder, full_adder_4bit 총 3개의 module을 필요로 한다. Vivado에서는 여러 개의 모듈을 사용할 수 있다. 여러 개의 모듈이 포함된 위와 같은 vivado design을 작성할 때, 일반적으로 하나의 design source file에 모든 모듈을 작성한다. 이렇게 하면 모듈 간 종속성을 쉽게 관리할 수 있으며, 코드를 쉽게 재사용할 수 있다. 따라서, 여러 개의 module을 사용하더라도 하나의 design source file에 모든 module을 작성하는 것..