xcore / tool_axe

An XCore Emulator
Other
15 stars 8 forks source link

No support for XS1-U / XS1-A devices #11

Closed henkmuller closed 11 years ago

henkmuller commented 11 years ago

axe gives this error:

No node matching id 1

xsim is fine. The .XN file is below; the main program is an empty main(){}:

<?xml version="1.0" encoding="UTF-8"?> <Network xmlns="http://www.xmos.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xmos.com http://www.xmos.com">

core stdcore[1] core xs1_su_periph ``` ```

henkmuller commented 11 years ago

Oops - formatting problem. Lets try this::

<?xml version="1.0" encoding="UTF-8"?> <Network xmlns="http://www.xmos.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xmos.com http://www.xmos.com">

<Declarations>
  <Declaration>core stdcore[1]</Declaration>
  <Declaration>core xs1_su_periph</Declaration>
</Declarations>

<Packages>
  <Package Id="P1" Type="XS1-SU01A-FB96">
    <Nodes>

      <Node Id="0" Type="XS1-L1A" InPackageId="0">
        <Boot>
          <Source Location="SPI:bootFlash"/>
        </Boot>
        <Core Number="0" Reference="stdcore[0]">
          <Port Location="XS1_PORT_1A"  Name="PORT_SPI_MISO"/>
          <Port Location="XS1_PORT_1B"  Name="PORT_SPI_SS"/>
          <Port Location="XS1_PORT_1C"  Name="PORT_SPI_CLK"/>
          <Port Location="XS1_PORT_1D"  Name="PORT_SPI_MOSI"/>
          <Port Location="XS1_PORT_1A"  Name="PORT_I2S_BCLK"/>
          <Port Location="XS1_PORT_1C"  Name="PORT_I2S_LRCK"/>
          <Port Location="XS1_PORT_1D"  Name="PORT_I2S_DAC_DATA"/>
          <Port Location="XS1_PORT_1E"  Name="PORT_MCLK_IN"/>
          <Port Location="XS1_PORT_1F"  Name="PORT_MIDI_IN"/>
          <Port Location="XS1_PORT_1G"  Name="PORT_I2C_SDA"/>
          <Port Location="XS1_PORT_1I"  Name="PORT_I2S_ADC_DATA"/>
          <Port Location="XS1_PORT_1L"  Name="PORT_SPDIF_OUT"/>
          <Port Location="XS1_PORT_4C"  Name="PORT_I2C_SCL"/>
          <Port Location="XS1_PORT_4D"  Name="PORT_BUTTONS"/>
          <Port Location="XS1_PORT_8D"  Name="PORT_MIDI_OUT"/>
          <Port Location="XS1_PORT_32A" Name="PORT_GENERAL_OUT"/>
        </Core>
      </Node>
      <Node Id="1" InPackageId="1" Type="periph:XS1-SU" Reference="xs1_su_periph">
        <Service Proto="xs1_su_adc_service(chanend c)">
          <Chanend Identifier="c" end="2" remote="31"/>
        </Service>
      </Node> 
    </Nodes>
    <Links>
      <Link Encoding="5wire">
        <LinkEndpoint NodeId="0" Link="XLH" Delays="52clk,52clk"/>
        <LinkEndpoint NodeId="1" Link="XLC" Delays="1clk,1clk"/>
      </Link>
    </Links>
  </Package>
</Packages>

<ExternalDevices>
  <Device NodeId="0" Core="0" Class="SPIFlash" Name="bootFlash" Type="M25P10">
    <Attribute Name="PORT_SPI_MISO" Value="PORT_SPI_MISO"/>
    <Attribute Name="PORT_SPI_SS"   Value="PORT_SPI_SS"/>
    <Attribute Name="PORT_SPI_CLK"  Value="PORT_SPI_CLK"/>
    <Attribute Name="PORT_SPI_MOSI" Value="PORT_SPI_MOSI"/>
  </Device>
</ExternalDevices>

<JTAGChain>
  <JTAGDevice NodeId="0"/>
  <JTAGDevice NodeId="1"/>
</JTAGChain>

It may do it, one never knows...

henkmuller commented 11 years ago

Close enough...

rlsosborne commented 11 years ago

I suspect the problem is that it doesn't understand Type="periph:XS1-SU"