initial commit for open source NoC IP
This commit is contained in:
14
flow/lint/Makefile
Executable file
14
flow/lint/Makefile
Executable 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
25
flow/lint/rvh_core.prj
Executable 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
|
||||
|
||||
21
flow/lint/spyglass-run-design_read.tcl
Executable file
21
flow/lint/spyglass-run-design_read.tcl
Executable 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
|
||||
21
flow/lint/spyglass-run-lint_lint_rtl.tcl
Executable file
21
flow/lint/spyglass-run-lint_lint_rtl.tcl
Executable 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
|
||||
Reference in New Issue
Block a user