-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
twopass.tcl: improve conflict word handling
Halcmd commands 'list' and 'gets' conflict with normal tcl commands. Improve handling in hal_to_tcl proc: list: puts to stdout gets: error (since unexpected in a conventional halfile) Update tests/twopass*/ to a) use 'list' not 'show' to preclude possibly variable Owner id b) list more hal items for completeness
- Loading branch information
Showing
5 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
loadrt logic names=gateC personality=0x503 | ||
loadusr -w halcmd list pin | ||
list pin | ||
list param | ||
list funct | ||
list sig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
twopass:invoked with <> options | ||
twopass:found ./a.hal | ||
twopass:found ./b.hal | ||
hal_to_tcl:NOTE: in file ./b.hal, line 2: "list" conflicts with haltcl usage, | ||
prepended with 'hal' for compatibility | ||
2:<loadusr -w halcmd list pin> | ||
|
||
|
||
|
||
|
||
gateA.and gateA.in-00 gateA.in-01 gateA.in-02 gateA.in-03 gateA.time gateB.in-00 gateB.in-01 gateB.or gateB.time gateC.and gateC.in-00 gateC.in-01 gateC.in-02 gateC.time gateC.xor | ||
gateA.tmax gateA.tmax-increased gateB.tmax gateB.tmax-increased gateC.tmax gateC.tmax-increased | ||
gateA gateB gateC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
loadrt and2 names=andZ | ||
net p andZ.in0 | ||
show pin | ||
list pin | ||
list param | ||
list funct | ||
list sig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
twopass:invoked with <> options | ||
twopass:found ./a.hal | ||
twopass:found ./b.hal | ||
Component Pins: | ||
Owner Type Dir Value Name | ||
4 bit IN FALSE andX.in0 <== p | ||
4 bit IN FALSE andX.in1 <== p | ||
4 bit OUT FALSE andX.out | ||
4 s32 OUT 0 andX.time | ||
4 bit IN FALSE andY.in0 | ||
4 bit IN FALSE andY.in1 | ||
4 bit OUT FALSE andY.out ==> p | ||
4 s32 OUT 0 andY.time | ||
4 bit IN FALSE andZ.in0 <== p | ||
4 bit IN FALSE andZ.in1 | ||
4 bit OUT FALSE andZ.out | ||
4 s32 OUT 0 andZ.time | ||
|
||
|
||
|
||
|
||
andX.in0 andX.in1 andX.out andX.time andY.in0 andY.in1 andY.out andY.time andZ.in0 andZ.in1 andZ.out andZ.time | ||
andX.tmax andX.tmax-increased andY.tmax andY.tmax-increased andZ.tmax andZ.tmax-increased | ||
andX andY andZ | ||
p |