Active-HDL and GOWIN Flow

Overview

GOWIN provides unencrypted, flattened post-synthesis verilog files for IP simulation.

Preparing GOWIN Example

Preparing Libraries

GOWIN currently offers two families: gow1n and gow2a. To compile appropriate primitives, use the following compilation script:

alib gow1n_sim
alog -work gow1n_sim $GOWIN_PATH\IDE\gow1n\prim_sim.v
alib gow1n_tsim
alog -work gow1n_tsim $GOWIN_PATH\IDE\gow1n\prim_tsim.v
alib gow2a_sim
alog -work gow2a_sim $GOWIN_PATH\IDE\gow2a\prim_sim.v
alib gow2a_tsim
alog -work gow2a_tsim $GOWIN_PATH\IDE\gow2a\prim_tsim.v

Importing IP

Follow the next steps:

  1. Generate an appropriate IP from the IP Core Generator by going to Tools-> IP Core Generator. Double click on FIFO SC as shown in Figure 2.

    Figure 2: GOWIN IP Core Generator

  2. Open the generated Verilog IP in Active-HDL.

  3. Remove the protected section from `pragma protect begin_protected to `pragma protect end_protected

  4. Save the file with another name and attach it to the Active-HDL design as shown in figure 3.

    Figure 3: Active-HDL "Save As" window

  5. Compile the modified file. As a result, the module entry will be compiled and added to the Active-HDL project.

Designing with Active-HDL

Simulating with Active-HDL

  1. Import the netlist and SDF from the GOWIN project into Active-HDL.

  2. Compile it and use the previously created libraries, gow1n_sim or gow1n_tsim, for timing back notation.



Printed version of site: www.aldec.com/jp/support/resources/documentation/articles/2189