squishy.gateware.platform.resources#

squishy.gateware.platform.resources.scsi.SCSIConnectorResource(*args, diff: bool, ack: str | tuple[str, str], atn: str | tuple[str, str], bsy: str | tuple[str, str], cd: str | tuple[str, str], io: str | tuple[str, str], msg: str | tuple[str, str], sel: str | tuple[str, str], req: str | tuple[str, str], rst: str | tuple[str, str], diff_sense: str, d0: str | tuple[str, str], dp0: str | tuple[str, str], d1: str | tuple[str, str] | None = None, dp1: str | tuple[str, str] | None = None, scsi_id: str | None = None, led: str | None = None, spindle: str | None = None, rmt: str | None = None, dlyd: str | None = None, dir: Literal['i', 'o', 'io'] = 'io', attrs: Attrs | None = None) Resource#

Represents a raw SCSI connector

Parameters:
  • diff (bool) – If the SCSI connector is Differential.

  • ack (str, tuple[str, str]) – The pin or pins for the SCSI ACK signal.

  • atn (str, tuple[str, str]) – The pin or pins for the SCSI ATN signal.

  • bsy (str, tuple[str, str]) – The pin or pins for the SCSI BSY signal.

  • cd (str, tuple[str, str]) – The pin or pins for the SCSI CD signal.

  • io (str, tuple[str, str]) – The pin or pins for the SCSI IO signal.

  • msg (str, tuple[str, str]) – The pin or pins for the SCSI MSG signal.

  • req (str, tuple[str, str]) – The pin or pins for the SCSI REQ signal.

  • rst (str, tuple[str, str]) – The pin or pins for the SCSI RST signal.

  • diff_sense (str) – The SCSI differential sense pin.

  • d0 (str, tuple[str, str]) – The pin set or set of pin sets for the first SCSI data byte lines.

  • dp0 (str, tuple[str, str]) – The pin or pins for the first SCSI data byte parity bit.

  • d1 (str, tuple[str, str]) – The pin set or set of pin sets for the second SCSI data byte lines.

  • dp1 (str, tuple[str, str]) – The pin or pins for the second SCSI data byte parity bit.

  • scsi_id (str) – The pin set of set of pin sets for the dedicated SCSI_ID pins.

  • led (str) – The SCSI bus LED signal pin.

  • spindle (str) – The SCSI spindle signal pin.

  • rmt (str) – The SCSI RMT signal pin.

  • dlyd (str) – The SCSI dlyd signal pin.

  • dir (str) – The direction of the SCSI connector pins, defaults to ‘io’

Returns:

The SCSI Connector Resource

Return type:

torii.build.dsl.Resource

squishy.gateware.platform.resources.scsi.SCSIDifferentialResource(*args, **kwargs) SCSIConnectorResource#

Constructs an explicitly differential SCSIConnectorResource()

squishy.gateware.platform.resources.scsi.SCSISingleEndedResource(*args, **kwargs) SCSIConnectorResource#

Constructs an explicitly single-ended SCSIConnectorResource()

squishy.gateware.platform.resources.scsi.SCSIPhyResource(*args, ack: tuple[str, str], atn: tuple[str, str], bsy: tuple[str, str], cd: tuple[str, str], io: tuple[str, str], msg: tuple[str, str], sel: tuple[str, str], req: tuple[str, str], rst: tuple[str, str], d0: tuple[str, str], dp0: tuple[str, str], tp_en: str, tx_en: str, aa_en: str, bsy_en: str, sel_en: str, mr_en: str, diff_sense: str, d1: tuple[str, str] | None = None, dp1: tuple[str, str] | None = None, scsi_id: tuple[str, str] | None = None, led: tuple[str, str] | None = None, spindle: tuple[str, str] | None = None, rmt: tuple[str, str] | None = None, dlyd: tuple[str, str] | None = None, attrs: Attrs | None = None) Resource#

Represents a Squishy SCSI PHY Resource

Parameters:
  • ack (tuple[str, str]) – The pins for the SCSI ACK tx and rx signals.

  • atn (tuple[str, str]) – The pins for the SCSI ATN tx and rx signals.

  • bsy (tuple[str, str]) – The pins for the SCSI BSY tx and rx signals.

  • cd (tuple[str, str]) – The pins for the SCSI CD tx and rx signals.

  • io (tuple[str, str]) – The pins for the SCSI IO tx and rx signals.

  • msg (tuple[str, str]) – The pins for the SCSI MSG tx and rx signals.

  • sel (tuple[str, str]) – The pins for the SCSI SEL tx and rx signals.

  • req (tuple[str, str]) – The pins for the SCSI REQ tx and rx signals.

  • rst (tuple[str, str]) – The pins for the SCSI RST tx and rx signals.

  • d0 (tuple[str, str]) – The pins for the SCSI data byte one tx and rx signals.

  • dp0 (tuple[str, str]) – The pins for the SCSI data byte one parity tx and rx signals.

  • tp_en (str) – The enable pin for the TP portion of the PHY.

  • tx_en (str) – The enable pin for the TX portion of the PHY.

  • aa_en (str) – The enable pin for the AA portion of the PHY.

  • bsy_en (str) – The enable pin for the BSY portion of the PHY.

  • sel_en (str) – The enable pin for the SEL portion of the PHY.

  • mr_en (str) – The enable pin for the MSG/REQ portion of the PHY.

  • diff_sense (str) – The SCSI bus DIFF_SENSE pin.

Returns:

The SCSI Connector Resource

Return type:

torii.build.dsl.Resource