Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 43 additions & 4 deletions src/main/dig/lib/DIL Chips/74xx/counter/74162.dig
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<circuit>
<version>1</version>
<version>2</version>
<attributes>
<entry>
<string>shapeType</string>
<shapeType>DIL</shapeType>
</entry>
<entry>
<string>Description</string>
<string>decimal synchronous counter</string>
<string>Decimal Synchronous Counter</string>
</entry>
<entry>
<string>lockedMode</string>
<boolean>true</boolean>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Library components have to be locked, otherwise the build will fail.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't make this change intentionally. It happened behind the scenes when I made the more obvious edits. I don't know how to undo it or keep it from happening again.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to be able to edit the circuit at all, the locking must first be switched off in the circuit-specific settings. Once editing is complete, the lock must then be switched back on. This lock is enforced in the library components during the build to prevent users from accidentally changing the library components.

<string>romContent</string>
<romList>
<roms/>
</romList>
</entry>
<entry>
<string>Width</string>
Expand Down Expand Up @@ -62,6 +64,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Load counter from inputs A B C D</string>
</entry>
<entry>
<string>Label</string>
<string>~LD</string>
Expand Down Expand Up @@ -90,6 +96,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Clear counter to zero</string>
</entry>
<entry>
<string>rotation</string>
<rotation rotation="1"/>
Expand Down Expand Up @@ -130,6 +140,10 @@
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Ripple counter overflow</string>
</entry>
<entry>
<string>Label</string>
<string>RCO</string>
Expand All @@ -149,6 +163,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Count Enable Carry In (with ENP)</string>
</entry>
<entry>
<string>Label</string>
<string>ENT</string>
Expand All @@ -163,6 +181,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Count Enable (with ENT)</string>
</entry>
<entry>
<string>Label</string>
<string>ENP</string>
Expand Down Expand Up @@ -216,6 +238,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Input low bit</string>
</entry>
<entry>
<string>Label</string>
<string>A</string>
Expand Down Expand Up @@ -292,6 +318,10 @@
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Output low bit</string>
</entry>
<entry>
<string>Label</string>
<string>QA</string>
Expand Down Expand Up @@ -334,6 +364,10 @@
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Output high bit</string>
</entry>
<entry>
<string>Label</string>
<string>QD</string>
Expand Down Expand Up @@ -390,6 +424,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Input high bit</string>
</entry>
<entry>
<string>Label</string>
<string>D</string>
Expand Down Expand Up @@ -698,4 +736,5 @@ end loop
<p2 x="380" y="240"/>
</wire>
</wires>
<measurementOrdering/>
</circuit>
29 changes: 26 additions & 3 deletions src/main/dig/lib/DIL Chips/74xx/counter/74163.dig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<circuit>
<version>1</version>
<version>2</version>
<attributes>
<entry>
<string>shapeType</string>
Expand All @@ -11,8 +11,10 @@
<string>hex synchronous counter</string>
</entry>
<entry>
<string>lockedMode</string>
<boolean>true</boolean>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Library components have to be locked, otherwise the build will fail.

<string>romContent</string>
<romList>
<roms/>
</romList>
</entry>
<entry>
<string>Width</string>
Expand Down Expand Up @@ -62,6 +64,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Parallel Enable</string>
</entry>
<entry>
<string>Label</string>
<string>~PE</string>
Expand Down Expand Up @@ -90,6 +96,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Synchronous Reset</string>
</entry>
<entry>
<string>rotation</string>
<rotation rotation="1"/>
Expand Down Expand Up @@ -130,6 +140,10 @@
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Terminal Count (overflow out)</string>
</entry>
<entry>
<string>Label</string>
<string>TC</string>
Expand All @@ -149,6 +163,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Count Enable Trickle (overflow in)</string>
</entry>
<entry>
<string>Label</string>
<string>CET</string>
Expand All @@ -163,6 +181,10 @@
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Description</string>
<string>Count Enable Parallel</string>
</entry>
<entry>
<string>Label</string>
<string>CEP</string>
Expand Down Expand Up @@ -618,4 +640,5 @@ end loop
<p2 x="460" y="420"/>
</wire>
</wires>
<measurementOrdering/>
</circuit>