-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3712 from chipsalliance/master
Update dev with master
- Loading branch information
Showing
29 changed files
with
724 additions
and
30 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module TraceSinkMonitor | ||
#( | ||
parameter FILE_NAME = "trace_sink_monitor.txt" | ||
) | ||
( | ||
input clk, | ||
input reset, | ||
input in_fire, | ||
input[7:0] in_byte | ||
); | ||
|
||
`ifndef SYNTHESIS | ||
|
||
integer file; | ||
|
||
initial begin | ||
file = $fopen(FILE_NAME, "w"); | ||
if (file == 0) begin | ||
$display("Failed to open %s", FILE_NAME); | ||
$finish; | ||
end | ||
end | ||
|
||
always @(posedge clk) begin | ||
if (in_fire & ~reset) begin | ||
$fwrite(file, "%c", in_byte); | ||
end | ||
end | ||
|
||
final begin | ||
$fclose(file); | ||
end | ||
|
||
`endif | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// See LICENSE.SiFive for license details. | ||
// See LICENSE.Berkeley for license details. | ||
|
||
package freechips.rocketchip.subsystem | ||
|
||
import chisel3.util._ | ||
|
||
import org.chipsalliance.cde.config._ | ||
import org.chipsalliance.diplomacy.lazymodule._ | ||
|
||
import freechips.rocketchip.devices.debug.{DebugModuleKey, DefaultDebugModuleParams, ExportDebug, JTAG, APB} | ||
import freechips.rocketchip.devices.tilelink.{ | ||
BuiltInErrorDeviceParams, BootROMLocated, BootROMParams, CLINTKey, DevNullDevice, CLINTParams, PLICKey, PLICParams, DevNullParams | ||
} | ||
import freechips.rocketchip.prci.{SynchronousCrossing, AsynchronousCrossing, RationalCrossing, ClockCrossingType} | ||
import freechips.rocketchip.diplomacy.{ | ||
AddressSet, MonitorsEnabled, | ||
} | ||
import freechips.rocketchip.resources.{ | ||
DTSModel, DTSCompat, DTSTimebase, BigIntHexContext | ||
} | ||
import freechips.rocketchip.tile.{ | ||
MaxHartIdBits, RocketTileParams, BuildRoCC, AccumulatorExample, OpcodeSet, TranslatorExample, CharacterCountExample, BlackBoxExample | ||
} | ||
import freechips.rocketchip.util.ClockGateModelFile | ||
import scala.reflect.ClassTag | ||
|
||
class WithLitexMemPort extends Config((site, here, up) => { | ||
case ExtMem => Some(MemoryPortParams(MasterPortParams( | ||
base = x"8000_0000", | ||
size = x"8000_0000", | ||
beatBytes = site(MemoryBusKey).beatBytes, | ||
idBits = 4), 1)) | ||
}) | ||
|
||
class WithLitexMMIOPort extends Config((site, here, up) => { | ||
case ExtBus => Some(MasterPortParams( | ||
base = x"1000_0000", | ||
size = x"7000_0000", | ||
beatBytes = site(SystemBusKey).beatBytes, | ||
idBits = 4)) | ||
}) | ||
|
||
class WithLitexSlavePort extends Config((site, here, up) => { | ||
case ExtIn => Some(SlavePortParams( | ||
beatBytes = site(SystemBusKey).beatBytes, | ||
idBits = 8, | ||
sourceBits = 4)) | ||
}) | ||
|
||
class WithNBitMemoryBus(dataBits: Int) extends Config((site, here, up) => { | ||
case MemoryBusKey => up(MemoryBusKey, site).copy(beatBytes = dataBits/8) | ||
}) |
Oops, something went wrong.