mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	for feature sweep
now adding feature modifications on top of each other
This commit is contained in:
		
							parent
							
								
									71a0479b72
								
							
						
					
					
						commit
						ed7e2e4ace
					
				@ -84,22 +84,22 @@ endif
 | 
				
			|||||||
endif
 | 
					endif
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
# adjust config if synthesizing with any modifications
 | 
					# adjust config if synthesizing with any modifications
 | 
				
			||||||
ifeq ($(MOD), FPUoff)
 | 
					ifneq ($(MOD), orig)
 | 
				
			||||||
 | 
						# PMP 0
 | 
				
			||||||
 | 
						sed -i 's/PMP_ENTRIES \(64\|16\|0\)/PMP_ENTRIES 0/' $(CONFIGDIR)/wally-config.vh
 | 
				
			||||||
 | 
					ifneq ($(MOD), PMP0)
 | 
				
			||||||
 | 
						# no priv
 | 
				
			||||||
 | 
						sed -i 's/ZICSR_SUPPORTED *1/ZICSR_SUPPORTED 0/' $(CONFIGDIR)/wally-config.vh
 | 
				
			||||||
 | 
					ifneq ($(MOD), noPriv)
 | 
				
			||||||
	# turn off FPU 
 | 
						# turn off FPU 
 | 
				
			||||||
	sed -i 's/1 *<< *3/0 << 3/' $(CONFIGDIR)/wally-config.vh
 | 
						sed -i 's/1 *<< *3/0 << 3/' $(CONFIGDIR)/wally-config.vh
 | 
				
			||||||
	sed -i 's/1 *<< *5/0 << 5/' $(CONFIGDIR)/wally-config.vh
 | 
						sed -i 's/1 *<< *5/0 << 5/' $(CONFIGDIR)/wally-config.vh
 | 
				
			||||||
else ifeq ($(MOD), PMP16)
 | 
					ifneq ($(MOD), noFPU)
 | 
				
			||||||
	# PMP 16 
 | 
					 | 
				
			||||||
	sed -i 's/PMP_ENTRIES \(64\|16\|0\)/PMP_ENTRIES 16/' $(CONFIGDIR)/wally-config.vh
 | 
					 | 
				
			||||||
else ifeq ($(MOD), PMP0)
 | 
					 | 
				
			||||||
	# PMP 0
 | 
					 | 
				
			||||||
	sed -i 's/PMP_ENTRIES \(64\|16\|0\)/PMP_ENTRIES 0/' $(CONFIGDIR)/wally-config.vh
 | 
					 | 
				
			||||||
else ifeq ($(MOD), noMulDiv)
 | 
					 | 
				
			||||||
	# no muldiv
 | 
						# no muldiv
 | 
				
			||||||
	sed -i 's/1 *<< *12/0 << 12/' $(CONFIGDIR)/wally-config.vh
 | 
						sed -i 's/1 *<< *12/0 << 12/' $(CONFIGDIR)/wally-config.vh
 | 
				
			||||||
else ifeq ($(MOD), noPriv)
 | 
					endif
 | 
				
			||||||
	# no priv
 | 
					endif
 | 
				
			||||||
	sed -i 's/ZICSR_SUPPORTED *1/ZICSR_SUPPORTED 0/' $(CONFIGDIR)/wally-config.vh
 | 
					endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifeq ($(SAIFPOWER), 1)
 | 
					ifeq ($(SAIFPOWER), 1)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user