mirror of https://github.com/llvm/circt.git
14 lines
449 B
Plaintext
14 lines
449 B
Plaintext
; RUN: circt-translate -import-firrtl -verify-diagnostics %s | circt-opt | FileCheck %s
|
|
FIRRTL version 2.0.0
|
|
circuit MyModule : ; CHECK: firrtl.circuit "MyModule" {
|
|
|
|
; CHECK-LABEL: firrtl.module @MyModule(in %in: !firrtl.uint, out %out: !firrtl.uint<8>) {
|
|
module MyModule : @[FooBar.scala 369:27]
|
|
input in: UInt
|
|
output out: UInt<8>
|
|
|
|
; CHECK: firrtl.connect %out, %in : !firrtl.uint<8>, !firrtl.uint
|
|
out <= in
|
|
|
|
; CHECK: }
|