Difference between revisions of "FPGA-ITX-01"

From Land Boards Wiki
Jump to navigation Jump to search
Line 78: Line 78:
 
=== J6, U1 - XIAO RP2040  ===
 
=== J6, U1 - XIAO RP2040  ===
  
 +
* [[QT_Py_(RP2040_based)|XIAO RP2040]]
 
* Can power the card from the USB on this card
 
* Can power the card from the USB on this card
 
* All pins are bought out to J1, J2 headers
 
* All pins are bought out to J1, J2 headers

Revision as of 06:17, 26 September 2022

FPGA-ITX P18621 720px.jpg

Features

  • FPGA Adapter Card
    • QMTECH FPGA cards
  • 170x170mm, Mini-ITX card
  • 1 MB SRAM
  • 5V PS/2 keyboard connector
  • SD Card socket
  • 3:3:2 VGA (256 colors)
  • XIAO RP2040
  • Power options, automatically switches between
    • 5V USB B (power only)
    • QTPy USB
    • Used as a USB to Serial converter
  • Stereo Audio Jack
    • PWM Sound Output with Low Pass Filter
  • 3 I/O slots
    • Carry all J8 connections
    • Slot spacing 0.6"
  • Current: 130mA with XIAO RP2040

Connectors

FPGA-ITX-01 FRONT CAD.PNG

J1, J13 - Stereo Audio Jack

  • 3.5mm stereo connector
  • Jack on card has priority over connection to chassis jack
    • Chassis front panel jack gets disconnected when jack is plugged into the card
  • Stereo pinout
    • Tip: This acts as the left channel signal wire
    • Ring: This acts as the right channel signal wire
    • Sleeve: This acts as the common return wire
  • J13 is header to case jack
  • Minimal LP filter
  • FPGA Sound on our GitHub
  • Using PWM to generate sound
  • How to Generate Sound using PWM
  • Run at frequency well above audio, say 44.1 or 48 KHz
  • Output of filter with 50% duty cycle will produce smoothed average voltage at the mid-point
  • Values > 50% duty cycle will produce a voltage higher than the average
  • Values < 50% duty cycle will produce a voltage lower than the average

FPGA-ITX-01 J1 -AUDIO.PNG

J2, J9 - 5V PS/2 keyboard connector

  • PS/2 connector
  • 5V to 3.3V level shifter

FPGA-ITX-01 J2 J8PS2.PNG

FPGA-ITX-01 J9 KBD.PNG

  1. CLK
  2. DATA
  3. +5V
  4. GND

J3 - 5V USB B (power only)

FPGA-ITX-01 J3 USB-PWR.PNG

J4 - 3:3:2 VGA (256 colors

  • VGA connector
    • 8-bit video (3:3:2)

FPGA-ITX-01 J4 VGA.PNG

J5 - SD Card socket

FPGA-ITX-01 J5 SD CARD.PNG

J6, U1 - XIAO RP2040

  • XIAO RP2040
  • Can power the card from the USB on this card
  • All pins are bought out to J1, J2 headers
  • Used as an FTDI card replacement
  • Tx/Rx/RTS/CTS brought to FPGA card
  • Connected to SD Card
    • SD Card is shared with FPGA
    • Can be used as replacement disk drive for BASIC Load/Save commands

FPGA-ITX-01 J6 QTPY.PNG

J7, J8 - FPGA Adapter Card

J7 - CPU I/O pins

  • Connects to SRAM, PS/2, VGA, SD card

FPGA-ITX-01 J7.PNG

J7 Pins list
U7 PIN EP4CE15/55 5CEFA2 CYC 10 FUNCTION U7 PIN EP4CE15/55 5CEFA2 CYC 10 FUNCTION
1 GND GND GND GND 2 GND GND GND GND
3 3.3V 3.3V 3.3V 3.3V 4 3.3V 3.3V 3.3V 3.3V
5 GND GND GND GND 6 GND GND GND GND
7 PIN_R1 PIN_AA2 PIN_G1 AUDIOR 8 PIN_R2 PIN_AA1 PIN_G2 AUDIOL
9 PIN_P1 PIN_Y3 PIN_D1 PS2DAT 10 PIN_P2 PIN_W2 PIN_C2 PS2CLK
11 PIN_N1 PIN_U1 PIN_B1 SRAMA4 12 PIN_N2 PIN_U2 PIN_F5 SRAMA5
13 PIN_M1 PIN_N1 PIN_D3 SRAMA3 14 PIN_M2 PIN_N2 PIN_C3 SRAMA6
15 PIN_J1 PIN_L1 PIN_B3 SRAMA2 16 PIN_J2 PIN_L2 PIN_A3 SRAMA7
17 PIN_H1 PIN_G1 PIN_B4 SRAMA1 18 PIN_H2 PIN_G2 PIN_A4 SRAM0E_N
19 PIN_F1 PIN_E2 PIN_E5 SRAMA0 20 PIN_F2 PIN_D3 PIN_A2 SRAMA8
21 PIN_E1 PIN_C1 PIN_D4 SRAMCS_N 22 PIN_D2 PIN_C2 PIN_E6 SRAMD7
23 PI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 PIN_B16 USBCTS/FPGARTS 58 PIN_A19 PIN_C15 PIN_A15 UBSRTS/FPGACTS
59 PIN_B20 PIN_C16 PIN_C16 CD_DET 60 PIN_A20 PIN_B16 PIN_C15 USBRX/FPGATX
61 GND GND GND GND 62 GND GND GND GND
63 5V 5V 5V 5V 64 5V 5V 5V 5V

J8 - I/O pins (J8)

  • All pins are usable and are daisy-chained to 3 expansion connectors
  • Cyclone 10 FPGA notes
    • Cannot place output or bidirectional pin J8IO[35] in input pin location M16
    • Cannot place output or bidirectional pin J8IO[36] in input pin location M15
    • Cannot place output or bidirectional pin J8IO[57] in input pin location E16
    • Cannot place output or bidirectional pin J8IO[58] in input pin location E15

FPGA-ITX-01 J8.PNG

J8 Pins List
U8 PIN EP4CE15/55 5CEFA2 10C1006 U8 PIN EP4CE15/55 5CEFA2 10C1006
1 GND GND GND 2 GND GND GND
3 3.3V 3.3V 3.3V 4 3.3V 3.3V 3.3V
5 GND GND GND 6 GND GND GND
7 PIN_AA13 PIN_AA14 PIN_R9 8 PIN_AB13 PIN_AA13 PIN_T9
9 PIN_AA14 PIN_AA15 PIN_R10 10 PIN_AB14 PIN_AB15 PIN_T10
11 PIN_AA15 PIN_Y15 PIN_R11 12 PIN_AB15 PIN_Y14 PIN_T11
13 PIN_AA16 PIN_AB18 PIN_R12 14 PIN_AB16 PIN_AB17 PIN_T12
15 PIN_AA17 PIN_Y17 PIN_N9 16 PIN_AB17 PIN_Y16 PIN_M9
17 PIN_AA18 PIN_AA18 PIN_M10 18 PIN_AB18 PIN_AA17 PIN_P9
19 PIN_AA19 PIN_AA20 PIN_P11 20 PIN_AB19 PIN_AA19 PIN_N11
21 PIN_AA20 PIN_Y20 PIN_R13 22 PIN_AB20 PIN_Y19 PIN_T13
23 PIN_Y22 PIN_AB21 PIN_T15 24 PIN_Y21 PIN_AB20 PIN_T14
25 PIN_W22 PIN_AA22 PIN_N12 26 PIN_W21 PIN_AB22 PIN_M11
27 PIN_V22 PIN_W22 PIN_R14 28 PIN_V21 PIN_Y22 PIN_N13
29 PIN_U22 PIN_Y21 PIN_N14 30 PIN_U21 PIN_W21 PIN_P14
31 PIN_R22 PIN_U22 PIN_P16 32 PIN_R21 PIN_V21 PIN_R16
33 PIN_P22 PIN_V20 PIN_N16 34 PIN_P21 PIN_W19 PIN_N15
35 PIN_N22 PIN_U21 PIN_M16 36 PIN_N21 PIN_U20 PIN_M15
37 PIN_M22 PIN_R22 PIN_L16 38 PIN_M21 PIN_T22 PIN_L15
39 PIN_L22 PIN_P22 PIN_P15 40 PIN_L21 PIN_R21 PIN_M12
41 PIN_K22 PIN_T20 PIN_L14 42 PIN_K21 PIN_T19 PIN_L13
43 PIN_J22 PIN_P16 PIN_K16 44 PIN_J21 PIN_P17 PIN_K15
45 PIN_H22 PIN_N20 PIN_K12 46 PIN_H21 PIN_N21 PIN_J12
47 PIN_F22 PIN_M21 PIN_J14 48 PIN_F21 PIN_M20 PIN_J13
49 PIN_E22 PIN_M18 PIN_K11 50 PIN_E21 PIN_N19 PIN_J11
51 PIN_D22 PIN_L18 PIN_G11 52 PIN_D21 PIN_L19 PIN_F11
53 PIN_C22 PIN_M22 PIN_F13 54 PIN_C21 PIN_L22 PIN_F14
55 PIN_B22 PIN_L17 PIN_F10 56 PIN_B21 PIN_K17 PIN_F9
57 PIN_N20 PIN_K22 PIN_E16 58 PIN_N19 PIN_K21 PIN_E15
59 PIN_M20 PIN_M16 PIN_D16 60 PIN_M19 PIN_N16 PIN_D15
61 GND GND GND 62 GND GND GND
63 5V 5V 5V 64 5V 5V 5V

J10-J12 - 3 I/O slots IO_1-IO_3

  • 3 I/O connectors
    • 2x40 headers
    • First 64-pins match pinout of J8
    • Last 16 pins are chained together and do not connect to the FPGA (IOX65-80)
  • Cyclone 10 notes
    • Cannot place output or bidirectional pin J8IO[35] in input pin location M16
    • Cannot place output or bidirectional pin J8IO[36] in input pin location M15
    • Cannot place output or bidirectional pin J8IO[57] in input pin location E16
    • Cannot place output or bidirectional pin J8IO[58] in input pin location E15

FPGA-ITX-01 J10-J12 IO Conns.PNG

J10-J12 Pins List

U8 PIN EP4CE15/55 5CEFA2 10C1006 U8 PIN EP4CE15/55 5CEFA2 10C1006
1 GND GND GND 2 GND GND GND
3 3.3V 3.3V 3.3V 4 3.3V 3.3V 3.3V
5 GND GND GND 6 GND GND GND
7 PIN_AA13 PIN_AA14 PIN_R9 8 PIN_AB13 PIN_AA13 PIN_T9
9 PIN_AA14 PIN_AA15 PIN_R10 10 PIN_AB14 PIN_AB15 PIN_T10
11 PIN_AA15 PIN_Y15 PIN_R11 12 PIN_AB15 PIN_Y14 PIN_T11
13 PIN_AA16 PIN_AB18 PIN_R12 14 PIN_AB16 PIN_AB17 PIN_T12
15 PIN_AA17 PIN_Y17 PIN_N9 16 PIN_AB17 PIN_Y16 PIN_M9
17 PIN_AA18 PIN_AA18 PIN_M10 18 PIN_AB18 PIN_AA17 PIN_P9
19 PIN_AA19 PIN_AA20 PIN_P11 20 PIN_AB19 PIN_AA19 PIN_N11
21 PIN_AA20 PIN_Y20 PIN_R13 22 PIN_AB20 PIN_Y19 PIN_T13
23 PIN_Y22 PIN_AB21 PIN_T15 24 PIN_Y21 PIN_AB20 PIN_T14
25 PIN_W22 PIN_AA22 PIN_N12 26 PIN_W21 PIN_AB22 PIN_M11
27 PIN_V22 PIN_W22 PIN_R14 28 PIN_V21 PIN_Y22 PIN_N13
29 PIN_U22 PIN_Y21 PIN_N14 30 PIN_U21 PIN_W21 PIN_P14
31 PIN_R22 PIN_U22 PIN_P16 32 PIN_R21 PIN_V21 PIN_R16
33 PIN_P22 PIN_V20 PIN_N16 34 PIN_P21 PIN_W19 PIN_N15
35 PIN_N22 PIN_U21 PIN_M16 36 PIN_N21 PIN_U20 PIN_M15
37 PIN_M22 PIN_R22 PIN_L16 38 PIN_M21 PIN_T22 PIN_L15
39 PIN_L22 PIN_P22 PIN_P15 40 PIN_L21 PIN_R21 PIN_M12
41 PIN_K22 PIN_T20 PIN_L14 42 PIN_K21 PIN_T19 PIN_L13
43 PIN_J22 PIN_P16 PIN_K16 44 PIN_J21 PIN_P17 PIN_K15
45 PIN_H22 PIN_N20 PIN_K12 46 PIN_H21 PIN_N21 PIN_J12
47 PIN_F22 PIN_M21 PIN_J14 48 PIN_F21 PIN_M20 PIN_J13
49 PIN_E22 PIN_M18 PIN_K11 50 PIN_E21 PIN_N19 PIN_J11
51 PIN_D22 PIN_L18 PIN_G11 52 PIN_D21 PIN_L19 PIN_F11
53 PIN_C22 PIN_M22 PIN_F13 54 PIN_C21 PIN_L22 PIN_F14
55 PIN_B22 PIN_L17 PIN_F10 56 PIN_B21 PIN_K17 PIN_F9
57 PIN_N20 PIN_K22 PIN_E16 58 PIN_N19 PIN_K21 PIN_E15
59 PIN_M20 PIN_M16 PIN_D16 60 PIN_M19 PIN_N16 PIN_D15
61 GND GND GND 62 GND GND GND
63 5V 5V 5V 64 5V 5V 5V
65 IOX_65 IOX_65 IOX_65 66 IOX_66 IOX_66 IOX_66
67 IOX_67 IOX_67 IOX_67 68 IOX_68 IOX_68 IOX_68
69 IOX_69 IOX_69 IOX_69 70 IOX_70 IOX_70 IOX_70
71 IOX_71 IOX_71 IOX_71 72 IOX_72 IOX_72 IOX_72
73 IOX_73 IOX_73 IOX_73 74 IOX_74 IOX_74 IOX_74
75 IOX_75 IOX_75 IOX_75 76 IOX_76 IOX_76 IOX_76
77 IOX_77 IOX_77 IOX_77 78 IOX_78 IOX_78 IOX_78
79 IOX_79 IOX_79 IOX_79 80 IOX_80 IOX_80 IOX_80
IOX_81 IOX_81 IOX_81 82 IOX_82 IOX_82 IOX_82

J14 - Power LEDs

FPGA-ITX-01 J14 CaseLEDs.PNG

J15 - Reset Switch

  • Right angle header
  • Connects to J8-35
  • Attach case reset line here
  • Cyclone 10 does not have internal weak pull up for this pin

J16 - Power Switch

  • Connects to case power switch
  • Shuts off power from USB B
  • Does not affect power from RP2040 card

H1 - I/O Slots Power Select Jumper

  • Can use 3.3V from FPGA card or on-board 3.3V regulator

1 MB SRAM

  • 1MB SRAM
    • IS62WV10248EBLL-45TLI, SRAM. Async, 1Mbx8, 45ns
    • For banked use in CP/M and as RAM Disk in other 8-bit micro designs

RETRO-FPGA-SRAM.PNG

170x170mm, Mini-ITX card

MINI-ITX CASE-03.jpg

Card Mechanicals

Mini-ITX Mechs.PNG

Card Height

Mini-ITX ComponentHeight Mechs.PNG

Back Panel

Mini-ITX BackPanel Mechs.PNG

Case Cabling

ITX Case Cables.jpg

Expansion Cards

FPGA-ITX-01 expansion cards plug into the expansion connectors to expand the functionality of the FPGA design.

ITX-65C816

  • ITX-65C816
  • W65C816 CPU module
    • 3.3V
    • Running at 8.33 MHz
    • Native mode (65C816 extended code) and emulation mode (65C02 code)
    • Native mode allows for 24-bit address space

ITX-65816 P18616 720PX.jpg

ITX-PI-PICO

ITX-Pi-PICO FRONT 3D.png

ITX-BKOUT

  • ITX-BKOUT
  • Breakout card which connects to the pins of the expansion connectors with power/ground down the center of the card.

ITX-BKOUT FRONT 3D.PNG

  • Configured as Bus Monitor for Lohic Analyzer

ITX-BKOUT P18619 720px.jpg

ITX-SWLEDs

  • ITX-SWLEDs
  • 8 pushbuttons, 8 slide switches, 16 LEDs.

ITX-SWLEDs FRONT-3D.png

Mechanicals

FPGA-ITX-01 IYX MECHS.PNG

  • QMTECH FPGA card

QMTECH FPGA EP4CE15.jpg

Software

Software that runs on the card

Multicomp Builds

Tested Multicomp builds

XIAO RP2040

  • USB-SERIAL - Arduino sketch turns the RP2040 into a USB to Serial Bridge
    • Runs at 115,200 baud
    • Hardware Handshake implemented
      • Only uses RTS output from the FPGA to hold off output
    • Most Multicomp builds switch I/O with F1 key
  • TeraTerm at 115,200 baud

Revision History

Rev 2

  • Moved upper right mounting hole
  • Fixed R23 DRC
  • Add pull-up resistors for input only pins
    • J8-35, 36, 57, 58
  • Move silkscreen pin numbers around FPGA a bit
  • Widen JTAG silkscreen block
  • Verified pin No Connects are correct
  • Added Rev 2 marking
  • Change R2H, etc to call out R/G/B (match PL)
  • Tested/works
    • Video
    • PS/2 keyboard
    • SD card
    • 5V input

Rev 1

  • Upper right mounting hole (near XAIO USB/Serial interface) is in wrong spot
    • At 0.9" from edge, should be 0.9" from upper left mounting hole
    • Not big issue, no mechanical interference on board, just use 3 mounting holes to install in case
    • Yabs = 2.47480315, change to 2.87480315
  • R23 DRC error
    • Overshot pin on rear side
    • Verified right pin is connected
  • Input only pins (using Cyclone 10) do not support internal pull-ups
  • Missing Rev marking (use P-Touch label)

Assembly Sheet