Using iVarilog vs. VCS

451 views
Skip to first unread message

Nhon

unread,
Oct 1, 2016, 12:54:44 PM10/1/16
to RISC-V HW Dev
Hi, all,

Has anyone tried using iverilog instead of VCS for vsim? Simulation quality wise, is iverilog good enough for actual ASIC chip? Any idea how fast or slow iverilog is vs. VCS?

I vaguely remember some project (lowrisc?) has used this, but not sure. If so, can someone share the Makefile? I am interested in learning how the various simulation options are replaced by iverilog's.

If there is a better open source verilog, please let me know as well.

Thanks!

Nhon

Palmer Dabbelt

unread,
Oct 1, 2016, 1:30:51 PM10/1/16
to Nhon, RISC-V HW Dev
I tried earlier this week, but it looks like iverilog doesn't have support for SystemVerilog DPI, which the Rocket Chip test harness is written in.  Here's a vague bug report


which convinced me to stop trying to make it work.  Rocket Chip supports Verilator out of the box, use the emulator directory.  Here's the Makefile


I've had good luck with Verilator for RTL simulation.

--
You received this message because you are subscribed to the Google Groups "RISC-V HW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to hw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/hw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/hw-dev/51af9ab7-2590-42e7-9fa6-c064b516fe04%40groups.riscv.org.

Nhon

unread,
Oct 7, 2016, 12:50:35 PM10/7/16
to RISC-V HW Dev, nhon....@abeesemi.net
Palmer,

Did you mean you have better luck using Verilator for TinyConfig or for the default config?

Thanks,

Nhon


On Saturday, October 1, 2016 at 10:30:51 AM UTC-7, palmer.dabbelt wrote:
I tried earlier this week, but it looks like iverilog doesn't have support for SystemVerilog DPI, which the Rocket Chip test harness is written in.  Here's a vague bug report


which convinced me to stop trying to make it work.  Rocket Chip supports Verilator out of the box, use the emulator directory.  Here's the Makefile


I've had good luck with Verilator for RTL simulation.
On Sat, Oct 1, 2016 at 9:54 AM, Nhon <nhon....@abeesemi.net> wrote:
Hi, all,

Has anyone tried using iverilog instead of VCS for vsim? Simulation quality wise, is iverilog good enough for actual ASIC chip? Any idea how fast or slow iverilog is vs. VCS?

I vaguely remember some project (lowrisc?) has used this, but not sure. If so, can someone share the Makefile? I am interested in learning how the various simulation options are replaced by iverilog's.

If there is a better open source verilog, please let me know as well.

Thanks!

Nhon

--
You received this message because you are subscribed to the Google Groups "RISC-V HW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hw-dev+un...@groups.riscv.org.

Palmer Dabbelt

unread,
Oct 7, 2016, 1:29:33 PM10/7/16
to nhon....@abeesemi.net, hw-...@groups.riscv.org, nhon....@abeesemi.net
As far as I know, all Rocket Chip configs should work in Verilator. We
actually use Verilator for CI builds of Rocket Chip on Travis, since we can't
run propritary tools there:

https://travis-ci.org/ucb-bar/rocket-chip

Unless this has changed, all Rocket Chip commits need to pass all the tests on
Travis (using Verilator as a simulator) before they can be merged to master.
You can see the exact set of configs here:

https://github.com/ucb-bar/rocket-chip/blob/master/regression/Makefile#L43

DefaultConfig and TinyConfig are both on that list, so they're both regularly
tested on Verilator.

On Fri, 07 Oct 2016 09:50:35 PDT (-0700), nhon....@abeesemi.net wrote:
> Palmer,
>
> Did you mean you have better luck using Verilator for TinyConfig or for the
> default config?
>
> Thanks,
>
> Nhon
>
> On Saturday, October 1, 2016 at 10:30:51 AM UTC-7, palmer.dabbelt wrote:
>>
>> I tried earlier this week, but it looks like iverilog doesn't have support
>> for SystemVerilog DPI, which the Rocket Chip test harness is written in.
>> Here's a vague bug report
>>
>> https://github.com/steveicarus/iverilog/issues/100
>>
>> which convinced me to stop trying to make it work. Rocket Chip supports
>> Verilator out of the box, use the emulator directory. Here's the Makefile
>>
>> https://github.com/ucb-bar/rocket-chip/blob/master/emulator/Makefile
>>
>> I've had good luck with Verilator for RTL simulation.
>>
>> On Sat, Oct 1, 2016 at 9:54 AM, Nhon <nhon....@abeesemi.net <javascript:>>
>> wrote:
>>
>>> Hi, all,
>>>
>>> Has anyone tried using iverilog instead of VCS for vsim? Simulation
>>> quality wise, is iverilog good enough for actual ASIC chip? Any idea how
>>> fast or slow iverilog is vs. VCS?
>>>
>>> I vaguely remember some project (lowrisc?) has used this, but not sure.
>>> If so, can someone share the Makefile? I am interested in learning how the
>>> various simulation options are replaced by iverilog's.
>>>
>>> If there is a better open source verilog, please let me know as well.
>>>
>>> Thanks!
>>>
>>> Nhon
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "RISC-V HW Dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to hw-dev+un...@groups.riscv.org <javascript:>.
>>> To post to this group, send email to hw-...@groups.riscv.org
>>> <javascript:>.
>>> <https://groups.google.com/a/groups.riscv.org/d/msgid/hw-dev/51af9ab7-2590-42e7-9fa6-c064b516fe04%40groups.riscv.org?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
Reply all
Reply to author
Forward
0 new messages