mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Disable misaligned accesses in imperas configuration and check misaligned support requires D$
This commit is contained in:
		
							parent
							
								
									c64c12dc6c
								
							
						
					
					
						commit
						f30cc46ec5
					
				| @ -1661,6 +1661,7 @@ derive imperas rv64gc | |||||||
| ICACHE_SUPPORTED    0 | ICACHE_SUPPORTED    0 | ||||||
| DCACHE_SUPPORTED    0 | DCACHE_SUPPORTED    0 | ||||||
| VIRTMEM_SUPPORTED   0 | VIRTMEM_SUPPORTED   0 | ||||||
|  | ZICCLSM_SUPPORTED   0 | ||||||
| ZAAMO_SUPPORTED     0 | ZAAMO_SUPPORTED     0 | ||||||
| ZALRSC_SUPPORTED    0 | ZALRSC_SUPPORTED    0 | ||||||
| ZICBOM_SUPPORTED    0 | ZICBOM_SUPPORTED    0 | ||||||
| @ -1669,3 +1670,4 @@ SVPBMT_SUPPORTED    0 | |||||||
| SVNAPOT_SUPPORTED   0 | SVNAPOT_SUPPORTED   0 | ||||||
| BOOTROM_BASE        64'h700012340010 | BOOTROM_BASE        64'h700012340010 | ||||||
| BOOTROM_RANGE       64'h10 | BOOTROM_RANGE       64'h10 | ||||||
|  | 
 | ||||||
|  | |||||||
| @ -66,6 +66,7 @@ module riscvassertions import cvw::*; #(parameter cvw_t P); | |||||||
|     assert ((P.ZCF_SUPPORTED == 0) | ((P.F_SUPPORTED == 1) & (P.XLEN == 32))) else $fatal(1, "ZCF requires F and XLEN == 32"); |     assert ((P.ZCF_SUPPORTED == 0) | ((P.F_SUPPORTED == 1) & (P.XLEN == 32))) else $fatal(1, "ZCF requires F and XLEN == 32"); | ||||||
|     assert ((P.ZCD_SUPPORTED == 0) | (P.D_SUPPORTED == 1)) else $fatal(1, "ZCD requires D"); |     assert ((P.ZCD_SUPPORTED == 0) | (P.D_SUPPORTED == 1)) else $fatal(1, "ZCD requires D"); | ||||||
|     assert ((P.LLEN == P.XLEN) | (P.DCACHE_SUPPORTED & P.DTIM_SUPPORTED == 0)) else $fatal(1, "LLEN > XLEN (D on RV32 or Q on RV64) requires data cache"); |     assert ((P.LLEN == P.XLEN) | (P.DCACHE_SUPPORTED & P.DTIM_SUPPORTED == 0)) else $fatal(1, "LLEN > XLEN (D on RV32 or Q on RV64) requires data cache"); | ||||||
|  |     assert ((P.ZICCLSM_SUPPORTED == 0) | (P.DCACHE_SUPPORTED == 1)) else $fatal(1, "ZICCLSM requires DCACHE_SUPPORTED"); | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| endmodule | endmodule | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user