Forum Discussion

Hans_1st's avatar
Hans_1st
Icon for New Contributor rankNew Contributor
4 years ago

How to Read/Write L4 Peripheral Slave Bus on S10 SX Device

Hello All,

I meet a problem about reading/writing L4 Peripheral Slave Bus on S10 SX Device.

I code avalon_mm_read_master module and avalon_mm_write_master module by myself, and I put them into Platform Designer as Figure 1 shown.

I firstly set the read and write address to DDR address such as 0x7fff0000. Data grabed in SignalTap shows read and write succeed.

Then I change read and write address to l4 slave peripheral address such as uart(0xffc02000) and gpio(0xffc03000). Data grabed in SignalTap shows in Figure 2 and Figure 3. From figures, the operation that data is written into the exact setting address succeeds, but data read out of the address is all zero, which means data cannot be read/wrote into l4 slave peripheral bus address.

The tools version all I use are 19.1 Pro Quartus Prime, 2017.09 uboot, 4.9.78-ltsi-altera linux, S10 device number is 1sx280lu2f50e2vgs2(Stratix 10 SoC Development Kit, ES Edition).

What I do is I use sdimage in https://releases.rocketboards.org/release/2019.04/gsrd/s10_gsrd/ and I change dtb file which add uart1 with status "okay", also I change the u-boot.scr file like https://rocketboards.org/foswiki/Documentation/S10SGMIIRDV181CreateUbootScript and extra configure some firewall registers of l4 slave peripheral bus. The u-boot.scr is also attached below.

Could you please give me some suggestions what I can do?

Thank you very much!

7 Replies

  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    Yes, we will need sometime to do analysis and get back to you. Thanks

  • YoshiakiS_Altera's avatar
    YoshiakiS_Altera
    Icon for Occasional Contributor rankOccasional Contributor

    Hello stanley015,

    I’m reviewing your u-boot script attached.

    By the way, have you accessed F2H bridge with JTAG Master which is default configuration of S10 SoC GHRD?

    Best regards,

    Yoshiaki Saito

    • Hans_1st's avatar
      Hans_1st
      Icon for New Contributor rankNew Contributor

      Hello Saito,

      This is my rest of qsys attached.

      I build my project regarding to S10 SoC GHRD named "s10_soc_devkit_ghrd_es.tar.gz" which is downloaded in https://releases.rocketboards.org/release/2019.04/gsrd/s10_gsrd/. From the qysy of s10_soc_devkit_ghrd_es.tar.gz, I actually can see the module of jtg_mst.

      However, I delete this module from my qsys because I think it will not effect read/write from f2h_axi_slave to l4 slave peripheral bus. I should add this module back or not and what the function of this module is. Also, what I should do after this module is added back?

      Best regards

      • Hans_1st's avatar
        Hans_1st
        Icon for New Contributor rankNew Contributor

        Anyone can give me more suggestions?

        Thanks!