diff options
| author | Patrick Li | 2015-04-10 15:03:07 -0700 |
|---|---|---|
| committer | Patrick Li | 2015-04-10 15:03:07 -0700 |
| commit | 5d9f23db98f003b14cc4f47b7c92c414131b780f (patch) | |
| tree | 07ed3675f5668a97004df53ded9da70c6fbb0f95 /src/main/stanza/passes.stanza | |
| parent | 64a37e456519af4473592c791f269d72b008bd17 (diff) | |
Updated Stanza
Diffstat (limited to 'src/main/stanza/passes.stanza')
| -rw-r--r-- | src/main/stanza/passes.stanza | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza index 313191c8..f5bd655a 100644 --- a/src/main/stanza/passes.stanza +++ b/src/main/stanza/passes.stanza @@ -1,8 +1,8 @@ -defpackage firrtl.passes : +defpackage firrtl/passes : import core import verse - import firrtl.ir2 - import firrtl.ir-utils + import firrtl/ir2 + import firrtl/ir-utils import widthsolver import firrtl-main @@ -36,27 +36,27 @@ public val BI-GENDER = new Gender defstruct WRef <: Expression : name: Symbol - type: Type [multi => false] + type: Type with: (as-method => true) kind: Kind - gender: Gender [multi => false] + gender: Gender with: (as-method => true) defstruct WRegInit <: Expression : reg: Expression name: Symbol - type: Type [multi => false] - gender: Gender [multi => false] + type: Type with: (as-method => true) + gender: Gender with: (as-method => true) defstruct WSubfield <: Expression : exp: Expression name: Symbol - type: Type [multi => false] - gender: Gender [multi => false] + type: Type with: (as-method => true) + gender: Gender with: (as-method => true) defstruct WIndex <: Expression : exp: Expression value: Int - type: Type [multi => false] - gender: Gender [multi => false] + type: Type with: (as-method => true) + gender: Gender with: (as-method => true) defstruct WDefAccessor <: Stmt : name: Symbol @@ -893,10 +893,10 @@ defn lower-module (m:Module,table:HashTable<Symbol,List<KeyValue<Expression,Flip (s:DefWire) : table[name(s)] = get-entries(name(s),type(s)) (s:DefRegister) : val regs = get-entries(name(s),type(s)) - val init-sym = symbol-join([name(s),`.init]) + val init-sym = symbol-join([name(s),`\|.init|]) val init-regs = for r in regs map : val [e f] = [key(r) value(r)] - WRegInit(e,symbol-join([name(e),`.init]),type(e),gender(e)) => f + WRegInit(e,symbol-join([name(e),`\|.init|]),type(e),gender(e)) => f table[name(s)] = regs table[init-sym] = init-regs (s:DefInstance) : |
