Gowin Simulation - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: June 24, 2020, 10:58:33 am
content: Hi,I have made a board for GW2AR-LV18QN part, And every thing is working as expected and I have written UART,SPI, PWM peripherals and have tested them successfully.Now I want to use the IP cores, for example the FIFO one, The problem for now is how can I simulate my design with the Gowin IO cores, using Modelsim etc...I have found a folder named simlib in the installation folder,I wonder if anyone in here has done simulation with gowin IP on modelsim or another simulation software, is it possible? how?Any tips would be highly appreciated.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: June 25, 2020, 09:32:37 am
content: Does any body use Gowin FPGA's in here?The tools generate a SDF file, can it be used for simulation? how?

author: Bassman59
author_rank: Super Contributor
timestamp: June 25, 2020, 07:08:28 pm
content: Quote from: ali_asadzadeh on June 25, 2020, 09:32:37 amAssuming that Gowin is no different from any other FPGA vendor --In addition to the SDF file, the Gowin tools should provide a VHDL or Verilog model of the design which replaces your RTL/behavioral code with primitives. So you bring the new model and the SDF into your simulation tool, which needs to be able to do such back-annotated simulation. You use the same test bench as with your original design.ModelSim and Aldec can do such simulation. I think that ghdl can do it, too.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: June 28, 2020, 07:33:45 am
content: thanks, Do you have any web link or tutorial on how to do it?

author: up8051
author_rank: Frequent Contributor
timestamp: May 10, 2021, 08:13:24 pm
content: Did you resolve problem with IP simulation?

author: FlyingDutch
author_rank: Regular Contributor
timestamp: May 11, 2021, 08:38:48 am
content: Hello,there is short note about simulation for Gowin FPGA in this document:https://www.gowinsemi.com/upload/database_doc/1/document/5bfcfcab42d1c.pdf?_file=database_doc%2F1%2Fdocument%2F5bfcfcab42d1c.pdfSee paragraph : 6.4 Simulation.Best Regards

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: May 11, 2021, 09:05:16 am
content: Thanks, But There is no such option in the tools, I'm using 1.9.7.01 Beta, and I think it's the latest version.

author: Saa1206
author_rank: Contributor
timestamp: January 02, 2022, 08:27:16 am
content: Wanna simulate Gowin's IP-blocks in, say, Mentor's ModelSim.E.g. CPLD GW1N-UV1P5LQ100C6/I5 OSCO, described in UG286-1.9.1E Gowin Clock User Guide.pdf page 100/104 topic 6.1.5 OSCOAt %Gowin_DIR%\Gowin_V1.9.8.01\IDE\simlib\gw1n\prim_sim.v look for OSCOCode://OSCO,for gw1n-2//Fosc = 250M/FREQ_DIVmodule OSCO (OSCOUT, OSCEN);parameter FREQ_DIV = 100; // 2~128,only even numparameter REGULATOR_EN = 1'b0; //1'b0, Powered by VCC!; 1’b1: Powered by regulator（only UV/LV）.output OSCOUT;input OSCEN;reg oscr;realtime half_clk;initial beginoscr = 1'b0;half_clk =2*FREQ_DIV;endassign OSCOUT = OSCEN ? oscr : 1'b1;alwaysbegin#half_clk;oscr = 1'b1;#half_clk;oscr = 1'b0;endendmoduleBut what are FREQ_DIV and REGULATOR_EN?!And where is clock division?!

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: January 02, 2022, 10:13:54 am
content: Saa1206 could you do any simulation with IP at all?

author: Mecanix
author_rank: Frequent Contributor
timestamp: April 03, 2024, 03:12:21 pm
content: For the record. This will teach how to import the Gowin's precompiled libraries into ModelSim / QuestaSim and run simulations based on their IPcores. Tested yesterday with QuestaSim 2023 & Gowin Designer 1.9.9.01 (build71333).https://youtu.be/2uUcYFE-3S8?t=393

author: mon2
author_rank: Frequent Contributor
timestamp: April 05, 2024, 10:17:16 am
content: BTW, a new version of the Gowin IDE was released earlier this week.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: April 06, 2024, 09:41:15 am
content: QuoteThanks for sharing

author: Rainwater
author_rank: Regular Contributor
timestamp: April 26, 2024, 03:19:39 am
content: Quote from: Mecanix on April 03, 2024, 03:12:21 pmIs there a kind soul that can make a transcript of what is being said? Written words are easier to translate. The translator in my phone cant keep up.