mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	busybear: fix bootram range
This commit is contained in:
		
							parent
							
								
									141f6a5496
								
							
						
					
					
						commit
						f11b3108d8
					
				@ -64,7 +64,7 @@
 | 
				
			|||||||
`define TIMBASE       32'h80000000
 | 
					`define TIMBASE       32'h80000000
 | 
				
			||||||
`define TIMRANGE      32'h07FFFFFF
 | 
					`define TIMRANGE      32'h07FFFFFF
 | 
				
			||||||
`define BOOTTIMBASE   32'h00000000 //only needs to go from 0x1000 to 0x2FFF, extending to a power of 2
 | 
					`define BOOTTIMBASE   32'h00000000 //only needs to go from 0x1000 to 0x2FFF, extending to a power of 2
 | 
				
			||||||
`define BOOTTIMRANGE  32'h00004000
 | 
					`define BOOTTIMRANGE  32'h00003FFF
 | 
				
			||||||
`define CLINTBASE     32'h02000000
 | 
					`define CLINTBASE     32'h02000000
 | 
				
			||||||
`define CLINTRANGE    32'h0000BFFF
 | 
					`define CLINTRANGE    32'h0000BFFF
 | 
				
			||||||
//`define GPIOBASE    32'h10012000 // no GPIO in linux for now
 | 
					//`define GPIOBASE    32'h10012000 // no GPIO in linux for now
 | 
				
			||||||
 | 
				
			|||||||
@ -33,9 +33,9 @@ vlog +incdir+../config/busybear ../testbench/*.sv ../src/*/*.sv -suppress 2583
 | 
				
			|||||||
# remove +acc flag for faster sim during regressions if there is no need to access internal signals
 | 
					# remove +acc flag for faster sim during regressions if there is no need to access internal signals
 | 
				
			||||||
vopt +acc work.testbench_busybear -o workopt 
 | 
					vopt +acc work.testbench_busybear -o workopt 
 | 
				
			||||||
vsim workopt -suppress 8852,12070
 | 
					vsim workopt -suppress 8852,12070
 | 
				
			||||||
mem load -startaddress 0 -endaddress 2048 -filltype value -fillradix hex -filldata 0 /testbench_busybear/dut/uncore/bootdtim/RAM
 | 
					mem load -startaddress 0 -endaddress 2047 -filltype value -fillradix hex -filldata 0 /testbench_busybear/dut/uncore/bootdtim/RAM
 | 
				
			||||||
mem load -startaddress 512 -i "/courses/e190ax/busybear_boot/bootmem.txt" -format hex /testbench_busybear/dut/uncore/bootdtim/RAM
 | 
					mem load -startaddress 512 -i "/courses/e190ax/busybear_boot/bootmem.txt" -format hex /testbench_busybear/dut/uncore/bootdtim/RAM
 | 
				
			||||||
mem load -startaddress 0 -endaddress 2048 -filltype value -fillradix hex -filldata 0 /testbench_busybear/dut/imem/bootram
 | 
					mem load -startaddress 0 -endaddress 2047 -filltype value -fillradix hex -filldata 0 /testbench_busybear/dut/imem/bootram
 | 
				
			||||||
mem load -startaddress 512 -i "/courses/e190ax/busybear_boot/bootmem.txt" -format hex /testbench_busybear/dut/imem/bootram
 | 
					mem load -startaddress 512 -i "/courses/e190ax/busybear_boot/bootmem.txt" -format hex /testbench_busybear/dut/imem/bootram
 | 
				
			||||||
mem load -startaddress 0 -endaddress 16777216 -filltype value -fillradix hex -filldata 0 /testbench_busybear/RAM
 | 
					mem load -startaddress 0 -endaddress 16777216 -filltype value -fillradix hex -filldata 0 /testbench_busybear/RAM
 | 
				
			||||||
mem load -startaddress 0 -i "/courses/e190ax/busybear_boot/ram.txt" -format hex /testbench_busybear/RAM
 | 
					mem load -startaddress 0 -i "/courses/e190ax/busybear_boot/ram.txt" -format hex /testbench_busybear/RAM
 | 
				
			||||||
 | 
				
			|||||||
@ -38,8 +38,7 @@ module adrdec (
 | 
				
			|||||||
  // then anything address between 0x04002000 and 0x04002FFF should match (HSEL=1)
 | 
					  // then anything address between 0x04002000 and 0x04002FFF should match (HSEL=1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  assign match = (HADDR ~^ Base) | Range;
 | 
					  assign match = (HADDR ~^ Base) | Range;
 | 
				
			||||||
  //assign HSEL = &match;
 | 
					  assign HSEL = &match;
 | 
				
			||||||
  assign HSEL = (HADDR >= Base) && (HADDR <= Base + Range);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
endmodule
 | 
					endmodule
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user