mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	debug simulating, produing discrepancy
This commit is contained in:
		
							parent
							
								
									c0ca0e285f
								
							
						
					
					
						commit
						44fef2f2a1
					
				| @ -2,8 +2,15 @@ | ||||
| 
 | ||||
| TARGET = debug | ||||
| 
 | ||||
| $(TARGET).signature.output: $(TARGET).elf.memfile $(TARGET).elf | ||||
| 	spike --isa=rv64gc +signature=$(TARGET).signature.output +signature-granularity=4 $(TARGET).elf | ||||
| #	diff --ignore-case $(TARGET).signature.output $(TARGET).reference_output || exit
 | ||||
| #	echo "Signature matches! Success!"
 | ||||
| 	mkdir -p ../work  | ||||
| 	cp -f * ../work | ||||
| 
 | ||||
| $(TARGET).elf.memfile:$(TARGET).elf $(TARGET).elf.objdump.addr | ||||
| 	riscv64-unknown-elf-elf2hex --bit-width $(if $(findstring rv64,$*),64,32) --input $< --output $@ | ||||
| 	riscv64-unknown-elf-elf2hex --bit-width 64 --input $< --output $@ | ||||
| 
 | ||||
| $(TARGET).elf.objdump.addr: $(TARGET).elf.objdump | ||||
| 	extractFunctionRadix.sh $< | ||||
| @ -15,12 +22,6 @@ $(TARGET).elf: $(TARGET).S Makefile | ||||
| 	riscv64-unknown-elf-gcc -g -o $(TARGET).elf -march=rv64gc -mabi=lp64 -mcmodel=medany \
 | ||||
| 	    -nostartfiles -T$(WALLY)/examples/link/link.ld $(TARGET).S  | ||||
| 
 | ||||
| sim: | ||||
| 	spike --isa=rv64gc +signature=$(TARGET).signature.output +signature-granularity=8 $(TARGET).elf | ||||
| #	diff --ignore-case $(TARGET).signature.output $(TARGET).reference_output || exit
 | ||||
| #	echo "Signature matches! Success!"
 | ||||
| 	mkdir -p ../work  | ||||
| 	cp -f * ../work | ||||
| 
 | ||||
| clean: | ||||
| 	rm -f $(TARGET).elf $(TARGET).elf.* *.signature.output | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user