blob: 78d60ed2530f107390004d11f46241076952454f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// See LICENSE for license details.
package chiselTests
import org.scalatest._
import org.scalatest.prop._
import chisel3._
import chisel3.testers.BasicTester
import chisel3.util._
class ClockAsUIntTester extends BasicTester {
assert(true.B.asClock.asUInt === 1.U)
stop()
}
class ClockSpec extends ChiselPropSpec {
property("Bool.asClock.asUInt should pass a signal through unaltered") {
assertTesterPasses { new ClockAsUIntTester }
}
}
|