.sv 與.svh之間的區別


.sv 文件與.svh文件沒有本質區別。通常,需要被include 到package的文件定義為.svh類型, 其他的文件定義為.sv類型。
.svh后綴的文件即systemverilog include文件。
Class templates that are declared within the scope of a package should be separated out into individual files with a .svh extension. These files should be included in the package in the order in which they need to be compiled. The package file is the only place where includes should be used, there should be no further `include statements inside the included files. Justification: Having the classes declared in separate files makes them easier to maintain, and it also makes it clearer what the package content is.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM