blob: 82ae7072fef0481bdb17001b871502d59909d208 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// See LICENSE for license details.
// Useful utilities for tests
package chiselTests
import chisel3._
import chisel3.experimental._
class PassthroughModuleIO extends Bundle {
val in = Input(UInt(32.W))
val out = Output(UInt(32.W))
}
trait AbstractPassthroughModule extends RawModule {
val io = IO(new PassthroughModuleIO)
io.out := io.in
}
class PassthroughModule extends Module with AbstractPassthroughModule
class PassthroughMultiIOModule extends MultiIOModule with AbstractPassthroughModule
class PassthroughRawModule extends RawModule with AbstractPassthroughModule
|