modified Makefile(all tests verified)
This commit is contained in:
		
							parent
							
								
									e6e6ad233a
								
							
						
					
					
						commit
						d533ec413e
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
["sbt.Task[scala.collection.Seq[java.nio.file.Path]]",["/home/users/scratch/komal.javed.data/Quasar/quasar2/design/project/target/streams/compile/compileOutputs/_global/streams/inc_compile_2.12.zip"]]
 | 
					["sbt.Task[scala.collection.Seq[java.nio.file.Path]]",["/home/users/scratch/komal.javed.data/Quasar/k_se_quasar/design/project/target/streams/compile/compileOutputs/_global/streams/inc_compile_2.12.zip"]]
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
[0m[[0m[0mdebug[0m] [0m[0mFull compilation, no sources in previous analysis.[0m
 | 
					[debug] Full compilation, no sources in previous analysis.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,2 +1,2 @@
 | 
				
			||||||
[0m[[0m[0mdebug[0m] [0m[0mCopy resource mappings: [0m
 | 
					[debug] Copy resource mappings: 
 | 
				
			||||||
[0m[[0m[0mdebug[0m] [0m[0m	[0m
 | 
					[debug] 	
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
/home/users/scratch/komal.javed.data/Quasar/quasar2/design/project/target/scala-2.12/sbt-1.0/classes
 | 
					/home/users/scratch/komal.javed.data/Quasar/k_se_quasar/design/project/target/scala-2.12/sbt-1.0/classes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
/home/users/scratch/komal.javed.data/Quasar/quasar2/design/project/target/scala-2.12/sbt-1.0/classes
 | 
					/home/users/scratch/komal.javed.data/Quasar/k_se_quasar/design/project/target/scala-2.12/sbt-1.0/classes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
/home/users/scratch/komal.javed.data/Quasar/quasar2/design/project/target/scala-2.12/sbt-1.0/classes
 | 
					/home/users/scratch/komal.javed.data/Quasar/k_se_quasar/design/project/target/scala-2.12/sbt-1.0/classes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
/home/users/scratch/komal.javed.data/Quasar/quasar2/design/project/target/scala-2.12/sbt-1.0/classes
 | 
					/home/users/scratch/komal.javed.data/Quasar/k_se_quasar/design/project/target/scala-2.12/sbt-1.0/classes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
/home/users/scratch/komal.javed.data/Quasar/quasar2/design/project/target/scala-2.12/sbt-1.0/classes
 | 
					/home/users/scratch/komal.javed.data/Quasar/k_se_quasar/design/project/target/scala-2.12/sbt-1.0/classes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -55,22 +55,24 @@ endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HEX_DIR = ${TBDIR}/hex
 | 
					HEX_DIR = ${TBDIR}/hex
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# provide specific link file
 | 
					 | 
				
			||||||
ifeq (,$(wildcard $(TEST_DIR)/$(TEST).ld))
 | 
					 | 
				
			||||||
	LINK = $(BUILD_DIR)/link.ld
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
	LINK = $(TEST_DIR)/$(TEST).ld
 | 
					 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
OFILES = $(TEST).o
 | 
					OFILES = $(TEST).o
 | 
				
			||||||
OFILES_PATH = ${RV_ROOT}/verif/sim
 | 
					OFILES_PATH = ${RV_ROOT}/verif/sim
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifdef debug
 | 
					ifdef debug
 | 
				
			||||||
 DEBUG_PLUS = +dumpon
 | 
					 DEBUG_PLUS = +dumpon
 | 
				
			||||||
 | 
					 IRUN_DEBUG = -access +rc
 | 
				
			||||||
 | 
					 IRUN_DEBUG_RUN = -input ${RV_ROOT}/testbench/input.tcl
 | 
				
			||||||
 VCS_DEBUG = -debug_access
 | 
					 VCS_DEBUG = -debug_access
 | 
				
			||||||
 VERILATOR_DEBUG = --trace
 | 
					 VERILATOR_DEBUG = --trace
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# provide specific link file
 | 
				
			||||||
 | 
					ifeq (,$(wildcard $(TEST_DIR)/$(TEST).ld))
 | 
				
			||||||
 | 
						LINK = $(BUILD_DIR)/link.ld
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
						LINK = $(TEST_DIR)/$(TEST).ld
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VPATH = $(TEST_DIR) $(BUILD_DIR) $(TBDIR)
 | 
					VPATH = $(TEST_DIR) $(BUILD_DIR) $(TBDIR)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-include $(TEST_DIR)/$(TEST).mki
 | 
					-include $(TEST_DIR)/$(TEST).mki
 | 
				
			||||||
| 
						 | 
					@ -124,7 +126,7 @@ vcs-build: ${TBFILES} conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
vcs: program.hex vcs-build 
 | 
					vcs: program.hex vcs-build 
 | 
				
			||||||
	./simv $(DEBUG_PLUS) +vcs+lic+wait  -l $(OFILES_PATH)/vcs.log
 | 
						./simv $(DEBUG_PLUS) +vcs+lic+wait  -l $(OFILES_PATH)/vcs.log
 | 
				
			||||||
	@rm -rf program.hex $(addprefix $(OFILES_PATH)/,csrc simv* vc_hdrs.h ucli.key console.log *.csv)
 | 
						@rm -rf program.hex $(addprefix $(OFILES_PATH)/,csrc simv* vc_hdrs.h ucli.key console.log *.csv obj_dir)
 | 
				
			||||||
	@mv csrc simv* vc_hdrs.h ucli.key console.log *.csv $(OFILES_PATH)
 | 
						@mv csrc simv* vc_hdrs.h ucli.key console.log *.csv $(OFILES_PATH)
 | 
				
			||||||
	@mv *.log ${RV_ROOT}/tracer_logs
 | 
						@mv *.log ${RV_ROOT}/tracer_logs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -140,7 +142,7 @@ endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
verilator: program.hex verilator-build
 | 
					verilator: program.hex verilator-build
 | 
				
			||||||
	./obj_dir/Vtb_top
 | 
						./obj_dir/Vtb_top
 | 
				
			||||||
	@rm -rf program.hex $(addprefix $(OFILES_PATH)/,csrc simv* vc_hdrs.h ucli.key console.log *.csv)
 | 
						@rm -rf program.hex $(addprefix $(OFILES_PATH)/,csrc simv* vc_hdrs.h ucli.key console.log *.csv obj_dir)
 | 
				
			||||||
	@mv  console.log *.csv obj_dir $(OFILES_PATH)
 | 
						@mv  console.log *.csv obj_dir $(OFILES_PATH)
 | 
				
			||||||
	@mv *.log ${RV_ROOT}/tracer_logs
 | 
						@mv *.log ${RV_ROOT}/tracer_logs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -158,8 +160,7 @@ program.hex:
 | 
				
			||||||
else 
 | 
					else 
 | 
				
			||||||
program.hex: $(OFILES) $(LINK)
 | 
					program.hex: $(OFILES) $(LINK)
 | 
				
			||||||
	@echo Building $(TEST)
 | 
						@echo Building $(TEST)
 | 
				
			||||||
	$(GCC_PREFIX)-gcc -Wl,-m,elf32lriscv -Wl,--discard-none -T$(LINK) -o $(OFILES_PATH)/$(TEST).exe \
 | 
						cd $(OFILES_PATH) && $(GCC_PREFIX)-gcc -Wl,-m,elf32lriscv -Wl,--discard-none -T$(LINK) -o $(TEST).exe $(OFILES) \
 | 
				
			||||||
	$(addprefix $(OFILES_PATH)/,$(OFILES)) \
 | 
					 | 
				
			||||||
	-nostartfiles -nostdlib $(TEST_LIBS) 
 | 
						-nostartfiles -nostdlib $(TEST_LIBS) 
 | 
				
			||||||
	$(GCC_PREFIX)-objcopy -O verilog  $(OFILES_PATH)/$(TEST).exe program.hex
 | 
						$(GCC_PREFIX)-objcopy -O verilog  $(OFILES_PATH)/$(TEST).exe program.hex
 | 
				
			||||||
	$(GCC_PREFIX)-objdump -S  $(OFILES_PATH)/$(TEST).exe > $(OFILES_PATH)/$(TEST).dis
 | 
						$(GCC_PREFIX)-objdump -S  $(OFILES_PATH)/$(TEST).exe > $(OFILES_PATH)/$(TEST).dis
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue