Skip to content

Commit a588caf

Browse files
fixed stuff
1 parent d967e59 commit a588caf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gowin_empu/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ You can increase the MCU's clock up to 80MHz with the use of a PLL or phase-lock
7878

7979
* Optionally, we can use Gowin's IP generator to configure and utilize a PLL to double the crystal clock's frequency. In the IP Core Generator tab search for the PLLVR module and double click to bring up its IP configurator pop-up.
8080
* Making sure the IP configurator is in the "General mode", change the CLKIN value to 27 and the Expected Frequency value of CLKOUT to 54 (all frequencies are in MHz). Click the Calculate button to set the configuration, it automatically calculates the required division factors and warns you if a frequency target cannot be met. Finally make sure the IP generator is set to your HDL of choice and click OK to generate and add the files to your project.
81+
8182
![](media/empu-tut-ipc-pll.png)
83+
8284
* Much like the MCU instantiation, a temporary file containing an example instance of the PLL will be opened up. Copy and paste it to the top-level module file we created, then modify the previous MCU instantiation accordingly so that it will use the PLL's clock output instead of the crystal clock, don't forget to also modify the PLL's instantiation so that it takes in the crystal clock as the input reference.
8385

8486
In VHDL, I needed to add a signal (wire) between the PLL and MCU for the doubled clock:
@@ -216,7 +218,7 @@ You will also need to download Gowin's SDK kit for the GW1NS(R)-4C, [the latest
216218
* Instruction set:Thumb (-mthumb)
217219
* Endianness:Toolchain default
218220
* Unaligned access:Toolchain default
219-
* Find the "GNU ARM Cross Assembler -> Preprocessor" settings and create a new element in the "Defined symbols" pane, give this symbol a value of "__STARTUP_CLEAR_BSS.
221+
* Find the "GNU ARM Cross Assembler -> Preprocessor" settings and create a new element in the "Defined symbols" pane, give this symbol a value of "__STARTUP_CLEAR_BSS".
220222

221223
![](media/empu-tut-gmd-asm-symbols.png)
222224

0 commit comments

Comments
 (0)