AXI4DummySD.scala (5dabf2df532e6ae1d39a39e1a33bfe8e2d18cc89) | AXI4DummySD.scala (3c02ee8f82edea481fa8336c7f54ffc17fafba91) |
---|---|
1/*************************************************************************************** 2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences 3* Copyright (c) 2020-2021 Peng Cheng Laboratory 4* 5* XiangShan is licensed under Mulan PSL v2. 6* You can use this software according to the terms and conditions of the Mulan PSL v2. 7* You may obtain a copy of Mulan PSL v2 at: 8* http://license.coscl.org.cn/MulanPSL2 --- 7 unchanged lines hidden (view full) --- 16 17package device 18 19import chipsalliance.rocketchip.config.Parameters 20import chisel3._ 21import chisel3.experimental.ExtModule 22import chisel3.util._ 23import freechips.rocketchip.diplomacy.AddressSet | 1/*************************************************************************************** 2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences 3* Copyright (c) 2020-2021 Peng Cheng Laboratory 4* 5* XiangShan is licensed under Mulan PSL v2. 6* You can use this software according to the terms and conditions of the Mulan PSL v2. 7* You may obtain a copy of Mulan PSL v2 at: 8* http://license.coscl.org.cn/MulanPSL2 --- 7 unchanged lines hidden (view full) --- 16 17package device 18 19import chipsalliance.rocketchip.config.Parameters 20import chisel3._ 21import chisel3.experimental.ExtModule 22import chisel3.util._ 23import freechips.rocketchip.diplomacy.AddressSet |
24import utils._ | 24import utility._ |
25 26trait HasSDConst { 27 def MemorySize = 4L * 1024 * 1024 * 1024 // 4GB 28 def READ_BL_LEN = 15 29 30 def BlockLen = (1 << READ_BL_LEN) 31 32 def NrBlock = MemorySize / BlockLen --- 123 unchanged lines hidden --- | 25 26trait HasSDConst { 27 def MemorySize = 4L * 1024 * 1024 * 1024 // 4GB 28 def READ_BL_LEN = 15 29 30 def BlockLen = (1 << READ_BL_LEN) 31 32 def NrBlock = MemorySize / BlockLen --- 123 unchanged lines hidden --- |