Hardware Platforms¶
- class squishy.gateware.platform.SquishyPlatform¶
Base Squishy Hardware platform
This represents all the common properties and methods that all Squishy hardware platforms are required to have.
This also implements the applet bitstream cache mechanisms.
- Variables:
revision (tuple[int, int]) – The revision of the hardware this platform supports, in the form of (major, minor).
revision_str (str) – The canonicalize revision as a string in the form of ‘major.minor’.
bitstream_suffix (str) – The suffix of the FPGA bitstream that is generated when gateware is built for this platform.
flash (FlashConfig) – The configuration of the attached SPI boot flash.
pll_cfg (PLLConfig) – The PLL configuration that is passed to the
clk_domain_generator
of this platform when instantiated.clk_domain_generator (type[torii.Elaboratable]) – The type of clock domain generator for this platform. It is instantiated and hooked up to the gateware on elaboration.
ephemeral_slot (int | None) – If this platform supports ephemeral applet flashing, then this is the DFU alt-mode to use, otherwise None
Important
Platforms are also still required to inherit from the appropriate
torii.vendor.platform
in order to properly be used.- abstract property revision: tuple[int, int]¶
The hardware revision of this platform in the form of (major, minor)
- abstract property bitstream_suffix: str¶
The suffix of the FPGA bitstream that is generated when gateware is built for this platform
- abstract property flash: FlashConfig¶
The attached SPI boot flash configuration
- abstract property pll_cfg: ECP5PLLConfig | ICE40PLLConfig¶
PLL Configuration for the platforms clock domain generator
- abstract property clk_domain_generator: type[Elaboratable]¶
The Torii Elaboratable used to setup the PLL and clock domains for the platform
- property ephemeral_slot: int | None¶
If this platform supports ephemeral applet flashing, then this is the DFU alt-mode to use
- abstract pack_artifact(artifact: bytes) bytes ¶
Pack a signal bitstream image into a device appropriate artifact.