Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Do not underestimate the value of print statements for debugging.


devel / comp.lang.vhdl / Re: Best approach using GHDL to wrap clocked VHDL

SubjectAuthor
* Best approach using GHDL to wrap clocked VHDLDamien Towning
`- Best approach using GHDL to wrap clocked VHDLKJ

1
Best approach using GHDL to wrap clocked VHDL

<474ea2c6-4555-4b3c-9fcd-e9985866ba52n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=168&group=comp.lang.vhdl#168

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:ad4:4814:0:b0:534:7177:cd12 with SMTP id qd20-20020ad44814000000b005347177cd12mr383792qvb.25.1674076091423;
Wed, 18 Jan 2023 13:08:11 -0800 (PST)
X-Received: by 2002:a25:1fd4:0:b0:7d4:712e:2852 with SMTP id
f203-20020a251fd4000000b007d4712e2852mr962093ybf.628.1674076091197; Wed, 18
Jan 2023 13:08:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.vhdl
Date: Wed, 18 Jan 2023 13:08:10 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=194.193.135.13; posting-account=p-1XpwoAAAAU33dCdagwyPSBDsbmmd0A
NNTP-Posting-Host: 194.193.135.13
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <474ea2c6-4555-4b3c-9fcd-e9985866ba52n@googlegroups.com>
Subject: Best approach using GHDL to wrap clocked VHDL
From: connolly.damien@gmail.com (Damien Towning)
Injection-Date: Wed, 18 Jan 2023 21:08:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 9
 by: Damien Towning - Wed, 18 Jan 2023 21:08 UTC

I have a VHDL project. Is a RISC-V Bonfire in an Efinity T-35 FPGA. The board the T-35 is in has external clock on a GPIO pin that is driving it. Runs on the FPGA happily. Now I have successfully built my project using GHDL-GCC. Next I have started looking at wrapping it and am reading through the documentation. But in general what would be best practice for binding the SYSCLK in my VHDL code to some external function to drive it? I have been looking at the customc example where the VHDL calls C functions. Can I call a C function that runs the clock and return a clock step that way? Or have I got this the wrong way around and the C code should reach in to the running object and clock it that way?

Re: Best approach using GHDL to wrap clocked VHDL

<db9e0cf0-916e-4b47-861c-8bc4ccdfe61cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=169&group=comp.lang.vhdl#169

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:a05:622a:5c88:b0:3b4:2946:c083 with SMTP id ge8-20020a05622a5c8800b003b42946c083mr488259qtb.457.1674409120130;
Sun, 22 Jan 2023 09:38:40 -0800 (PST)
X-Received: by 2002:a81:46:0:b0:3ce:df72:19d1 with SMTP id 67-20020a810046000000b003cedf7219d1mr2643262ywa.264.1674409119812;
Sun, 22 Jan 2023 09:38:39 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.swapon.de!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.vhdl
Date: Sun, 22 Jan 2023 09:38:39 -0800 (PST)
In-Reply-To: <474ea2c6-4555-4b3c-9fcd-e9985866ba52n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:d660:9640:8ccd:f697:31e4:4f7f;
posting-account=TJOePQoAAADr-f6dDt_fMmacSJMCG-pd
NNTP-Posting-Host: 2600:1700:d660:9640:8ccd:f697:31e4:4f7f
References: <474ea2c6-4555-4b3c-9fcd-e9985866ba52n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db9e0cf0-916e-4b47-861c-8bc4ccdfe61cn@googlegroups.com>
Subject: Re: Best approach using GHDL to wrap clocked VHDL
From: kkjennings@sbcglobal.net (KJ)
Injection-Date: Sun, 22 Jan 2023 17:38:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2932
 by: KJ - Sun, 22 Jan 2023 17:38 UTC

On Wednesday, January 18, 2023 at 4:08:13 PM UTC-5, connoll...@gmail.com wrote:
> I have a VHDL project. Is a RISC-V Bonfire in an Efinity T-35 FPGA. The board the T-35 is in has external clock on a GPIO pin that is driving it. Runs on the FPGA happily. Now I have successfully built my project using GHDL-GCC. Next I have started looking at wrapping it and am reading through the documentation. But in general what would be best practice for binding the SYSCLK in my VHDL code to some external function to drive it? I have been looking at the customc example where the VHDL calls C functions. Can I call a C function that runs the clock and return a clock step that way? Or have I got this the wrong way around and the C code should reach in to the running object and clock it that way?

I've read this several times and I have no idea what you are trying to do. An example,
> Next I have started looking at wrapping it

What is "it"? Are you trying to do something on the board? In simulation? Who knows...

But since this is a VHDL group, I would suggest that if you are trying to "wrap" your FPGA design for simulation, then the best approach is to write a testbench for your FPGA design. This involves writing VHDL that models all of the inputs to the FPGA and monitors all of the outputs. You would instantiate that FPGA design in the testbench. There would be no reason to use C to do any of this. I would go on but like I said, I have no idea what you're really trying to do, so you need to explain that first.

Kevin Jennings

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor