![]() So I think what I want is some sort of map from object -> src. sv file into the path to the relevant _primary.dat file using "$(addsuffix /_primary.dat, $(addprefix $(VLIB_DIR)/, $(basename $(notdir $(SRC)))))" however the reverse is impossible, as we loose the directory structure. sv files also need to be compiled in a specific order, and I only want to compile them if the source file or one of their dependencies has changed. So for example, calling "vlog src/interface/my_interface.sv" creates (if it succeeds) work/my_interface/_primary.dat ![]() In that directory are three files the one that I'll use as my "object' file is _primary.dat. sv file a directory gets created in the work folder with the same name as the. When I call my "compiler" which is called vlog, on a. The work/ directory doesn't initially exist, and is created by the makefile. The src/ directory contains several directories which each contain source files. I have a project director containing: src/ work/ Makefile If you don't know what that is (and most people won't) then don't worry, it's not that relevant to my problem. ![]() So I'm trying to write a Makefile to use with QuestaSim and systemverilog files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |