Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

JTAG to Avalon master bridge usage

Hi,

The main issue i want to ask is whether the jtag to avalon master bridge IP core can be used to communicate data between PC and the FPGA, even if the board does not have JTAG connector. My board is terasic de4, and it has only a USB blaster, which can be configured in JTAG mode. I need to write some registers in the FPGA through System Console using master_write_32 command. I made a design with jtag to avalon master bridge as master to write to some Memory Mapped slaves. Can this be done through the USB blaster in JTAG mode or does the board need additional JTAG connecter for this functionality.

Thanks in advance

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I think you said you were building the fabric using QSYS? I'm pretty sure that QSYS does not support native addressing, it treats native slaves as if they were 32 bit dynamic slaves. This looks the same to 32 bit masters (Nios II, JTAG Avalon Master etc). If you had managed to enable native addressing then this would not cause the issue with reads and writes behaving differently.

    If the address mapping is different for writes and reads then this could be a bug. Can you signaltap the signals on the JTAG Avalon master as well as on your slave please - the master address should match the address passed in from SystemConsole for both writes and reads.

    The byteenable behaviour you'll get depends on how you wrote your hw.tcl file. If you specified that your port was for role (not signal name) byteenable_n then 2'b00 is both bits asserted. If your add_port command specifies an active high byte enable then I would expect 2'b11. Again, measuring on the master will help debug here.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you so much. My signal tap file was triggered by wrong signals. I do have same address mappinf for both reads and writes.