# SG-Logical-Circuit **Repository Path**: sg-first/sg-logical-circuit ## Basic Information - **Project Name**: SG-Logical-Circuit - **Description**: 数字电路设计语言与仿真工具 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-12-19 - **Last Updated**: 2021-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Logical Circuit ============= Logical Circuit is a circuit simulation tool. You can use the built-in scripting language to quickly build your own circuit and set the input to run it. You can view the internal state of each latch, evaluate the process, or exhaust all the inputs to get the circuit truth table and state transition truth table. Catalogue ------------- * [中文文档](readme_cn.md) * [Trigger document](tri_readme.md) Documents ------------- ### Colon Expression #### input Setting the input line of the circuit (automatically defining a line variable) ``` input:A ``` #### output Set the output line of the circuit (the existing line variable) ``` output:r ``` #### set Set the value of the input line variable ``` set: A 1 ``` #### load Load a logical circuit script file (*. lc). It will be executed directly. ``` load:D:/test.lc ``` ### Command * **trueTable:** Running circuit with enumerating all inputs * **statTable** Running circuit with enumerating all inputs and trigger state * **multiplexing:** Statistics of all line usage * **gateNum:** Output the number of logic gates in the current circuit * **stru:** Output of the current circuit structure (does not look good) * **run:** Running Circuit with Current Input * **clear:** Clear the current circuit * **middleVar:** Running circuit and output all line values with Current Input * **multiplexing:** Statistics of all line usage * **resetTri** Reset all triggers with initial state of 0