mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Fixed elf handling
This commit is contained in:
		
							parent
							
								
									779458f14a
								
							
						
					
					
						commit
						1b5e63ebe2
					
				
							
								
								
									
										15
									
								
								bin/wsim
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								bin/wsim
									
									
									
									
									
								
							@ -40,13 +40,20 @@ WALLY = os.environ.get('WALLY')
 | 
			
		||||
 | 
			
		||||
if(os.path.isfile(args.elf)):
 | 
			
		||||
    ElfFile = "+ElfFile=" + os.path.abspath(args.elf)
 | 
			
		||||
elif(args.testsuite.endswith('.elf') and os.path.isfile(args.testsuite)):
 | 
			
		||||
     ElfFile = "+ElfFile=" + os.path.abspath(args.testsuite)
 | 
			
		||||
     args.testsuite=args.testsuite.rsplit('/', 1)[1]
 | 
			
		||||
else:
 | 
			
		||||
elif (args.elf != ""):
 | 
			
		||||
    print("ELF file not found: " + args.elf)
 | 
			
		||||
    exit(1)
 | 
			
		||||
 | 
			
		||||
if(args.testsuite.endswith('.elf')):
 | 
			
		||||
    if (os.path.isfile(args.testsuite)):
 | 
			
		||||
        ElfFile = "+ElfFile=" + os.path.abspath(args.testsuite)
 | 
			
		||||
        args.testsuite=args.testsuite.rsplit('/', 1)[1]
 | 
			
		||||
    else:
 | 
			
		||||
        print("ELF file not found: " + args.testsuite)
 | 
			
		||||
        exit(1)
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Validate arguments
 | 
			
		||||
if (args.gui or args.coverage or args.fcov or args.lockstep):
 | 
			
		||||
    if args.sim not in ["questa", "vcs"]:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user