Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into tile-reset-async
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Mar 12, 2021
2 parents 592fa20 + eda0018 commit 282ca2e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHIPYARD.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c5cb8f13294f873da0dd62b25a4b8731b5337efb
c5cb8f13294f873da0dd62b25a4b8731b5337efb
2 changes: 1 addition & 1 deletion src/main/resources/testchipip/csrc/SimDRAM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C" void *memory_init(
long long int word_size,
long long int line_size,
long long int id_bits,
long long int clock_hz
long long int clock_hz
)
{
mm_t *mm;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/testchipip/vsrc/SimDRAM.v
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module SimDRAM #(
MEM_SIZE = 1000 * 1000 * 1000,
LINE_SIZE = 64,
WORD_SIZE = DATA_BITS/8,
CLOCK_HZ = 100000,
CLOCK_HZ = 100000,
STRB_BITS=DATA_BITS/8)(
input clock,
input reset,
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/ClockUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ClockMutexMux(val n: Int, depth: Int, genClockGate: () => ClockGate) exten

val andClocks = io.clocksIn.map(x => ClockSignalNor2(ClockInverter(x), io.resetAsync))

val syncs = andClocks.map { c => withClockAndReset(c, io.resetAsync) { Module(new AsyncResetSynchronizerShiftReg(1, 3, 0)) } }
val syncs = andClocks.map { c => withClockAndReset(c, io.resetAsync) { Module(new AsyncResetSynchronizerShiftReg(1, sync = depth, init = 0)) } }
val gaters = andClocks.map { c =>
val g = Module(genClockGate())
g.io.in := c
Expand Down

0 comments on commit 282ca2e

Please sign in to comment.