forked from github/verilator
525c79bd0a
This adds files to build and run two Docker images: - run: Build a Docker container that can be used as an executable drop-in for verilator. This can be useful to test behavior of older versions or a development version. The functionality is pretty simplistic at the moment for a start. - buildenv: Everything needed to build and test Verilator. Useful to run quick tests in the cloud or try other compilers. It can also serve as basis for further CI integration.
11 lines
447 B
Bash
Executable File
11 lines
447 B
Bash
Executable File
#!/bin/bash
|
|
# DESCRIPTION: Wrap a verilator call to run a docker container
|
|
#
|
|
# Copyright 2020 by Stefan Wallentowitz. This program is free
|
|
# software; you can redistribute it and/or modify it under the terms
|
|
# of either the GNU Lesser General Public License Version 3 or the
|
|
# Perl Artistic License Version 2.0.
|
|
|
|
docker pull verilator/verilator:$1 >/dev/null
|
|
docker run -ti -v ${PWD}:/work --user $(id -u):$(id -g) verilator/verilator:$1 "${@:2}"
|