######################## # Global configuration # ######################## [Global] PrjFileVer = 1.1 Description = "Using SPI Storm with a custom protocol - Example of MIPI RFFE interface" OutputFile = ".\MIPI-RFFE.out" AppendOutputFile = false ClockSource = Internal ############################# # Initial state definitions # ############################# [Initial] SCLK = Idle-0 MOSI = High-Z MISO = High-Z WE = 0 SS0 = 0 SS1 = 0 SS2 = High-Z SS3 = High-Z OpenDrain = NNNNNNNN NNNNNNYN Q = 00000000 ########################## # SPI Device definitions # ########################## ################################## # Standard SPI macro definitions # ################################## ########################### # SPI segment definitions # ########################### [SpiSegment] Label = "Logic0NoClock" Id = 196609 Length = 1 SCLK = Idle-0 MOSI = 0 MISO = 0 WE = 0 SS0 = 0 SS1 = 0 SS2 = 0 SS3 = 0 [SpiSegment] Label = "Logic1NoClock" Id = 196610 Length = 1 SCLK = Idle-0 MOSI = 1 MISO = 0 WE = 0 SS0 = 0 SS1 = 0 SS2 = 0 SS3 = 0 [SpiSegment] Label = "VarNibble" Id = 196611 Length = 4 SCLK = Running MOSI = Data MISO = Unused WE = 0 SS0 = 0 SS1 = 0 SS2 = Unused SS3 = Unused [SpiSegment] Label = "VarParity" Id = 196612 Length = 1 SCLK = Running MOSI = Data MISO = Unused WE = 0 SS0 = 0 SS1 = 0 SS2 = Unused SS3 = Unused [SpiSegment] Label = "VarByte" Id = 196613 Length = 8 SCLK = Running MOSI = Data MISO = Unused WE = 0 SS0 = 0 SS1 = 0 SS2 = Unused SS3 = Unused [SpiSegment] Label = "BusPark" Id = 196614 Length = 1 SCLK = Running MOSI = High-Z MISO = 0 WE = 0 SS0 = 0 SS1 = 0 SS2 = 0 SS3 = 0 [SpiSegment] Label = "SlaveDataByte" Id = 196615 Length = 8 SCLK = Running MOSI = Sample MISO = Unused WE = 0 SS0 = 0 SS1 = 0 SS2 = Unused SS3 = Unused [SpiSegment] Label = "SlaveParity" Id = 196616 Length = 1 SCLK = Running MOSI = Sample MISO = Unused WE = 0 SS0 = 0 SS1 = 0 SS2 = Unused SS3 = Unused [SpiSegment] Label = "SlaveBusPark" Id = 196617 Length = 1 SCLK = Running MOSI = High-Z MISO = 0 WE = 0 SS0 = 0 SS1 = 0 SS2 = 0 SS3 = 0 ################################ # Custom SPI macro definitions # ################################ [SpiCustom] Label = "SSC" Id = 262144 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "Logic0NoClock" Segment = "Logic1NoClock" Segment = "Logic0NoClock" [SpiCustom] Label = "ExtRegRead" Id = 262145 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "VarNibble" Segment = "VarNibble" Segment = "VarNibble" [SpiCustom] Label = "MasterParity" Id = 262150 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "VarParity" [SpiCustom] Label = "RegAddr" Id = 262151 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "VarByte" [SpiCustom] Label = "MasterBusPark" Id = 262152 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "BusPark" [SpiCustom] Label = "DataFrame" Id = 262153 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "SlaveDataByte" [SpiCustom] Label = "SlaveParity" Id = 262154 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "SlaveParity" [SpiCustom] Label = "SlaveBusPark" Id = 262155 ClockDiv = 4 ClockDrivingEdge = Rising ClockSamplingEdge = Falling SS0RisingPhase = 0 SS1RisingPhase = 0 SS2RisingPhase = 0 SS3RisingPhase = 0 SS0FallingPhase = 0 SS1FallingPhase = 0 SS2FallingPhase = 0 SS3FallingPhase = 0 OpenDrain = NNNNNNNN BitOrder = MSBitFirst ByteOrder = MSByteFirst Segment = "SlaveBusPark" ########################### # GPO segment definitions # ########################### ######################### # GPO macro definitions # ######################### ########################## # SPI Program definition # ########################## [SpiProgram] Label = "SpiProgram" Trigger = Disabled NotSlaving UUUUUUUR Macro = "SSC" nodata Macro = "ExtRegRead" data 0A2F Macro = "MasterParity" data 01 Macro = "RegAddr" data 5E Macro = "MasterParity" data 01 Macro = "MasterBusPark" nodata Macro = "DataFrame" nodata Macro = "SlaveParity" nodata Macro = "DataFrame" nodata Macro = "SlaveParity" nodata Macro = "SlaveBusPark" nodata ########################## # GPO Program definition # ##########################