CN105303000A - Circuit design method and system - Google Patents
Circuit design method and system Download PDFInfo
- Publication number
- CN105303000A CN105303000A CN201510837449.8A CN201510837449A CN105303000A CN 105303000 A CN105303000 A CN 105303000A CN 201510837449 A CN201510837449 A CN 201510837449A CN 105303000 A CN105303000 A CN 105303000A
- Authority
- CN
- China
- Prior art keywords
- circuit
- design
- logic
- rtl code
- demand
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention discloses a circuit design method. The circuit design method comprises the following steps: generating RTL (Real Time Logistics) codes according to the requirements of a designed circuit, wherein the designed circuit described by the RTL codes comprises N registers and M combined logics; selecting the corresponding logics from a TB logic, an RM logic and a TB/RM mixed logic according to the properties of each register respectively; constructing corresponding circuit modules according to the RTL codes corresponding to the registers and the corresponding logics; and carrying out comprehensive optimization on the obtained N circuit modules and M combined logics to obtain a gate-level net list, so as to obtain the designed circuit according to the gate-level net list. When the RTL codes of the registers are converted into the circuit modules, the properties of each register are sufficiently considered and the most suitable logic of the register is selected, so that the performances of the converted circuit modules are optimal and the circuit is simplest, and furthermore, the area and power consumption of the finally-obtained designed circuit are very small. The invention further discloses a circuit design system.
Description
Technical field
The present invention relates to Design of Digital Circuit technical field, particularly relate to a kind of circuit design method and system.
Background technology
Along with the development of integrated circuit technique, improving constantly of technological level, integrated circuit (IC) design is faced with the challenge of the aspects such as power consumption, area, speed, checking, and wherein power consumption and area for cutting are the most outstanding.
In circuit design, logic level in complex optimum is considered to connect RTL (RegisterTransferLevel usually, Method at Register Transfer Level) and the of paramount importance link of physical level, design circuit hardware description language describes out by RTL code, design circuit is made up of multiple register and combinational logic usually, and RTL code is being converted in the process of gate level netlist, needing the RTL code conversion corresponding to register is the circuit module of logic-based, normally by circuit module that RTL code conversion corresponding for register is based on TB logic (Boolean logic) in prior art, but in fact some circuit module TB logic realization is simple, some use RM logic realization are simple, but a lot of circuit, when realizing based on TB/RM mixed logic, have better optimum results.Visible, adopt unity logic that device in the circuit finally obtained can be caused a lot of in prior art, thus cause circuit area and power consumption all very large.
Therefore, a kind of area of the circuit designed and all very little circuit design method of power consumption and system how is provided to be the problems that those skilled in the art need to solve at present.
Summary of the invention
The object of this invention is to provide a kind of circuit design method, the characteristic of each register has been taken into full account when being circuit module by register RTL code conversion, select and the optimal logic of register, thus achieve the best performance of the circuit module converted to and circuit is the simplest, and then make the area of the design circuit finally obtained and power consumption all very little; Another object of the present invention is to provide a kind of design system.
For solving the problems of the technologies described above, the invention provides a kind of circuit design method, comprising:
Demand according to design circuit generates RTL code, and wherein, the described design circuit that described RTL code describes comprises N number of register and M combinational logic;
Characteristic respectively according to register described in each selects corresponding logic from TB logic, RM logic and TB/RM mixed logic, and the described RTL code corresponding according to described register and corresponding logic build corresponding circuit module; Complex optimum is carried out to the N number of described circuit module obtained and M described combinational logic, obtains gate level netlist, and then obtain described design circuit according to described gate level netlist.
Preferably, the method also comprises:
Sequential is verified described design circuit, to judge whether described design circuit exists the violation of Time Created and retention time.
Preferably, the method also comprises:
Functionally described design circuit is verified, to judge whether described design circuit still meets described demand after complex optimum process.
Preferably, the process of the described generation of the demand according to design circuit RTL code is specially:
Propose the demand of design circuit, wherein, described demand comprises functional requirement and performance requirement;
According to the Demand Design solution of described design circuit, and generate RTL code;
Described RTL code is verified, and determines whether revising described RTL code, until described RTL code meets described demand according to the result.
For solving the problems of the technologies described above, present invention also offers a kind of design system, comprising:
Circuit design module, generates RTL code for the demand according to design circuit, and wherein, the described design circuit that described RTL code describes comprises N number of register and M combinational logic;
Complex optimum module, from TB logic, RM logic and TB/RM mixed logic, select corresponding logic for the characteristic respectively according to register described in each, the described RTL code corresponding according to described register and corresponding logic build corresponding circuit module; Complex optimum is carried out to the N number of described circuit module obtained and M described combinational logic, obtains gate level netlist, and then obtain described design circuit according to described gate level netlist.
Preferably, this system also comprises:
Timing verification module, for functionally verifying described design circuit, to guarantee that described design circuit meets described demand after the process of complex optimum.
Preferably, this system also comprises:
Functional verification module, for functionally verifying described design circuit, to guarantee that described design circuit meets described demand after the process of complex optimum.
Preferably, described circuit design module specifically comprises:
Functional requirement module, for proposing the demand of design circuit, wherein, described demand comprises functional requirement and performance requirement;
Code generation module, for the Demand Design solution according to described design circuit, and generates RTL code;
Code verification module, for verifying described RTL code, and determines whether revising described RTL code, until described RTL code meets described demand according to the result.
A kind of circuit design method provided by the invention and system, when carrying out complex optimum in the RTL code that the demand according to design circuit is generated, first the characteristic according to each register selects corresponding logic from TB logic, RM logic and TB/RM mixed logic, and then builds corresponding circuit module according to RTL code corresponding to register and corresponding logic; Visible, in the application, the characteristic of each register has been taken into full account when being circuit module by register RTL code conversion, select and the optimal logic of register, thus achieve the best performance of the circuit module converted to and circuit is the simplest, and then make the area of the design circuit finally obtained and power consumption all very little.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in prior art and embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the process of a kind of circuit design method provided by the invention;
Fig. 2 is the process flow diagram of the process of another kind of circuit design method provided by the invention;
Fig. 3 is the structural representation of a kind of design system provided by the invention.
Embodiment
Core of the present invention is to provide a kind of circuit design method, the characteristic of each register has been taken into full account when being circuit module by register RTL code conversion, select and the optimal logic of register, thus achieve the best performance of the circuit module converted to and circuit is the simplest, and then make the area of the design circuit finally obtained and power consumption all very little; Another core of the present invention is to provide a kind of design system.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
Please refer to Fig. 1, Fig. 1 is the process flow diagram of the process of a kind of circuit design method provided by the invention, and the method comprises:
Step s101: the demand according to design circuit generates RTL code, wherein, the design circuit that RTL code describes comprises N number of register and M combinational logic;
Step s102: the characteristic respectively according to each register selects corresponding logic from TB logic, RM logic and TB/RM mixed logic, the RTL code corresponding according to register and corresponding logic build corresponding circuit module; Complex optimum is carried out to the N number of circuit module obtained and M combinational logic, obtains gate level netlist, and then obtain design circuit according to gate level netlist.
A kind of circuit design method provided by the invention, when carrying out complex optimum in the RTL code that the demand according to design circuit is generated, first the characteristic according to each register selects corresponding logic from TB logic, RM logic and TB/RM mixed logic, and then builds corresponding circuit module according to RTL code corresponding to register and corresponding logic; Visible, in the application, the characteristic of each register has been taken into full account when being circuit module by register RTL code conversion, select and the optimal logic of register, thus achieve the best performance of the circuit module converted to and circuit is the simplest, and then make the area of the design circuit finally obtained and power consumption all very little.
Embodiment two
Please refer to Fig. 2, Fig. 2 is the process flow diagram of the process of another kind of circuit design method provided by the invention, and the method comprises:
Step s201: the demand proposing design circuit, wherein, demand comprises functional requirement and performance requirement;
Be understandable that, first propose the demand of design circuit, comprise the demand of concrete function that design circuit needs reach and aspect of performance.
Step s202: according to the Demand Design solution of design circuit, and generate RTL code; Wherein, the design circuit that RTL code describes comprises N number of register and M combinational logic;
This step is also Activity design, according to the Demand Design solution of design circuit, namely by the demand of design circuit, also the function of design circuit and performance use hardware description language to describe out again, generate RTL code, here the design circuit that RTL code describes comprises N number of register and M combinational logic, wherein, N and M is the positive integer being not less than 1.
Step s203: RTL code is verified, and determine whether revising RTL code, until RTL code satisfies the demands according to the result;
This step is also behavior simulation, namely tests to the correctness of RTL code, and whether the design circuit detected described by RTL code satisfies the demands.Activity design and behavior simulation are the processes iterated, until final design circuit described by RTL code meets demand.
Step s204: the characteristic respectively according to each register selects corresponding logic from TB logic, RM logic and TB/RM mixed logic, the RTL code corresponding according to register and corresponding logic build corresponding circuit module; Complex optimum is carried out to the N number of circuit module obtained and M combinational logic, obtains gate level netlist, and then obtain design circuit according to gate level netlist;
The characteristic of register here is also the function of register, and the characteristic respectively according to N number of register finds out the logic corresponding to corresponding register from TB logic, RM logic and TB/RM mixed logic.
Enumerate an object lesson below, suppose that the function logic function that a certain register is corresponding has following three kinds of forms of expression:
Form 1:
Form 2:
Form 3:
Wherein form 1 is TB logical form, and form 2 is RM logical form, and form 3 represents for TB/RM mixed logic.Obvious 3rd kind of logical expressions are the simplest, and circuit resource requirement is less, thus can obtain the optimization of area and power consumption.Therefore, the TB/RM mixed logic corresponding with this register now can be selected to build circuit module.
Step s205: verify design circuit in sequential, to judge whether design circuit exists the violation of Time Created and retention time.
Step s206: functionally verify design circuit, to guarantee that design circuit satisfies the demands after the process of complex optimum.
Functionally the gate level netlist obtained after complex optimum is verified, guarantee not change primary circuit function in logic synthesis optimizing process.
In addition, step s205 here and the order of step s206 can be replaced, for specifically first carrying out which step the present invention does not do special restriction at this.
A kind of circuit design method provided by the invention, the basis of a upper embodiment also comprises, to the design circuit finally obtained sequential and functionally verify, the demand preset when ensureing that design circuit meets beginning, improves the accuracy of the circuit of design.
Corresponding with said method embodiment, present invention also offers a kind of design system, please refer to Fig. 3, Fig. 3 is the structural representation of a kind of design system provided by the invention, and this system comprises:
Circuit design module 1, generates RTL code for the demand according to design circuit, and wherein, the design circuit that RTL code describes comprises N number of register and M combinational logic;
Complex optimum module 2, selects corresponding logic for the characteristic respectively according to each register from TB logic, RM logic and TB/RM mixed logic, and the RTL code corresponding according to register and corresponding logic build corresponding circuit module; Complex optimum is carried out to the N number of circuit module obtained and M combinational logic, obtains gate level netlist, and then obtain design circuit according to gate level netlist.
As preferably, this system also comprises:
Timing verification module 3, for functionally verifying design circuit, to guarantee that design circuit satisfies the demands after the process of complex optimum.
As preferably, this system also comprises:
Functional verification module 4, for functionally verifying design circuit, to guarantee that design circuit satisfies the demands after the process of complex optimum.
As preferably, circuit design module 1 specifically comprises:
Functional requirement module 11, for proposing the demand of design circuit, wherein, demand comprises functional requirement and performance requirement;
Code generation module 12, for the Demand Design solution according to design circuit, and generates RTL code;
Code verification module 13, for verifying RTL code, and determines whether revising RTL code, until RTL code satisfies the demands according to the result.
Be corresponding for this system embodiment with said method embodiment, therefore, relevant description please refer to said method embodiment, and the present invention does not repeat them here.
A kind of design system provided by the invention, when carrying out complex optimum in the RTL code that the demand according to design circuit is generated, first the characteristic according to each register selects corresponding logic from TB logic, RM logic and TB/RM mixed logic, and then builds corresponding circuit module according to RTL code corresponding to register and corresponding logic; Visible, in the application, the characteristic of each register has been taken into full account when being circuit module by register RTL code conversion, select and the optimal logic of register, thus achieve the best performance of the circuit module converted to and circuit is the simplest, and then make the area of the design circuit finally obtained and power consumption all very little.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For system disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Also it should be noted that, in this manual, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (8)
1. a circuit design method, is characterized in that, comprising:
Demand according to design circuit generates RTL code, and wherein, the described design circuit that described RTL code describes comprises N number of register and M combinational logic;
Characteristic respectively according to register described in each selects corresponding logic from TB logic, RM logic and TB/RM mixed logic, and the described RTL code corresponding according to described register and corresponding logic build corresponding circuit module; Complex optimum is carried out to the N number of described circuit module obtained and M described combinational logic, obtains gate level netlist, and then obtain described design circuit according to described gate level netlist.
2. circuit design method as claimed in claim 1, it is characterized in that, the method also comprises:
Sequential is verified described design circuit, to judge whether described design circuit exists the violation of Time Created and retention time.
3. circuit design method as claimed in claim 1, it is characterized in that, the method also comprises:
Functionally described design circuit is verified, to judge whether described design circuit still meets described demand after complex optimum process.
4. circuit design method as claimed in claim 1, is characterized in that, the process that the described demand according to design circuit generates RTL code is specially:
Propose the demand of design circuit, wherein, described demand comprises functional requirement and performance requirement;
According to the Demand Design solution of described design circuit, and generate RTL code;
Described RTL code is verified, and determines whether revising described RTL code, until described RTL code meets described demand according to the result.
5. a design system, is characterized in that, comprising:
Circuit design module, generates RTL code for the demand according to design circuit, and wherein, the described design circuit that described RTL code describes comprises N number of register and M combinational logic;
Complex optimum module, from TB logic, RM logic and TB/RM mixed logic, select corresponding logic for the characteristic respectively according to register described in each, the described RTL code corresponding according to described register and corresponding logic build corresponding circuit module; Complex optimum is carried out to the N number of described circuit module obtained and M described combinational logic, obtains gate level netlist, and then obtain described design circuit according to described gate level netlist.
6. design system as claimed in claim 5, it is characterized in that, this system also comprises:
Timing verification module, for functionally verifying described design circuit, to guarantee that described design circuit meets described demand after the process of complex optimum.
7. design system as claimed in claim 5, it is characterized in that, this system also comprises:
Functional verification module, for functionally verifying described design circuit, to judge whether described design circuit still meets described demand after complex optimum process.
8. design system as claimed in claim 5, it is characterized in that, described circuit design module specifically comprises:
Functional requirement module, for proposing the demand of design circuit, wherein, described demand comprises functional requirement and performance requirement;
Code generation module, for the Demand Design solution according to described design circuit, and generates RTL code;
Code verification module, for verifying described RTL code, and determines whether revising described RTL code, until described RTL code meets described demand according to the result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510837449.8A CN105303000A (en) | 2015-11-26 | 2015-11-26 | Circuit design method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510837449.8A CN105303000A (en) | 2015-11-26 | 2015-11-26 | Circuit design method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105303000A true CN105303000A (en) | 2016-02-03 |
Family
ID=55200268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510837449.8A Pending CN105303000A (en) | 2015-11-26 | 2015-11-26 | Circuit design method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105303000A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106503296A (en) * | 2016-09-23 | 2017-03-15 | 北京深维科技有限公司 | A kind of process mapping method and device based on whitepack |
CN106529043A (en) * | 2016-11-14 | 2017-03-22 | 无锡华润矽科微电子有限公司 | Method for carrying out sub-module comprehensive design on circuit on basis of computer software |
CN107180137A (en) * | 2017-06-05 | 2017-09-19 | 安徽福讯信息技术有限公司 | A kind of universal circuit modularity |
CN111881637A (en) * | 2020-07-08 | 2020-11-03 | 广芯微电子(广州)股份有限公司 | Method, system and storage medium for optimizing power consumption of digital circuit |
CN112069754A (en) * | 2020-09-08 | 2020-12-11 | 海光信息技术股份有限公司 | Chip design method, system, device and storage medium |
CN112198770A (en) * | 2020-11-01 | 2021-01-08 | 杨清华 | Novel memorable photoetching machine system |
CN113392603A (en) * | 2021-08-16 | 2021-09-14 | 北京芯愿景软件技术股份有限公司 | RTL code generation method and device of gate level circuit and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110131582A1 (en) * | 2009-12-02 | 2011-06-02 | International Business Machines Corporation | Resource management finite state machine for handling resource management tasks separate from a protocol finite state machine |
CN104539298A (en) * | 2014-12-23 | 2015-04-22 | 宁波大学 | Polarity fast conversion method for Reed-Muller logic circuit |
-
2015
- 2015-11-26 CN CN201510837449.8A patent/CN105303000A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110131582A1 (en) * | 2009-12-02 | 2011-06-02 | International Business Machines Corporation | Resource management finite state machine for handling resource management tasks separate from a protocol finite state machine |
CN104539298A (en) * | 2014-12-23 | 2015-04-22 | 宁波大学 | Polarity fast conversion method for Reed-Muller logic circuit |
Non-Patent Citations (3)
Title |
---|
王伦耀 等: "逻辑函数的双逻辑综合与优化", 《计算机辅助设计与图形学学报》 * |
王士恒: "双逻辑低功耗运算电路设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
陈艳: "双逻辑低功耗运算电路设计分析", 《无线互联科技》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106503296A (en) * | 2016-09-23 | 2017-03-15 | 北京深维科技有限公司 | A kind of process mapping method and device based on whitepack |
CN106503296B (en) * | 2016-09-23 | 2019-08-27 | 京微齐力(北京)科技有限公司 | A kind of process mapping method and device based on whitepack |
CN106529043A (en) * | 2016-11-14 | 2017-03-22 | 无锡华润矽科微电子有限公司 | Method for carrying out sub-module comprehensive design on circuit on basis of computer software |
CN107180137A (en) * | 2017-06-05 | 2017-09-19 | 安徽福讯信息技术有限公司 | A kind of universal circuit modularity |
CN111881637A (en) * | 2020-07-08 | 2020-11-03 | 广芯微电子(广州)股份有限公司 | Method, system and storage medium for optimizing power consumption of digital circuit |
CN112069754A (en) * | 2020-09-08 | 2020-12-11 | 海光信息技术股份有限公司 | Chip design method, system, device and storage medium |
CN112069754B (en) * | 2020-09-08 | 2021-08-24 | 海光信息技术股份有限公司 | Chip design method, system, device and storage medium |
CN112198770A (en) * | 2020-11-01 | 2021-01-08 | 杨清华 | Novel memorable photoetching machine system |
CN113392603A (en) * | 2021-08-16 | 2021-09-14 | 北京芯愿景软件技术股份有限公司 | RTL code generation method and device of gate level circuit and electronic equipment |
CN113392603B (en) * | 2021-08-16 | 2022-02-18 | 北京芯愿景软件技术股份有限公司 | RTL code generation method and device of gate level circuit and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105303000A (en) | Circuit design method and system | |
CN101539958B (en) | Method and device for designing standard cell library and integrated circuit | |
CN100414552C (en) | Estimating jitter in a clock tree of a circuit and synthesizing a jitter-aware and skew-aware clock tree | |
CN102855178B (en) | Method and device for generating Mock base during unit test | |
EP2460106B1 (en) | Hierarchical order ranked simulation of electronic circuits | |
CN103150440B (en) | A kind of simulation method of module-level circuit netlist | |
CN103678745A (en) | Cross-platform multilevel integrated design system for FPGA (field programmable gate array) | |
CN102831273B (en) | Design method of digital integrated circuit comprising double-edge trigger | |
CN103207941A (en) | Transient analysis method and transient analysis system under integrated circuit power supply network full-parameter model | |
CN103150441A (en) | Software and hardware synergic simulation verification platform and construction method thereof | |
US8281269B2 (en) | Method of semiconductor integrated circuit device and program | |
US9294094B1 (en) | Method and apparatus for fast low skew phase generation for multiplexing signals on a multi-FPGA prototyping system | |
CN103870617A (en) | Auto-place-route method for low-frequency chip | |
Kim et al. | An integrated software testing framework for FPGA-based controllers in nuclear power plants | |
US8627248B1 (en) | Verification for functional independence of logic designs that use redundant representation | |
CN103425844A (en) | CAD/CAE (Computer-Aided Design/Computer-Aided Education) system based on data current communication platform and integration method | |
CN110515604A (en) | The acquisition methods and device of the executable program file of verification environment | |
US9104829B2 (en) | Method of validating timing issues in gate-level simulation | |
CN104615837A (en) | FPGA (field programmable gate array) physical implementation method and device | |
CN105512381B (en) | Clock delay verification method | |
US7340696B1 (en) | Automated design process and chip description system | |
CN103258079A (en) | Equivalent function test method for digital combined logic circuits | |
CN112131810A (en) | Method and device for restoring set-up time violation, electronic equipment and readable storage medium | |
Raik et al. | Code coverage analysis using high-level decision diagrams | |
Saglamdemir et al. | A formal equivalence checking methodology for Simulink and register transfer level designs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160203 |
|
WD01 | Invention patent application deemed withdrawn after publication |