本文へ移動
cccskills
無料GitHub で公開

computer-architecture-expert

Expert-level computer architecture covering CPU design, instruction sets, pipelining, cache hierarchy, memory systems, parallel architectures, and GPU computing.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md2.8 KB
  • .gitkeep0 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Computer Architecture Expert

Before Starting

  1. RISC or CISC architecture?
  2. Single-core performance or parallel throughput?
  3. Hardware design or software optimization focus?

Core Expertise Areas

Instruction Set Architecture

RISC: few simple instructions, load-store, uniform format, many registers. CISC: many complex instructions, memory operands, variable length, fewer registers. RISC-V: open standard ISA, modular extensions, growing adoption. ARM: dominant in mobile and embedded, energy efficient, RISC-based. x86-64: dominant in servers and desktop, CISC with RISC-like microops internally.

CPU Pipeline

Classic 5-stage: fetch, decode, execute, memory, writeback. Pipeline hazards: structural (resource conflict), data (RAW/WAW/WAR), control (branches). Hazard solutions: stalling, forwarding, branch prediction, out-of-order execution. Superscalar: multiple execution units, issue multiple instructions per cycle. Out-of-order execution: Tomasulo algorithm, reorder buffer, register renaming.

Cache Hierarchy

L1/L2/L3: smaller and faster closer to CPU, larger and slower further. Cache mapping: direct-mapped, set-associative, fully associative. Replacement: LRU, pseudo-LRU, random. Write policy: write-through vs write-back, write-allocate vs no-write-allocate. Cache coherence: MESI protocol for multi-core systems.

Memory Systems

DRAM: row and column access, refresh cycles, banks and ranks. Memory hierarchy: registers, L1, L2, L3, DRAM, SSD, HDD — latency increases. Virtual memory: TLB, page tables, huge pages for performance. NUMA: non-uniform memory access in multi-socket systems.

GPU Architecture

SIMT: single instruction multiple threads, thousands of lightweight threads. Streaming multiprocessors: groups of CUDA cores sharing instruction unit. Memory hierarchy: registers, shared memory, L1, L2, global memory (DRAM). Warp divergence: different control flow paths stall efficiency.

Best Practices

  • Profile before optimizing — measure actual bottleneck
  • Optimize for cache locality — access memory sequentially
  • Avoid branch mispredictions in hot paths
  • Use SIMD intrinsics for data-parallel operations

Common Pitfalls

PitfallFix
Cache thrashingImprove spatial and temporal locality
False sharingAlign concurrent data to separate cache lines
Branch misprediction in tight loopsProfile and restructure to help predictor
Memory bandwidth saturationReduce data movement, use compression

Related Skills

  • operating-systems-expert
  • embedded-expert
  • linux-expert

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Expert-level abstract algebra knowledge. Use when working with groups, rings, fields, modules, Galois theory, representation theory, or algebraic structures. Also use when the user mentions 'group', 'ring', 'field', 'homomorphism', 'isomorphism', 'normal subgroup', 'quotient group', 'Sylow theorem', 'Galois theory', 'polynomial ring', 'ideal', 'module', 'vector space', or 'representation theory'.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level acoustics knowledge. Use when working with sound waves, acoustic propagation, resonance, standing waves, Doppler effect, room acoustics, ultrasound, noise control, musical acoustics, or architectural acoustics. Also use when the user mentions 'sound wave', 'decibel', 'frequency', 'resonance', 'standing wave', 'Doppler effect', 'acoustic impedance', 'reverberation', 'ultrasound', 'noise control', 'harmonics', or 'sound intensity'.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level aerodynamics covering subsonic and supersonic flow, lift and drag, airfoil theory, boundary layers, compressible flow, and CFD methods.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level air quality engineering covering pollutant sources, atmospheric dispersion, air quality standards, emission controls, and air quality modeling.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level aircraft structures covering structural design philosophy, wing and fuselage analysis, fatigue and damage tolerance, composite structures, and certification.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level algorithms and complexity theory covering sorting, searching, graph algorithms, dynamic programming, greedy algorithms, NP-completeness, and algorithm design paradigms.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

luokai0 のスキルをすべて見る

このスキルの問題を報告する