diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..84fdeb6dc2780fdad477c89521fb68f5e81fb334 --- /dev/null +++ b/README.en.md @@ -0,0 +1,36 @@ +# verilator + +#### Description +Compiling Verilog HDL simulator + +#### Software Architecture +Software architecture description + +#### Installation + +1. xxxx +2. xxxx +3. xxxx + +#### Instructions + +1. xxxx +2. xxxx +3. xxxx + +#### Contribution + +1. Fork the repository +2. Create Feat_xxx branch +3. Commit your code +4. Create Pull Request + + +#### Gitee Feature + +1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md +2. Gitee blog [blog.gitee.com](https://blog.gitee.com) +3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) +4. The most valuable open source project [GVP](https://gitee.com/gvp) +5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) +6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e7422a2080e5efdbd1f52ed7c49e0659a67fe2af --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# verilator + +#### 介绍 +Compiling Verilog HDL simulator + +#### 软件架构 +软件架构说明 + + +#### 安装教程 + +1. xxxx +2. xxxx +3. xxxx + +#### 使用说明 + +1. xxxx +2. xxxx +3. xxxx + +#### 参与贡献 + +1. Fork 本仓库 +2. 新建 Feat_xxx 分支 +3. 提交代码 +4. 新建 Pull Request + + +#### 特技 + +1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md +2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) +3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 +4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 +5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) +6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/verilator-4.108.tgz b/verilator-4.108.tgz deleted file mode 100644 index c88ef58c18466815ea096520e53aac72e6db93d9..0000000000000000000000000000000000000000 Binary files a/verilator-4.108.tgz and /dev/null differ diff --git a/verilator-5.021.tar.gz b/verilator-5.021.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f1b6c7b94a51c7bb0b3e21f058d5ed5ffe1cc97b Binary files /dev/null and b/verilator-5.021.tar.gz differ diff --git a/verilator.spec b/verilator.spec index 65995750f9e53699d2e6af4091eaad41dc6d7711..6ea6263e2a0f94f44372b85e2bb17e796663cff7 100644 --- a/verilator.spec +++ b/verilator.spec @@ -1,266 +1,38 @@ -Name: verilator -Version: 4.108 -Release: 3%{?dist} -Summary: A fast simulator for synthesizable Verilog -License: LGPLv3 or Artistic 2.0 -URL: http://www.veripool.com/%{name}.html -Source0: http://www.veripool.org/ftp/%{name}-%{version}.tgz -BuildRequires: bison -BuildRequires: coreutils -BuildRequires: findutils -BuildRequires: flex -BuildRequires: gcc -BuildRequires: gcc-c++ -Buildrequires: make -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(Data::Dumper) -BuildRequires: perl(Getopt::Long) -BuildRequires: perl(IO::File) -BuildRequires: perl(Pod::Usage) -BuildRequires: perl(strict) -BuildRequires: perl(vars) -BuildRequires: python3-devel -BuildRequires: sed - +Name: verilator +Version: 5.021 +Release: 1 +Summary: Opensource Distributed Tracing System +License: LGPLv3 +URL: https://github.com/verilator/verilator +Source0: %{name}-%{version}.tar.gz +Requires: flex bison help2man +BuildArch: aarch64 + +BuildRequires: flex bison help2man gcc gcc-c++ %description -Verilator is the fastest free Verilog HDL simulator. It compiles -synthesizable Verilog, plus some PSL, SystemVerilog and Synthesis -assertions into C++ or SystemC code. It is designed for large projects -where fast simulation performance is of primary concern, and is -especially well suited to create executable models of CPUs for -embedded software design teams. +Verilator open-source SystemVerilog simulator and lint system %prep -%setup -q -find . -name .gitignore -delete -export VERILATOR_ROOT=%{_datadir} -%{configure} \ - --disable-ccwarn \ - --enable-defenv \ - --disable-longtests -# We cannot run autoreconf because upstream uses unqualifed stdlib identifiers -# that are included by autoconf-generated header files. -find -name Makefile_obj -exec sed -i \ - -e 's|^\(COPT = .*\)|\1 %{optflags}|' \ - -e 's|^#LDFLAGS += .*|LDFLAGS += %{__global_ldflags}|' \ - {} \; +%setup -q -n %{name} +%global debug_package %{nil} %build -%make_build - -# disable tests due lack of SystemC -# Skip: vlt/t_a_first_sc: Test requires SystemC -# %check -# make test +autoconf +./configure --prefix=/usr/local/verilator +make %{?_smp_mflags} %install -%make_install - -# remove the copy of examples in the datadir so we could -# mark the copy in the source directory as "doc" -rm -rf %{buildroot}%{_datadir}/verilator/examples - -# remove not needed build directory and bin directory -rm -rf %{buildroot}%{_datadir}/verilator/src -rm -rf %{buildroot}%{_bindir}/verilator_includer - -# verilator installs verilator.pc under ${datadir} -# but for consistency we want it under ${libdir} -mkdir -p %{buildroot}%{_libdir}/pkgconfig -mv %{buildroot}%{_datadir}/pkgconfig/verilator.pc %{buildroot}%{_libdir}/pkgconfig +export DONT_STRIP=1 +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} %files -%license Artistic LICENSE -%doc Changes README* -%doc verilator.pdf verilator.html -%doc examples/ - -%{_mandir}/man1/verilator.1.gz -%{_mandir}/man1/verilator_coverage.1.gz -%{_mandir}/man1/verilator_gantt.1.gz -%{_mandir}/man1/verilator_profcfunc.1.gz -%{_datadir}/verilator -%{_libdir}/pkgconfig/verilator.pc - -%defattr(755,root,root,-) -%{_bindir}/verilator -%{_bindir}/verilator_bin -%{_bindir}/verilator_bin_dbg -%{_bindir}/verilator_coverage -%{_bindir}/verilator_coverage_bin_dbg -%{_bindir}/verilator_gantt -%{_bindir}/verilator_profcfunc +%{_prefix}/local/verilator/bin/* +%{_prefix}/local/verilator/share/* %changelog -* Fri Jul 23 2021 Fedora Release Engineering - 4.108-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Jan 27 2021 Fedora Release Engineering - 4.108-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Jan 25 2021 Filipe Rosset - 4.108-1 -- Update to 4.108 fixes rhbz#1901487 - -* Wed Jul 29 2020 Fedora Release Engineering - 4.032-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Apr 24 2020 Filipe Rosset - 4.032-1 -- Update to 4.032 - -* Sun Feb 16 2020 Filipe Rosset - 4.028-1 -- Update to 4.028 - -* Fri Jan 31 2020 Fedora Release Engineering - 4.026-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Wed Jan 22 2020 Filipe Rosset - 4.026-1 -- Update to 4.026 fixes rhbz#1747211 - -* Thu Aug 22 2019 Filipe Rosset - 4.016-1 -- Updated to 4.016 fixes rhbz#1590822 rhbz#1643479 and rhbz#1700228 - -* Sat Jul 27 2019 Fedora Release Engineering - 3.922-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri May 03 2019 Scott Tsai scottt.tw@gmail.com - 3.922-5 -- Remove duplicate copies of 'examples' in /usr/share/doc -- https://bugzilla.redhat.com/show_bug.cgi?id=1592057#c3 - -* Fri May 03 2019 Marcus Müller - 3.922-4 -- Made %{_bindir}/verilator et al executable, fixes rhbz #1592057 - -* Sun Feb 03 2019 Fedora Release Engineering - 3.922-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sat Jul 14 2018 Fedora Release Engineering - 3.922-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Sun Mar 18 2018 Filipe Rosset - 3.922-1 -- 3.922 bump, fixes rhbz #1557720 - -* Fri Feb 09 2018 Igor Gnatenko - 3.920-2 -- Escape macros in %%changelog - -* Wed Feb 07 2018 Filipe Rosset - 3.920-1 -- 3.920 bump -- Disabled tests until upstream fixes the issue -- Added BR to fix EPEL7 build -- Fixes rhbz #1250122 and rhbz #1494887 - -* Fri Sep 08 2017 Petr Pisar - 3.910-1 -- 3.910 bump -- License corrected to (LGPLv3 or Artistic 2.0) - -* Thu Aug 03 2017 Fedora Release Engineering - 3.890-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 3.890-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Mon May 15 2017 Fedora Release Engineering - 3.890-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 3.890-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Nov 28 2016 Filipe Rosset - 3.890-2 -- Attempt to rebuilt on rawhide due dependency problems - -* Mon Nov 28 2016 Filipe Rosset - 3.890-1 -- Rebuilt for new upstream version 3.890 -- Spec clean up plus fixes rhbz #1087393 and rhbz #1358609 - -* Fri Feb 05 2016 Fedora Release Engineering - 3.874-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Jun 19 2015 Fedora Release Engineering - 3.874-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Jun 07 2015 Scott Tsai - 3.874-1 -- Upstream 3.874 - -* Sat May 02 2015 Kalev Lember - 3.864-2 -- Rebuilt for GCC 5 C++11 ABI change - -* Mon Sep 22 2014 Scott Tsai 3.864-1 -- Upstream 3.864 - -* Mon Aug 18 2014 Fedora Release Engineering - 3.862-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Fri Jun 13 2014 Scott Tsai 3.862-1 -- Upstream 3.862 - -* Sun Jun 08 2014 Fedora Release Engineering - 3.845-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 3.845-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Sat Feb 16 2013 Chitlesh Goorah - 3.845-1 -- updated to 3.845 - -* Fri Feb 15 2013 Fedora Release Engineering - 3.805-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Jul 22 2012 Fedora Release Engineering - 3.805-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Tue Feb 28 2012 Fedora Release Engineering - 3.805-4 -- Rebuilt for c++ ABI breakage - -* Sat Jan 14 2012 Fedora Release Engineering - 3.805-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Feb 07 2011 Fedora Release Engineering - 3.805-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sun Nov 07 2010 Chitlesh Goorah - 3.805-1 -- updated to 3.805 - -* Sat Sep 25 2010 Chitlesh Goorah - 3.804-1 -- updated to 3.804 - -* Sun Jul 11 2010 Chitlesh Goorah - 3.803-1 -- updated to 3.803 - -* Fri Jul 24 2009 Lane Brooks - 3.712-1 -- Updated to verilator 3.712 - -* Fri Jun 26 2009 Lane Brooks - 3.711-1 -- Updated to verilator 3.711 -- Added Artistic file -- Fixed permissions on man file - -* Tue Jun 9 2009 Lane Brooks - 3.710-1 -- Updated to verilator 3.710 -- Removed GCC 4.3 patch (no longer necessary) -- Added SYSTEMPERL_INCLUDE to point to perl-SystemPerl rpm install location - -* Fri Jan 9 2009 Lane Brooks - 3.700-1 -- Updated dependancy to newly packaged perl-SystemPerl and removed patch -- Updated to verilator 3.700 -- Added GCC 4.3 patch - -* Fri Jan 2 2009 Lane Brooks - 3.681-2 -- Moved examples from data dir to doc dir - -* Thu Jan 1 2009 Lane Brooks - 3.681-1 -- Updated verilator 3.681 -- Removed gcc 4.3 patch as verilator 3.681 incorporates this fix -- Removed shared object patch as it is possible to do this from Makefile - using environment variables -- Further updates to the spec file per Chitlesh's feedback - -* Sun Oct 26 2008 Lane Brooks - 3.680-3 -- Improved spec file for Fedora integration based on initial feedback - -* Thu Oct 23 2008 Lane Brooks - 3.680-2 -- Added shared object generation patch - -* Thu Oct 16 2008 Lane Brooks - 3.680-1 -- Initial package based on SUSE packages from Guenter Dannoritzer +* Wed Feb 21 2024 baiyong -%{version}-1 +-initial version