Summary of the invention
To solve the above-mentioned problems, the efficiency of transmission for improving fpga chip, this application provides a kind of cascade look-up tables
Process mapping method this method comprises: including combinatorial logic unit gate level circuit by obtaining, and carries out combinatorial logic unit
Look-up table mapping, the look-up table after mapping is grouped, and obtains basic logic unit, which includes at least one
Paths, each path include at least two look-up tables, are carried out between two look-up tables by quick hardwired in each path
One-to-one connection carries out logic level counting number to path finally according to the logical connection information of look-up table in basic logic unit.
In an optional realization, this method further include: by common coiling, to different in the basic logic unit
Path be attached.
In an optional realization, according to the logical connection information of look-up table in basic logic unit, path is carried out
Logic level counting number, specifically: if the logical connection carried out between look-up table by quick hardwired, signal is through quick hardwired
Path Logical series by a look-up table is pre-set value.If the logical connection carried out between look-up table by common coiling,
The Path Logical series that then signal passes through a look-up table through common coiling is 1.
In an optional realization, pre-set value is directly proportional to quick hard-wired length, and pre-set value is less than 1.
A kind of process mapping method cascading look-up table provided by the present application, by obtaining gate level circuit, the gate level circuit
Look-up table mapping is carried out including combinatorial logic unit, and to combinatorial logic unit, the look-up table after mapping is grouped, is obtained
Basic logic unit, wherein basic logic unit include at least one path, each path include at least two look-up tables, every
One-to-one connection is carried out by quick hardwired between two look-up tables in path, finally according to look-up table in basic logic unit
Logical connection information, to path carry out logic level counting number.The method reduce the logic series in path, to make FPGA
Chip possesses higher fmax.
Specific embodiment
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Fig. 2 is a kind of flow chart of process mapping method for cascading look-up table provided in an embodiment of the present invention.Such as Fig. 2 institute
Show, this method may include:
Step 210 obtains gate level circuit, which includes combinatorial logic unit.
In the synthesis and library mapping phase of fpga chip, gate level circuit need to be converted by subscriber's line circuit.Subscriber's line circuit can be with
It is using made of hardware description language (verilog or VHDL) compiling.It is compiled using high-level hardware description language
Subscriber's line circuit, the gate level circuit of low level will be become after comprehensive, which may include at least one combinational logic list
Member, combinatorial logic unit can be with the units such as door or door, NOT gate, as Fig. 3 be one 10 select 1 and gate cell.
Step 220 carries out look-up table mapping to combinatorial logic unit, and the look-up table after mapping is grouped, base is obtained
This logic unit, the basic logic unit include at least one path, and each path includes at least two look-up tables, each path
In pass through quick hardwired between two look-up tables and carry out one-to-one connection.
Look-up table mapping is carried out at least one combinatorial logic unit in the gate level circuit of acquisition, acquisition contains look-up table
Map netlist.Fpga chip can be according to the far and near distance between the logic connecting relation or look-up table of map netlist, to look-up table
It is grouped and is packaged as a basic logic unit.Obtained basic logic unit may include at least one path, and every
Path may include at least two look-up tables, can carry out a pair by quick hardwired between two look-up tables in each path
One connection.As shown in Figure 4 A, include the path A and B path in basic logic unit, include 3 look-up tables in the path A, in B path
Including 4 look-up tables, one-to-one connection is carried out by quick hardwired (solid line in figure) between adjacent look-up table in each path.
Fig. 4 B selects 1 and the structural schematic diagram after gate cell mapping for provided in an embodiment of the present invention 10.As shown, 10 choosings
1 can carry out cascade connection by tri- look-up tables of LUT0, LUT2 and LUT4 with after gate cell mapping.By fast between LUT0 and LUT2
Fast hardwired connection, is connected between LUT2 and LUT4 by quick hardwired.A [0]-A [9] is input terminal, and O is output end.
Optionally, the look-up table between two path A and B can be attached by common coiling resource.In Figure 4 A,
Between LUT0 and LUT1 or between LUT2 and LUT5, it can be attached by common coiling resource (dotted line in figure).
It should be noted that quickly the quick transmission of signal may be implemented in hardwired, and common coiling resource is by gating
Device composition, its main feature is that in order to improve the success rate of wiring and occupy relatively small hardware area, due to by gating
Device is also required to expend the time, and therefore, common coiling resource cannot quickly transmit signal.
In addition, the gate level circuit can also include at least one sequential logic unit, the sequential logic list in mapping process
Member carries out register mappings.
Step 230, according to the logical connection information of look-up table in basic logic unit, logic series meter is carried out to path
Number.
The logical connection information of look-up table in the basic logic unit obtained according to step 220, such as input signal in path
Behavioural characteristic, logic level counting number is carried out to path, can specifically include: if being carried out by quick hardwired between look-up table
Logical connection, then the Path Logical series that signal passes through a look-up table through quick hardwired is pre-set value, such as 0.2;If looking into
The logical connection carried out between table by common coiling is looked for, then signal passes through the Path Logical series of a look-up table through common coiling
It is 1.
Wherein, quickly hard-wired logic series is less than the logic series of common coiling, i.e., pre-set value is less than 1.It is default
Definite value is directly proportional to quick hard-wired length, that is to say, that the quick hard-wired length between look-up table is longer, corresponding to patrol
The pre-set value for collecting series is bigger.
In one example, pre-set value is set as 0.2.Fig. 5 is the schematic diagram of Fig. 4 B logic series.In figure, signal from
Input terminal A [3] passes through quick hardwired into the path of output end O, since signal is no before by LUT0, passes through
Logic series is 1 on the path of LUT0;Signal is quick from have passed through during the output end O2 of output end O1 to the LUT2 of LUT0
Hardwired, therefore logic series is 0.2 on the path for passing through LUT2;Output end O of the signal from output end O2 to the LUT4 of LUT2
The quick hardwired that period have passed through, therefore be 0.2 by logic series on the path of LUT4, in summary logic series can
Know, in A [3] -> O logical path, total logic series is 1.4.
A kind of logic level counting number method cascading look-up table provided by the invention, by obtaining gate level circuit, the gate leve
Circuit includes combinatorial logic unit, and carries out look-up table mapping to combinatorial logic unit, and the look-up table after mapping is grouped,
Basic logic unit is obtained, wherein basic logic unit includes at least one path, and each path includes at least two look-up tables,
One-to-one connection is carried out by quick hardwired between two look-up tables in each path, is finally looked into according in basic logic unit
The logical connection information for looking for table carries out logic level counting number to path.The method reduce the logic series in path, to make
Fpga chip possesses higher fmax.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor
The combination of software module or the two is implemented.Software instruction can be made of corresponding software module, and software module can be by
Deposit in random access memory, flash memory, read-only memory, erasable programmable read-only register (English: erasable
Programmable read-only memory, EPROM) memory, Electrically Erasable Programmable Read-Only Memory memory (English:
Electrically erasable programmable read-only memory, EEPROM), hard disk, CD-ROM (English
Text: compact disc read-only memory, CD-ROM) or any other form well known in the art storage be situated between
In matter.A kind of illustrative storage medium is coupled to processor, thus enable a processor to from the read information, and
Information can be written to the storage medium.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media
It can be located in ASIC.In addition, the ASIC can be located in user equipment.Certainly, pocessor and storage media can also be used as
Discrete assembly is present in user equipment.
Those skilled in the art are it will be appreciated that in said one or multiple examples, function described in the invention
It can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by these functions
Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all any modification, equivalent substitution, improvement and etc. on the basis of technical solution of the present invention, done should all
Including within protection scope of the present invention.