Skip to the content
2 layers100 × 100 mmFPGAPiano, the printed circuit board in 3D

DE10-Nano + FPGAPiano シールド(回路図 rev2)向けの ピンアサイン/極性確認用 Quartus Prime プロジェクトです。 シールド上の各出力(行・列・7セグ・桁・プログレスバー・緑LED)が正しい端子と正しい極性で光るかどうかを、 実機上で目視確認するためのテスト回路 pintesttop を収録しています。

Size
100 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
113
Nets
206
Pads
470
Tracks, vias
893, 85
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
2 Jul 2026
Updated
9 Jul 2026

Overview

FPGAPiano is an open-source printed circuit board by RyutaroMasuda, from the RyutaroMasuda/WASEDA-PianoTile repository on GitHub, published under the MIT licence. It is a 2-layer board of 100 × 100 mm with 113 parts on 206 nets, routed with 893 tracks and 85 vias.

It is built around the IRLML2246TRPBF. Its parts include 74 resistors, 11 transistors, 7 capacitors, 7 ICs and 7 switches. It belongs with the FPGA and CPLD boards of this library.

Main components

1

README

README.md

動いている様子 (押したらリンク飛べます)

動画タイトル

ハードウェアの説明

alt text

quarutus

DE10-Nano + FPGAPiano シールド(回路図 rev2)向けの ピンアサイン/極性確認用 Quartus Prime プロジェクトです。 シールド上の各出力(行・列・7セグ・桁・プログレスバー・緑LED)が正しい端子と正しい極性で光るかどうかを、 実機上で目視確認するためのテスト回路 pin_test_top を収録しています。

構成

ファイル/フォルダ内容
pin_test_top.vトップモジュール(Verilog)。ピン確認用のスキャン表示ロジック
pin_test.qpfQuartus Prime プロジェクトファイル(Revision: pin_test)
pin_test.sdcタイミング制約(50MHz クロック、入出力は目視確認用のため false path)
pin_test.sofコンパイル済みコンフィギュレーションファイル(FPGA書き込み用)
pin_test.cdfJTAG書き込み用チェインファイル
pin_test.pinFitter によるピン配置結果(レポート用)
pin_test.fit.rpt / pin_test.map.rpt / pin_test.sta.rpt 等Fit/Map/タイミング解析レポート
FPGAPiano_sch_rev2.pdfFPGAPianoシールドの回路図(rev2)
FIX_NOTES.mdピン配置ミスや出力極性の調整履歴(修正ログ)
db/, incremental_db/Quartus Prime のコンパイル中間生成物(自動生成)

対象デバイス

  • ボード: Terasic DE10-Nano
  • FPGA: Intel Cyclone V 5CSEBA6U23I7
  • 開発環境: Quartus Prime 25.1 std (Lite Edition)

pin_test_top の動作概要

mode_sw[2:0](タクトスイッチ、押した瞬間だけHigh)で表示モードを切り替えます。 モードは押している間だけでなく、次に別のスイッチが押されるまで保持されます。

モード状態名内容
mode_sw[0] 立ち上がりST_ROWCOL行×列(LEDマトリクス)を1本ずつ順にスキャン点灯
mode_sw[1] 立ち上がりST_DIGSEG桁×7セグメントを1本ずつ順にスキャン点灯
mode_sw[2] 立ち上がりST_BARプログレスバー(10本)を1本ずつ順に点灯

また、sw_in[0:3] を押している間は、対応する行の位置で緑LED(m_c8g)が点灯します。 通常表示(行×列)とスイッチ表示(緑LED)は、内部で高速に時分割(phase切り替え)されており、 互いに干渉せず同時に見えるようになっています。

モジュールI/O

verilog
module pin_test_top #(
    parameter CLK_HZ  = 50_000_000,
    parameter AL_ROW  = 0, // 行の出力極性 (1=Active Low)
    parameter AL_COL  = 0, // 列の出力極性
    parameter AL_SEG  = 0, // 7セグの出力極性
    parameter AL_DIG  = 0, // 桁の出力極性
    parameter AL_BAR  = 0, // バーの出力極性
    parameter STEP_HZ = 5  // 1ステップ(1本点灯)を切り替える速度[Hz]
)(
    input  wire        clk,
    input  wire        rst_n,
    input  wire [3:0]  sw_in,     // 緑LED手動点灯用スイッチ
    input  wire [2:0]  mode_sw,   // 表示モード切替スイッチ

    output wire [3:0]  m_r,       // 行
    output wire [9:0]  m_c,       // 列
    output wire        m_c8g,     // 緑LED
    output wire [6:0]  seg,       // 7セグメント
    output wire [3:0]  dig,       // 7セグ桁選択
    output wire [9:0]  p          // プログレスバー
);

出力の極性(実機確認済み)

グループ駆動方式極性パラメータ
行 m_rPチャネルFET (ハイサイド)Active LowAL_ROW = 1
列 m_cDRV777 (シンク)Active HighAL_COL = 0
緑 m_c8gDRV777 (シンク)Active HighAL_COL = 0
7セグ segPチャネルFETActive LowAL_SEG = 1
桁 dig(暫定)Active LowAL_DIG = 1
バー p(暫定)Active HighAL_BAR = 0

実機で光り方がおかしい場合は、光らないグループの AL_xxx パラメータを反転して再コンパイルしてください (詳細な調整手順は FIX_NOTES.md を参照)。

ピン割り当て(抜粋)

Fitter 結果(pin_test.pin)に基づく主要信号のピン配置です。

信号ピン
clkV11
rst_nAH17
sw_in[0]AG15
sw_in[1]AE20
sw_in[2]AE19
sw_in[3]AE17
mode_sw[0]Y15
mode_sw[1]AC24
mode_sw[2]AH19

行 (m_r)・列 (m_c)・7セグ (seg)・桁 (dig)・バー (p)・緑LED (m_c8g) の全ピンは pin_test.pin を参照してください。ハードウェア側の詳細な信号対応は FPGAPiano_sch_rev2.pdf を参照してください。

使い方

  1. Quartus Prime 25.1 (Lite Edition以上) で pin_test.qpf を開く
  2. 必要に応じて pin_test_top.v の AL_xxx パラメータを調整
  3. Compile(Analysis & Synthesis → Fitter → Assembler)を実行し、pin_test.sof を生成
  4. DE10-NanoにFPGAPianoシールドを接続した状態で、JTAG経由(pin_test.cdf)で書き込み
  5. mode_sw でモードを切り替えながら、各出力が正しい位置・正しい極性で光ることを確認

実装状況(コンパイル結果より)

  • Fitter: Successful
  • Logic utilization: 78 / 41,910 ALMs(1%未満)
  • Total registers: 85
  • Total pins: 45 / 314(14%)
  • 動作クロック: 50MHz(create_clock -period 20.000)

既知の修正履歴

過去に発生したピン配置エラーや極性の確定経緯は FIX_NOTES.md にまとめられています。

  • sw_in[1]/sw_in[3]/rst_n のGPIOテーブル読み取りミスによるFitterエラーの修正
  • m_c8g のビット幅誤り(4bit→1bit、DRV777は1入力のため)の修正
  • 各出力グループの極性(Active High/Low)の実機確認による確定

PCBデータ

KiCad 9.0で作成しています。

注意

DE10-nanoのGPIOだけでドットマトリクス/7セグを駆動するとDE10-nano側が燃えそうだったので、外部電源が必須の仕様となっています。電源電圧は5V想定です。
プログレスバーとスイッチはGPIOに直結のため、外部電源不要で動作可能です。

修正事項

7セグの配線に間違いがあり、ラベル名と7セグのピン名が入れ替わっている部分がありますが、公開しているverilogのピンアサインで動くように修正してあります(動くはずです)。

ライセンス

このプロジェクトは MIT License の下で公開されています。 改変・再配布・商用利用を含め自由に利用できます(著作権表示とライセンス文の保持のみ必須)。

Parts

113
QtyValueFootprintReferences
282.2kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR34, R35, R36, R37, R38, R39, R40, R41, R42, R43, R44, R45, R46, R47, R48, R49 +12
1810kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R4, R6, R8, R10, R12, R14, R16, R18, R20, R22, R73, R75, R77, R79, R81 +2
17220RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR23, R24, R25, R26, R27, R28, R29, R30, R31, R33, R72, R74, R76, R78, R80, R82 +1
11IRLML2246TRPBFPackage_TO_SOT_SMD:SOT-23_HandsolderingQ1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11
10510RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR62, R63, R64, R65, R66, R67, R68, R69, R70, R71
7100nCapacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mmC1, C2, C3, C4, C5, C6, C7
4DRV777DRSamacSys_Parts:SOIC127P600X175-16NIC1, IC2, IC3, IC4
1300RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR32
15VINConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ3
1D0SamacSys_Parts:DIPS1524W51P254L1255H800Q10NDS1
1D1SamacSys_Parts:DIPS1524W51P254L1255H800Q10NDS2
1D2SamacSys_Parts:DIPS1524W51P254L1255H800Q10NDS3
1D3SamacSys_Parts:DIPS1524W51P254L1255H800Q10NDS4
1GPIO0Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ1
1GPIO1Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ2
1Loweroriginal:LTP-12188M-08U2
1Upperoriginal:LTP-12188M-08U1
1YHC05HRKoriginal:YHC05HRKU3
1mode_0Button_Switch_THT:SW_Tactile_Straight_KSA0Axx1LFTRSW5
1mode_1Button_Switch_THT:SW_Tactile_Straight_KSA0Axx1LFTRSW6
1mode_2Button_Switch_THT:SW_Tactile_Straight_KSA0Axx1LFTRSW7
1sw_0Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716SW1
1sw_1Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716SW2
1sw_2Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716SW3
1sw_3Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716SW4

Similar boards

  • 2 layers337 × 150 mmEEZ PSU consolidated r5B13a, the printed circuit board in 3D

    EEZ PSU consolidated r5B13a

    eez-open/psu-hw

    EEZ H24005 programmable bench power supply (powered by Arduino Due)

    546 parts507
  • 2 layers100 × 50 mmXiamocon, the printed circuit board in 3D

    Xiamocon

    shapoco/xiamocon

    Game Console-Shaped Motherboard for XIAO RP2350/ESP32S3

    111 parts39
  • 2 layers100 × 50 mmShapones xiao rp2350, the printed circuit board in 3D

    Shapones xiao rp2350

    shapoco/shapones

    an NES emulator for programming study.

    75 parts37
  • 4 layers146 × 95 mmEEZ DIB MIO168, the printed circuit board in 3D

    EEZ DIB MIO168

    eez-open/dib-mio168

    EEZ DIB Mixed I/O module

    279 parts8
  • 2 layers90 × 100 mmHost shell, the printed circuit board in 3D

    Host shell

    shapoco/wildcardboy

    Handheld Game Console with Replaceable MCU

    241 parts5
  • 2 layersLamppwm, the printed circuit board in 3D

    Lamppwm

    guanix/boards

    Various PCB designs in KiCad

    17 parts73
  • 2 layers122.5 × 87.6 mmControllerCircuit, the printed circuit board in 3D

    ControllerCircuit

    stuartpittaway/diyBMSv4

    Version 4 of the diyBMS

    113 parts1.1k
  • 2 layers243.2 × 106 mm3W6, the printed circuit board in 3D

    3W6

    weteor/3W6

    a small compact 3x5+3 split ortho keyboard

    113 parts488

Questions

How big is the FPGAPiano PCB?

It measures 100 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the FPGAPiano use?

113 parts, built around the IRLML2246TRPBF. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the FPGAPiano KiCad files?

From the RyutaroMasuda/WASEDA-PianoTile repository on GitHub, at the commit this page was made from: the board is PCB/FPGAPiano/FPGAPiano.kicad_pcb and its schematic PCB/FPGAPiano/FPGAPiano.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the FPGAPiano design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).