summaryrefslogtreecommitdiff
path: root/core/src/main/scala/chisel3/experimental/hierarchy/Underlying.scala
blob: 864cc8af4cdd41cc3215b80717ca4520f644a969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Apache-2.0

package chisel3.experimental.hierarchy

import chisel3.internal.BaseModule.IsClone

/** Represents the underlying implementation of a Definition or Instance */
sealed trait Underlying[+T]

/** A clone of a real implementation */
final case class Clone[+T](isClone: IsClone[T]) extends Underlying[T]

/** An actual implementation */
final case class Proto[+T](proto: T) extends Underlying[T]