2927 views|12 replies

664

Posts

104

Resources
The OP
 

[Evaluation of domestic FPGA Gaoyun GW1N-4 series development board]——4. Use of embedded logic analyzer [Copy link]

 
 This post was last edited by gs001588 on 2021-12-18 13:37

[Evaluation of domestic FPGA Gaoyun GW1N-4 series development board]——4. Use of embedded logic analyzer

——This post adds a test of the embedded logic analyzer based on the previous post (previous post: [Evaluation of domestic FPGA Gaoyun GW1N-4 series development board]——3. Light a lamp hello_led https://en.eeworld.com/bbs/thread-1189496-1-1.html)

Find the document folder in the Yunyuan software installation directory and refer to the document "SUG114-2.4_Gowin Online Logic Analyzer User Guide.pdf"

Create a new logic analyzer file GAO (Gowin Analyzer Oscilloscope), and the creation wizard will start after confirmation.

According to the wizard, press the default settings and click Next

The file name can be modified by yourself, usually the default is the project name

Creation completed

You can see that the file "hello_led.rao" is generated

Double-click the file "hello_led.rao" to set up triggering and capture.

First set the trigger, switch to the trigger options window "Trigger Options", double-click the trigger port "Trigger Port 0", the trigger port setting window pops up, which is empty, click the "plus sign" icon to add a trigger signal.

After clicking the "plus sign", a network search window pops up, click "Search" to search.

Search all the signals in the project, select only "COUNTER[25:0]", and confirm to add it.

You can see that the port setting window is no longer empty and the signal just added is already there. Confirm the settings.

In the matching unit setting window, check M0, double-click "NONE" in the trigger port setting to set the trigger port and set the trigger value.

Click the blank area in the "Expression" of the trigger expression window to pop up the expression setting. After selecting M0 to confirm, the expression window will have "M0" and will no longer be empty.

Switch to the Capture Selection Settings window and browse to add a sampling clock source.

Search and add "CLK_50M" as the sampling clock.

The sampling clock has been successfully set. Add capture semaphore, search for semaphore found.

Hold down the CTRL key, select the remaining three (or groups of) semaphores except "CLK_50M" in turn, and confirm the addition.

Capturing semaphore added successfully.

In the "Process" window, select synthesis or layout and routing, and select "Rerun All" in the right-click menu to completely recompile the project, which will add the logic analyzer function.

Launch the Logic Analyzer from the main toolbar

After starting the logic analyzer, check "Enable Programmer"

It is prompted that you need to download the configuration file for FPGA programming first. The "Fs File" file is different from the previous one and has been changed to ao_0.fs.

There are two .fs files in the project path. hello_led.fs is the configuration file without adding the logic analyzer, and ao_0.fs is the configuration file after adding the logic analyzer.

After successfully downloading the configuration file, the prompt turns green and is ready to run. Click the single execution icon (or press the shortcut key F1)

The data has been captured successfully, but is displayed in hexadecimal by default.

Select the signal, right-click the menu, follow the picture below, and select Unsigned Integer.

It is displayed as an integer for easy observation. However, the trigger edge is at the left and right, so it is inconvenient to see the previous state.

You can adjust the trigger position value to display the information before the trigger. You may change the position value from the default "0" to "10". Click Run again.

The captured signal shows the state before the trigger. The trigger scale just covers the LED transition edge, which is unacceptable for people with obsessive compulsive disorder. You may want to adjust the trigger value appropriately.

Change the trigger value from "25000000" to "25000002" and execute the capture again.

This time I can see it more clearly.

So far, the basic use of the embedded logic analyzer has been successful. There are still many advanced functions and other settings to be explored and gradually experienced in formal projects.

This post is from Domestic Chip Exchange

Latest reply

OK, thanks sir.   Details Published on 2021-12-27 13:53
 
 

1412

Posts

3

Resources
2
 

FPGA is so powerful! ! Awesome

This post is from Domestic Chip Exchange
 
 
 

7422

Posts

2

Resources
3
 

Although the interface looks simple, the functions are still good.

This post is from Domestic Chip Exchange
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

2w

Posts

74

Resources
4
 

Looking forward to the follow-up :)

This post is from Domestic Chip Exchange
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
Personal signature

加油!在电子行业默默贡献自己的力量!:)

 
 
 

270

Posts

0

Resources
5
 

On the logic analyzer page, I get a message saying that the download failed. Can someone please give me some advice?

This post is from Domestic Chip Exchange

Comments

Please close other projects and programmer windows, only one can be opened.  Details Published on 2021-12-24 15:59
 
 
 

664

Posts

104

Resources
6
 
Posted by A Teenager's Dream on 2021-12-24 09:26 On the logic analyzer page, I was prompted that the download failed. Can you give me some advice?

Please close other projects and programmer windows, only one can be opened.

This post is from Domestic Chip Exchange

Comments

When I used it, there was only one project and one download page  Details Published on 2021-12-27 11:55
When I used it, there was only one project and one download page  Details Published on 2021-12-27 08:53
When I used it, there was only one project and one download page  Details Published on 2021-12-24 16:59
 
 
 

270

Posts

0

Resources
7
 
gs001588 posted on 2021-12-24 15:59 Please close other projects and programmer windows, only one can be opened.

When I used it, there was only one project and one download page

This post is from Domestic Chip Exchange
 
 
 

270

Posts

0

Resources
8
 
gs001588 posted on 2021-12-24 15:59 Please close other projects and programmer windows, only one can be opened.

When using the JTAG port, do I just need to switch the jumper cap to JTAG mode and then still use the USB port to download?

This post is from Domestic Chip Exchange
 
 
 

270

Posts

0

Resources
9
 
gs001588 posted on 2021-12-24 15:59 Please close other projects and programmer windows, only one can be opened.

Today I found that I didn't use the JTAG downloader to download, but used USB to download. Do you have a purchase link for your Gaoyun JTAG?

This post is from Domestic Chip Exchange

Comments

I also use the onboard downloader, not a separate JTAG. That is too expensive. When it was cheap before, it was more than 300 yuan. Now it may be more expensive. [attachimg]580273[/attachimg]  Details Published on 2021-12-27 12:25
 
 
 

664

Posts

104

Resources
10
 
Posted by A Teenager's Dream on 2021-12-27 11:55 I just found out today that I didn't use the JTAG downloader to download, but used USB to download. Do you have a purchase link for your Gaoyun JTAG?

I also use the onboard downloader, no separate JTAG. That is too expensive, it was more than 300 yuan when it was cheap before, and it may be more expensive now.

This post is from Domestic Chip Exchange

Comments

The development board supports not only USB download, but also JTAG. I can't use it. Do I need to jump the four jumpers?  Details Published on 2021-12-27 12:32
 
 
 

270

Posts

0

Resources
11
 
gs001588 posted on 2021-12-27 12:25 I also use the onboard downloader, without a separate JTAG. That is too expensive. It was more than 300 yuan when it was cheap before, and it may be more expensive now.

The development board supports not only USB download, but also JTAG. I can't use it. Do I need to jump the four jumpers?

This post is from Domestic Chip Exchange

Comments

Don't worry about it, just use the onboard one. The onboard one is a USB to JTAG downloader. If you buy one separately, it will also be a USB to JTAG downloader, right? You have to buy the original one from Gaoyun, other third-party ones may not be reliable.  Details Published on 2021-12-27 13:05
 
 
 

664

Posts

104

Resources
12
 
This post was last edited by gs001588 on 2021-12-27 13:07
Posted by Huai Shounian Meng on 2021-12-27 12:32 The development board not only supports USB download, but also supports JTAG. I can't use it. Do I need to jump the four jumper caps?

Don't worry about this, just use the onboard one.

The onboard one is a USB to JTAG downloader. If you buy one separately, isn't it also a USB to JTAG downloader?

You have to buy the original Gaoyun products, other third-party products may not be reliable.

Move the 4 jumpers to the left, and then plug the external JTAG downloader cable into J5

This post is from Domestic Chip Exchange

Comments

OK, thanks sir.  Details Published on 2021-12-27 13:53
 
 
 

270

Posts

0

Resources
13
 
gs001588 posted on 2021-12-27 13:05 Posted by A Young Man with a Dream on 2021-12-27 12:32 The development board not only supports USB download, but also supports JTAG. I can't use it, right?

OK, thanks sir.

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list