mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Merge pull request #382 from kipmacsaigoren/wrappers
fix synth makefile
This commit is contained in:
		
						commit
						efe9e3b6a1
					
				@ -55,11 +55,11 @@ $(CONFIG):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# adjust DTIM and IROM to reasonable values depending on config	
 | 
					# adjust DTIM and IROM to reasonable values depending on config	
 | 
				
			||||||
ifneq ($(filter $(CONFIG), $(DIRS32)),)
 | 
					ifneq ($(filter $(CONFIG), $(DIRS32)),)
 | 
				
			||||||
	sed -i "s/DTIM_RANGE.*/DTIM_RANGE	 34\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/DTIM_RANGE.*/DTIM_RANGE	= 34\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
	sed -i "s/IROM_RANGE.*/IROM_RANGE	 34\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/IROM_RANGE.*/IROM_RANGE	= 34\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
else ifneq ($(filter $(CONFIG), $(DIRS64)),)
 | 
					else ifneq ($(filter $(CONFIG), $(DIRS64)),)
 | 
				
			||||||
	sed -i "s/DTIM_RANGE.*/DTIM_RANGE	 56\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/DTIM_RANGE.*/DTIM_RANGE	= 56\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
	sed -i "s/IROM_RANGE.*/IROM_RANGE	 56\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/IROM_RANGE.*/IROM_RANGE	= 56\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
else 
 | 
					else 
 | 
				
			||||||
    $(info $(CONFIG) does not exist in $(DIRS32) or $(DIRS64))
 | 
					    $(info $(CONFIG) does not exist in $(DIRS32) or $(DIRS64))
 | 
				
			||||||
    @echo "Config not in list, RAM_RANGE will be unmodified"
 | 
					    @echo "Config not in list, RAM_RANGE will be unmodified"
 | 
				
			||||||
@ -67,18 +67,18 @@ endif
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# if USESRAM = 1, set that in the config file, otherwise reduce sizes
 | 
					# if USESRAM = 1, set that in the config file, otherwise reduce sizes
 | 
				
			||||||
ifeq ($(USESRAM), 1)
 | 
					ifeq ($(USESRAM), 1)
 | 
				
			||||||
	sed -i 's/USE_SRAM.*/USE_SRAM 1/g' $(CONFIGDIR)/config.vh
 | 
						sed -i 's/USE_SRAM.*/USE_SRAM = 1;/g' $(CONFIGDIR)/config.vh
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	sed -i 's/WAYSIZEINBYTES.*/WAYSIZEINBYTES 512/g' $(CONFIGDIR)/config.vh
 | 
						sed -i "s/WAYSIZEINBYTES.*/WAYSIZEINBYTES = 32\'d512;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
	sed -i 's/NUMWAYS.*/NUMWAYS 1/g' $(CONFIGDIR)/config.vh
 | 
						sed -i "s/NUMWAYS.*/NUMWAYS =32\'d1;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
	sed -i 's/BPRED_SIZE.*/BPRED_SIZE 5/g' $(CONFIGDIR)/config.vh
 | 
						sed -i "s/BPRED_SIZE.*/BPRED_SIZE =32\'d5;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
	sed -i 's/BTB_SIZE.*/BTB_SIZE 5/g' $(CONFIGDIR)/config.vh
 | 
						sed -i "s/BTB_SIZE.*/BTB_SIZE = 32\'d5;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
ifneq ($(filter $(CONFIG), $(DIRS32)),)
 | 
					ifneq ($(filter $(CONFIG), $(DIRS32)),)
 | 
				
			||||||
	sed -i "s/BOOTROM_RANGE.*/BOOTROM_RANGE	 34\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/BOOTROM_RANGE.*/BOOTROM_RANGE	 = 34\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
	sed -i "s/UNCORE_RAM_RANGE.*/UNCORE_RAM_RANGE	 34\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/UNCORE_RAM_RANGE.*/UNCORE_RAM_RANGE	= 34\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
else ifneq ($(filter $(CONFIG), $(DIRS64)),)
 | 
					else ifneq ($(filter $(CONFIG), $(DIRS64)),)
 | 
				
			||||||
	sed -i "s/BOOTROM_RANGE.*/BOOTROM_RANGE	 56\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/BOOTROM_RANGE.*/BOOTROM_RANGE	 = 56\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
	sed -i "s/UNCORE_RAM_RANGE.*/UNCORE_RAM_RANGE	 56\'h01FF/g" $(CONFIGDIR)/config.vh
 | 
						sed -i "s/UNCORE_RAM_RANGE.*/UNCORE_RAM_RANGE	= 56\'h01FF;/g" $(CONFIGDIR)/config.vh
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user