aws / aws-fpga

Official repository of the AWS EC2 FPGA Hardware and Software Development Kit
Other
1.51k stars 516 forks source link

Connect MicroBlaze Debug Module (MDM) to Virtual JTAG in Vivado IP Integrator #644

Open s03311251 opened 5 months ago

s03311251 commented 5 months ago

I have posted my problem in https://github.com/aws/aws-fpga/issues/641#issuecomment-2115064425, but I realise that it seems to be a different issue, as in the implemented design, the MDM is not connected to anything:

schematic

Therefore I would like to know the correct configuration to connect to MDM.

Below are what I originally posted in #641


I hope this is the right place to post here, as I am expericing a similar problem:

Right now I'm working to put a MicroBlaze core with Vivado IP Integrator flow, however, I can't connect to the MicroBlaze Debug Module (MDM) when I deployed in on an EC2 F1 instance.

My design is as following: cl
design files: aws_mb_example.zip

I have followed https://github.com/aws/aws-fpga/issues/507, which mentioned to use "EXTERNAL HIDDEN" for BSCAN in MDM: MDM settings

However, it seems failed to identify MDM, as when I connect it with XSCT, I got the following: 2024-05-16 12_33_24-Window
Top left is the SSH session of EC2 F1, which was running hw_server and sudo fpga-start-virtual-jtag -P 10201 -S 0
Bottom left is the Vivado tcl shell, connected to the Virtual JTAG on F1
Bottom right is the XSCT, also connected to the Virtual JTAG on F1
The commands are run in this order: SSH > Vivado > XSCT

The targets command in XSCT gives 8-digit numbers only, but supposedly it should gives something like "MicroBlaze Debug Module".

May I ask if there is any problem with my design with a MicroBlaze? Is there an alternative method to connect to MDM, or is there an example design for MicroBlaze that worked with AWS EC2?

Thank you.

czfpga commented 5 months ago

Hi,

Thank you for reaching out. We don't currently have an example design with a MicroBlaze embedded. We're still investigating this issue internally and will keep you posted for any update we have.

s03311251 commented 5 months ago

If you want to replicate the problem, I have attached my design files above (aws_mb_example.zip)

s03311251 commented 3 weeks ago

Our project is still suffering from this problem, and for the sake of informing other people suffering the same problem, I have made another failed attempt, and the results was that, nothing in our design (including ILA & MDM) can be connected via Virtual JTAG.

Below is what I changed in this failed attempt: