From f0b8da76b17e568bd51a95ac04e7bad6ce4232c5 Mon Sep 17 00:00:00 2001 From: azidar Date: Thu, 12 Mar 2015 13:27:38 -0700 Subject: Switched bundles from gender to flip --- test/passes/infer-types/bundle.fir | 6 +++--- test/passes/infer-types/gcd.fir | 10 +++++----- test/passes/resolve-genders/ports.fir | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/passes/infer-types/bundle.fir b/test/passes/infer-types/bundle.fir index 0c4fa760..d9b86115 100644 --- a/test/passes/infer-types/bundle.fir +++ b/test/passes/infer-types/bundle.fir @@ -3,9 +3,9 @@ ;CHECK: Infer Types circuit top : module subtracter : - wire z : {male x : UInt, female y: SInt} - node x = z.x ;CHECK: node x = z@, female y : SInt@}>.x@ - node y = z.y ;CHECK: node y = z@, female y : SInt@}>.y@ + wire z : { x : UInt, flip y: SInt} + node x = z.x ;CHECK: node x = z@, flip y : SInt@}>.x@ + node y = z.y ;CHECK: node y = z@, flip y : SInt@}>.y@ wire a : UInt(3)[10] ;CHECK: wire a : UInt(3)[10]@@> node b = a.2 ;CHECK: node b = a@>.2@ diff --git a/test/passes/infer-types/gcd.fir b/test/passes/infer-types/gcd.fir index b4d92269..ea134c2f 100644 --- a/test/passes/infer-types/gcd.fir +++ b/test/passes/infer-types/gcd.fir @@ -22,14 +22,14 @@ circuit top : when gt(x, y) : ;CHECK: when gt(x@, y@)@ : inst s of subtracter - ;CHECK: inst s of subtracter@, male y : UInt@, female z : UInt@, male reset : UInt(1)@}> + ;CHECK: inst s of subtracter@, y : UInt@, flip z : UInt@, reset : UInt(1)@}> s.x := x s.y := y x := s.z - ;CHECK: s@, male y : UInt@, female z : UInt@, male reset : UInt(1)@}>.reset@ := reset@ - ;CHECK: s@, male y : UInt@, female z : UInt@, male reset : UInt(1)@}>.x@ := x@ - ;CHECK: s@, male y : UInt@, female z : UInt@, male reset : UInt(1)@}>.y@ := y@ - ;CHECK: x@ := s@, male y : UInt@, female z : UInt@, male reset : UInt(1)@}>.z@ + ;CHECK: s@, y : UInt@, flip z : UInt@, reset : UInt(1)@}>.reset@ := reset@ + ;CHECK: s@, y : UInt@, flip z : UInt@, reset : UInt(1)@}>.x@ := x@ + ;CHECK: s@, y : UInt@, flip z : UInt@, reset : UInt(1)@}>.y@ := y@ + ;CHECK: x@ := s@, y : UInt@, flip z : UInt@, reset : UInt(1)@}>.z@ else : inst s2 of subtracter s2.x := x diff --git a/test/passes/resolve-genders/ports.fir b/test/passes/resolve-genders/ports.fir index ea92cd24..d790272c 100644 --- a/test/passes/resolve-genders/ports.fir +++ b/test/passes/resolve-genders/ports.fir @@ -10,7 +10,7 @@ circuit top : input data : UInt(16) output ready : UInt(1) module top: - wire connect : { male data : UInt(16), female ready: UInt(1) } + wire connect : { data : UInt(16), flip ready: UInt(1) } inst src of source ;CHECK: inst src of source@ inst snk of sink ;CHECK: inst snk of sink@ connect.data := src.data ;CHECK: connect@.data@ := src@.data@ -- cgit v1.2.3