Skip to content

How to use the Gowin PSRAM interface? #332

@mobilinkd

Description

@mobilinkd

I see the PSRAM interfaced defined in chip database. How would one instantiate this interface within, for example, Amaranth, and have all of the IOBs properly mapped? Does this need to be added to the board file somehow?

What does sip_cst mean in this context?

Did I miss where this is documented?

Python 3.13.3 (main, Apr 22 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gzip,pickle,json
>>> with gzip.open(f"GW1N-9C.pickle", 'rb') as f:
...     db = pickle.load(f)
...     
>>> print(json.dumps(db.sip_cst, indent=2))
{
  "GW1NR-9C": {
    "QFN88P": [
      [
        "O_psram_ck[0]",
        7,
        0,
        "A",
        null
      ],
      [
        "O_psram_ck[1]",
        22,
        0,
        "B",
        null
      ],
      [
        "O_psram_ck_n[0]",
        6,
        0,
        "A",
        null
      ],
      [
        "O_psram_ck_n[1]",
        22,
        0,
        "A",
        null
      ],
      [
        "O_psram_cs_n[0]",
        5,
        0,
        "B",
        null
      ],
      [
        "O_psram_cs_n[1]",
        21,
        0,
        "A",
        null
      ],
      [
        "O_psram_reset_n[0]",
        1,
        0,
        "A",
        null
      ],
      [
        "O_psram_reset_n[1]",
        17,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[0]",
        1,
        0,
        "B",
        null
      ],
      [
        "IO_psram_dq[1]",
        2,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[2]",
        2,
        0,
        "B",
        null
      ],
      [
        "IO_psram_dq[3]",
        3,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[4]",
        8,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[5]",
        13,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[6]",
        15,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[7]",
        16,
        0,
        "B",
        null
      ],
      [
        "IO_psram_dq[8]",
        17,
        0,
        "B",
        null
      ],
      [
        "IO_psram_dq[9]",
        19,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[10]",
        19,
        0,
        "B",
        null
      ],
      [
        "IO_psram_dq[11]",
        20,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[12]",
        23,
        0,
        "B",
        null
      ],
      [
        "IO_psram_dq[13]",
        24,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[14]",
        25,
        0,
        "A",
        null
      ],
      [
        "IO_psram_dq[15]",
        26,
        0,
        "A",
        null
      ],
      [
        "IO_psram_rwds[0]",
        16,
        0,
        "A",
        null
      ],
      [
        "IO_psram_rwds[1]",
        26,
        0,
        "B",
        null
      ]
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions