@@ -435,8 +435,15 @@ firrtl.circuit "Foo" {
435435 firrtl.connect %ui , %c0_ui5 : !firrtl.uint , !firrtl.uint <5 >
436436 }
437437
438+ firrtl.domain @ClockDomain
439+
438440 // CHECK-LABEL: @TransparentOps
439- firrtl.module @TransparentOps (in %clk: !firrtl.clock , in %a: !firrtl.uint <1 >) {
441+ firrtl.module @TransparentOps (
442+ in %clk: !firrtl.clock ,
443+ in %a: !firrtl.uint <1 >,
444+ in %A: !firrtl.domain of @ClockDomain ,
445+ out %B: !firrtl.domain of @ClockDomain
446+ ) {
440447 %false = firrtl.constant 0 : !firrtl.uint <1 >
441448 %true = firrtl.constant 1 : !firrtl.uint <1 >
442449 %c0_ui4 = firrtl.constant 0 : !firrtl.uint <4 >
@@ -457,6 +464,7 @@ firrtl.circuit "Foo" {
457464 firrtl.assume %clk , %true , %true , " foo" : !firrtl.clock , !firrtl.uint <1 >, !firrtl.uint <1 >
458465 firrtl.int.unclocked_assume %true , %true , " foo" : !firrtl.uint <1 >, !firrtl.uint <1 >
459466 firrtl.cover %clk , %true , %true , " foo" : !firrtl.clock , !firrtl.uint <1 >, !firrtl.uint <1 >
467+ firrtl.domain.define %B , %A
460468 }
461469
462470 // Issue #1088
@@ -859,7 +867,7 @@ firrtl.circuit "Foo" {
859867
860868 %c0_ui2 = firrtl.constant 0 : !firrtl.uint <2 >
861869 firrtl.connect %w , %c0_ui2 : !firrtl.uint , !firrtl.uint <2 >
862-
870+
863871 %bov_a = firrtl.subfield %bov [a ] : !firrtl.bundle <a : vector <uint , 2 >, b flip : uint >
864872 %bov_a_1 = firrtl.subindex %bov_a [1 ] : !firrtl.vector <uint , 2 >
865873 %bov_b = firrtl.subfield %bov [b ] : !firrtl.bundle <a : vector <uint , 2 >, b flip : uint >
@@ -914,7 +922,7 @@ firrtl.circuit "Foo" {
914922 %0 = firrtl.subfield %invalid [a ] : !firrtl.bundle <a : vector <uint , 2 >>
915923 %1 = firrtl.subindex %0 [0 ] : !firrtl.vector <uint , 2 >
916924 }
917-
925+
918926 // CHECK-LABEL: @InferConst
919927 // CHECK-SAME: out %out: !firrtl.const.bundle<a: uint<1>, b: sint<2>, c: analog<3>, d: vector<uint<4>, 2>>
920928 firrtl.module @InferConst (in %a: !firrtl.const.uint <1 >, in %b: !firrtl.const.sint <2 >, in %c: !firrtl.const.analog <3 >, in %d: !firrtl.const.vector <uint <4 >, 2 >,
@@ -929,7 +937,7 @@ firrtl.circuit "Foo" {
929937 firrtl.attach %2 , %c : !firrtl.const.analog , !firrtl.const.analog <3 >
930938 firrtl.connect %3 , %d : !firrtl.const.vector <uint , 2 >, !firrtl.const.vector <uint <4 >, 2 >
931939 }
932-
940+
933941 // Should not crash when encountering property types.
934942 // CHECK: firrtl.module @Property(in %a: !firrtl.string)
935943 firrtl.module @Property (in %a: !firrtl.string ) { }
0 commit comments