initial commit for open source NoC IP

This commit is contained in:
Zexin Fu
2023-11-26 14:59:34 +01:00
commit 6ba3d27334
122 changed files with 14907 additions and 0 deletions

14
flow/lint/Makefile Executable file
View File

@@ -0,0 +1,14 @@
NAME := rvh_core
run-goals: run-goal-design_read run-goal-lint_lint_rtl
run-goal-design_read:
sg_shell -tcl spyglass-run-design_read.tcl
run-goal-lint_lint_rtl:
sg_shell -enable_pass_exit_codes -tcl spyglass-run-lint_lint_rtl.tcl
run-gui:
spyglass -project $(NAME).prj
clean:
@rm -rf rvh_core

25
flow/lint/rvh_core.prj Executable file
View File

@@ -0,0 +1,25 @@
#!SPYGLASS_PROJECT_FILE
#!VERSION 3.0
# -------------------------------------------------------------------
# This is a automatically generated project file by fusesoc.
# -------------------------------------------------------------------
set_option projectwdir .
set_option language_mode mixed
set_option designread_enable_synthesis yes
set_option designread_disable_flatten no
# Make no only FATAL messages return a non-zero exit code, but also ERRORs and
# WARNINGs
set_option enable_pass_exit_codes yes
read_file -type sourcelist ../../tb/flist_mesh.syn.f
set_option top top_mesh_syn
set_option enableSV09 yes
set_option active_methodology $SPYGLASS_HOME/GuideWare/latest/block/rtl_handoff
current_methodology $SPYGLASS_HOME/GuideWare/latest/block/rtl_handoff

View File

@@ -0,0 +1,21 @@
open_project rvh_core.prj
current_goal Design_Read
# Parameters which are not used/defined in a given goal/methodology raise
# a WARNING, which fails the lint process. That's a bit over the top, we hence
# disable this warning.
waive -rule {checkCMD_unknown}
set rc [run_goal]
close_project -force
set errorCode [lindex $rc 0]
set errorMsg [lindex $rc 1]
if { $errorCode } {
puts stderr "SpyGlass run failed: $errorMsg ($errorCode)"
}
# requires sg_shell to be called with -enable_pass_exit_codes, otherwise
# all non-fatal exit codes are mapped to 0
exit $errorCode

View File

@@ -0,0 +1,21 @@
open_project rvh_core.prj
current_goal lint/lint_rtl
# Parameters which are not used/defined in a given goal/methodology raise
# a WARNING, which fails the lint process. That's a bit over the top, we hence
# disable this warning.
waive -rule {checkCMD_unknown}
set rc [run_goal]
close_project -force
set errorCode [lindex $rc 0]
set errorMsg [lindex $rc 1]
if { $errorCode } {
puts stderr "SpyGlass run failed: $errorMsg ($errorCode)"
}
# requires sg_shell to be called with -enable_pass_exit_codes, otherwise
# all non-fatal exit codes are mapped to 0
exit $errorCode