CN103645878A - Four mixed fixed point arithmetic operation control unit for multiple operands - Google Patents

Four mixed fixed point arithmetic operation control unit for multiple operands Download PDF

Info

Publication number
CN103645878A
CN103645878A CN201310680917.6A CN201310680917A CN103645878A CN 103645878 A CN103645878 A CN 103645878A CN 201310680917 A CN201310680917 A CN 201310680917A CN 103645878 A CN103645878 A CN 103645878A
Authority
CN
China
Prior art keywords
operand
control module
input end
result
pulse
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.)
Granted
Application number
CN201310680917.6A
Other languages
Chinese (zh)
Other versions
CN103645878B (en
Inventor
蔡启仲
李克俭
潘绍明
孙培燕
郑力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi University of Science and Technology
Original Assignee
Guangxi University of Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangxi University of Science and Technology filed Critical Guangxi University of Science and Technology
Priority to CN201310680917.6A priority Critical patent/CN103645878B/en
Publication of CN103645878A publication Critical patent/CN103645878A/en
Application granted granted Critical
Publication of CN103645878B publication Critical patent/CN103645878B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Logic Circuits (AREA)

Abstract

A mixed fixed point arithmetic operation control unit for multiple operands comprises a command register and operand temporary storage control module, an arithmetic operation control module and a result output control module. An FPGA (field programmable gate array) is used for designing a hard link control circuit of the control unit; the control unit is enabled by a system to generate an impulse sequence signal internally under the action of a system WR (Write) signal, an operation command and the operands are written in under the action of the internal impulse sequence signal, and four mixed fixed point arithmetic operations of the multiple operands is autonomously finished; after the third operand to the last operand is written in, operations of the operands and a last operation result are executed; a middle operation result is written back to a temporary storage of an operand 1, and the operand 1 and an operand 2 can collaterally executed; and after all operands are received, a request signal is sent to the system, high 32-bit and low 32-bit operation results and marker states are read out one by one, and the speeds of instruction streams of the four mixed fixed point arithmetic operations are increased.

Description

Multioperand four fundamental rules are mixed fixed point arithmetic arithmetic and control unit
Technical field
The present invention relates to a kind of multioperand four fundamental rules and mix fixed point arithmetic arithmetic and control unit, relate in particular to a kind of based on the hardwired multioperand four fundamental rules mixing fixed point arithmetic arithmetic and control unit control circuit of FPGA parallel processing circuit and sequential control thereof.
Background technology
Arithmetical unit is one of the most basic parts of microprocessor, and subtraction application of instruction complement code is achieved by totalizer, and micro-order program or the scheduling algorithm of multiplication and divide instruction application specific are achieved by totalizer; Multiplier and divider also can be applied the speed that hard connecting circuit is achieved to improve multiplication and division arithmetic; Arithmetical unit has two operand input ends, is connected respectively 2, one temporary operands 1 of a temporary operand and operation result with the output terminal of two working storages; Its operating process is divided into two kinds of situations, situation is that the internal data bus that microprocessor is passed through in timesharing transmits operand 1 and operand 2 respectively two working storages of arithmetical unit, and computing finishes operation result to be write back in the working storage that leaves operand 1 in by the internal data bus of microprocessor again; The 2nd kind of situation is that operand 1 is the result of computing last time, after last time, operation result write back, then transmits operand 2, and operation result writes back the working storage of operand 1; It is the internal data bus time-sharing operations by microprocessor that operation result writes back with the processing procedure of the transmission of operand 2; On the other hand, in the order set of microprocessor, normally double operand instruction of arithmetical operation class instruction, in instruction, one is that 1, one of operand is operand 2, also has a register of depositing operation result; Or will deposit operation result and the shared working storage of operand 1; If there are a plurality of continuous addition subtraction multiplication and division computings, such as 7 operands, need 6 operational orders to be achieved, carry out these 6 instructions and need fetching and Instruction decoding 6 times, result writes back 6 times, and operand 2 sends input end of arithmetical unit to and process that result writes back to operand 1 working storage is time-division processing, is unfavorable for further improving the speed that the instruction of arithmetical operation class is carried out.
Summary of the invention
The object of the present invention is to provide a kind of multioperand four fundamental rules to mix fixed point arithmetic arithmetic and control unit, the hard connecting circuit that application FPGA design multioperand four fundamental rules are mixed fixed point arithmetic arithmetic and control unit; This controller is enabled by system, and under the continuous action of system WR signal, the inner pulse sequence signal that produces, under the effect of these pulse signals, writes algorithm according to sequential, operand; The 3rd operand writing until participate in last operand of computing carry out the operand that writes and last time operation result computing; This controller is under the effect of internal pulses sequence signal, and the four fundamental rules that independently complete multioperand are mixed fixed point arithmetic computing, intermediate operations result write back operation number 1 working storage can with write operation number 2 executed in parallel; After receiving all operands, to system, send and read request signal, system is sent RD signal as required, reads in order low 32, high 32 bit arithmetic results and operation token state; Be conducive to four fundamental rules and mix the speed that fixed point arithmetic operational order stream is carried out.
The technical scheme solving the problems of the technologies described above is: a kind of multioperand four fundamental rules are mixed fixed point arithmetic arithmetic and control unit, comprises that command register and operand keep in control module, arithmetical operation control module, result output control module;
The temporary control module of described command register and operand and arithmetical operation control module, result output control module connects;
Described arithmetical operation control module is also connected with result output control module;
The temporary control module of described command register and operand enables under " 0 " signal function at system CS, under the continuous action of system WR signal, inner produce pulse 1., pulse 2., pulse 3., 4. signal of pulse; Under the effect of these pulse signals, the temporary control module of described command register and operand writes algorithm, operand and latchs from system data bus DB, computing and the result of controlling arithmetical operation control module latch, control the operation result of result output control module and latching of sign, after receiving all operands, to system, send and read request signal;
Described arithmetical operation control module is according to the command code of command register and the temporary control module output of operand, implement two significance bits and be the adding of 64 and 32 fixed-point operation numbers, subtract, multiplication and division computing, subtraction adopts complement code to add computing, the sign of operation result is set, if operation result is abnormal, send the abnormal signal of operation result;
Described result output control module is stored intermediate result and the net result of high 32 bit arithmetics, and the sign of storage operation result, under the effect of system RD signal, exports 64 bit arithmetic results and operation token timesharing to system data bus DB; Under the effect of the output module reset signal of the temporary control module output of command register and operand, reset result output control module.
Its further technical scheme is: the temporary control module of described command register and operand comprises pulse generation and controller, not gate, and with door I ,-1 counter, shift register, operand working storage, with door II, alternative selector switch, operand 1 and operation result working storage, with door III, the enable signal input end of described pulse generation and controller is connected with system CS signal wire, pulse signal input terminal is connected with system WR signal wire, clock pulse input terminal is connected with clock signal of system line, the output terminal of reset signal input end and not gate is connected, spill over input end is connected with the output terminal that overflows of-1 counter, pulse is the presetting pulse signal input part of output terminal and-1 counter 1., shift register presetting pulse signal input part, the reset signal input end of operand working storage, the reset signal input end of operand 1 and operation result working storage, result output control module connects, pulse 2. output terminal is connected with an input end, the gating signal input end of alternative selector switch, arithmetical operation control module with door II, pulse 3. output terminal be connected with an input end of door I, pulse 4. output terminal with another input end with door I, be connected with another input end, arithmetical operation control module, the result output control module of door II,
The input end of described not gate is connected with system CS signal wire; Output terminal is also with the reset signal input end of-1 counter, be connected with an input end of door III;
Describedly be connected with the door output terminal of I and the counting pulse signal input end of-1 counter, the shift pulse signal input part of shift register, the write signal input end of operand working storage;
The enable signal input end of described-1 counter is connected with system CS signal wire, and counting initial value input end is connected to D28 line with the D31 of system DB; Spill over output terminal is also as reading request signal output;
The command signal input end of described shift register is connected to D0 with the D27 of system DB; Command code output terminal is connected with arithmetical operation control module;
The operand input end of described operand working storage is connected to D0 line with the D31 of system DB; 32 positional operand 2 output terminals are connected with arithmetical operation control module;
Described with door II output terminal be connected with the write signal input end of operation result working storage with operand 1;
A data input pin of described alternative selector switch is connected to D0 line with the D31 of system DB, and another low 32 bit arithmetic result input ends are connected with arithmetical operation control module; Output terminal is connected with 32 bit data input ends of operation result working storage with operand 1;
Described operand 1 is connected with arithmetical operation control module, result output control module with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage;
Described with door III another input end be connected with systematic reset signal line; Output terminal is connected with arithmetical operation control module.
Its further technical scheme is: described arithmetical operation control module comprises totalizer, multiplier, divider, one-out-three selector switch I, one-out-three selector switch II, status register and control module thereof; Low 32 positional operand 1 input ends of described totalizer are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage with operand 1, high 32 positional operand 1 input ends are connected with result output control module, 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage, command code input end is connected with the command code output terminal of shift register, arithmetical unit reset signal input end be connected with the output terminal of door III, the pulse that operand sign bit is adjusted input end and pulse generation and controller 2. output terminal is connected; Low 32 output terminals are connected with an input end of one-out-three selector switch I, and high 32 output terminals are connected with an input end of one-out-three selector switch II;
Low 32 positional operand 1 input ends of described multiplier are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage with operand 1, high 32 positional operand 1 input ends are connected with result output control module, 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage, command code input end is connected with the command code output terminal of shift register, arithmetical unit reset signal input end be connected with the output terminal of door III, the pulse that operand sign bit is adjusted input end and pulse generation and controller 2. output terminal is connected; Low 32 output terminals are connected with an input end of one-out-three selector switch I, and high 32 output terminals are connected with an input end of one-out-three selector switch II;
Low 32 positional operand 1 input ends of described divider are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage with operand 1, high 32 positional operand 1 input ends are connected with result output control module, 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage, command code input end is connected with the command code output terminal of shift register, arithmetical unit reset signal input end be connected with the output terminal of door III, the pulse that operand sign bit is adjusted input end and pulse generation and controller 2. output terminal is connected; Low 32 output terminals are connected with an input end of one-out-three selector switch I, and high 32 output terminals are connected with an input end of one-out-three selector switch II, and operation mistake output terminal is connected with the operation mistake input end of status register and control module thereof;
The gating control end of described one-out-three selector switch I is connected with the command code output terminal of shift register; Output terminal is connected with the low 32 bit arithmetic result input ends of status register and control module thereof, the low 32 bit arithmetic result input ends of alternative selector switch;
The gating control end of described one-out-three selector switch II is connected with the command code output terminal of shift register; Output terminal is connected with high 32 bit arithmetic result input ends, the result output control module of status register and control module thereof;
The pulse that the state of described status register and control module thereof writes input end and pulse generation and controller 4. output terminal is connected, operand 1 sign bit input end is connected with the D31 line of high 32 positional operands 1 of result output control module output, operand 2 sign bit input ends are connected with 32 positional operand 2 output terminal D31 lines of operand working storage, arithmetical unit the RESET input be connected with the output terminal of door III; Mark output end is connected with result output control module, and the abnormal output terminal of operation result is to system output operation result abnormal signal.
Its further technical scheme is: described result output control module comprises high 32 bit arithmetic result working storages, flag register, and counter-controller, one-out-three selector switch III, with door IV, 32 triple gate groups; The high 32 bit arithmetic result input ends of described high 32 bit arithmetic result working storages are connected with the output terminal of one-out-three selector switch II, the pulse that result writes input end and pulse generation and controller 4. output terminal is connected, and the pulse of output module reset signal input end and pulse generation and controller 1. output terminal is connected; Output terminal is connected with high 32 positional operand 1 input ends of totalizer, multiplier and divider, the high 32 bit arithmetic result input ends of one-out-three selector switch III;
The sign input end of described flag register is connected with the mark output end of status register and control module thereof, the pulse that result writes input end and pulse generation and controller 4. output terminal is connected, and the pulse of output module reset signal input end and pulse generation and controller 1. output terminal is connected; Operation token output terminal is connected with the operation token input end of one-out-three selector switch III;
The count pulse input end of described counter-controller is connected with system RD signal wire, and enable signal input end is connected with system CS line, and the pulse of output module reset signal input end and pulse generation and controller 1. output terminal is connected; RD1, RD2, RD3 signal output part are respectively with three control input ends of one-out-three selector switch III, be connected with three input ends of door IV;
The low 32 bit arithmetic result input ends of described one-out-three selector switch III are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage; Output terminal is connected with the input end of 32 triple gate groups;
Described with door IV output terminal be connected with the control end of 32 triple gate groups;
32 bit data output terminals of described 32 triple gate groups are connected with system DB.
Its further technical scheme is: the pulse generation of the temporary control module of described command register and operand and controller send the pulse of synchronizeing with system WR signal 1., pulse 2., pulse 3., 4. signal of pulse;
In pulse 1. under the effect of negative edge, the D31 of the algorithm transmitting from system data bus DB writes-1 counter to an operand numerical value of D28 as counting initial value, D27 writes shift register to the command code of D0, exports the algorithm of the 1st operand and the 2nd operand; Reset operation is counted working storage, operand 1 and operation result working storage, high 32 bit arithmetic result working storages;
In pulse 2. under the effect of negative edge, the 1st operand write operation number 1 and the operation result working storage of algorithm;
In pulse, 3. under the effect of negative edge ,-1 counter subtracts 1 operation, and the command code value in shift register moves to right two, and working storage is counted in the 2nd operand write operation of algorithm;
In pulse 4. under the effect of negative edge, working storage is counted in the 3rd operand write operation of algorithm,-1 counter subtracts 1 operation, command code value in shift register moves to right two, export the algorithm of the 3rd operand and operation result, low 32 bit arithmetic result write operation numbers 1 and operation result working storage, high 32 bit arithmetic results write high 32 bit arithmetic result working storages, operation result Status Flag write state register and control module thereof;
When-1 counter, overflow output terminal when " 1 ", shown in pulse generation and controller circulation output pulse 4., in pulse 4. under the effect of negative edge, working storage is counted in the operand write operation of algorithm,-1 counter subtracts 1 operation, command code value in shift register moves to right two, export the algorithm of this operand and operation result, the low 32 bit arithmetic result write operation numbers 1 and operation result working storage of computing last time, high 32 bit arithmetic results write high 32 bit arithmetic result working storages, operation result Status Flag write state register and control module thereof,
When-1 counter overflow output terminal by " 1 " → " 0 " time, the pulse that pulse generation and controller send a clock period is 4.; Shown in the output terminal that overflows of-1 counter remain " 0 " state, until the presetting pulse receiving input is from " 1 " → " 0 " ,-1 counter overflow output terminal by " 0 " → " 1 ".
Owing to adopting above structure, the present invention's parallel work-flow arithmetical operation and controller thereof have following beneficial effect:
One, arithmetical operation has from main control function
This controller is enabled by system, and under the continuous action of system WR signal, the inner pulse sequence signal that produces, under the effect of these pulse signals, writes algorithm according to sequential, operand; The 3rd operand writing until participate in last operand of computing carry out the operand that writes and last time operation result computing; This controller is under the effect of internal pulses sequence signal, and the four fundamental rules that independently complete multioperand are mixed fixed point arithmetic computing, operation result write back operand 1 working storage can with write operation number 2 executed in parallel; Fully apply the parallel processing function of FPGA, be conducive to improve the speed that arithmetic operation instruction stream is carried out.
Two, realize multioperand four fundamental rules and mix fixed point arithmetic computing
In the present invention, multioperand four fundamental rules are mixed fixed point arithmetic arithmetic and control unit to be had and adds, takes advantage of and division fixed point arithmetic arithmetical unit, this controller, according to the selected arithmetical unit calculating of the command code value of each computing, under the control of inner clock signal, is realized multioperand four fundamental rules and is mixed fixed point arithmetic computing; After receiving all operands, to system, send and read request signal, system is sent RD signal as required, reads in order low 32, high 32 bit arithmetic results and operation token state; The algorithm of carrying out a multioperand is equivalent to carry out the order of the arithmetical operation of many two operands.
Three, cost performance is high
In the present invention, the hardwired multioperand four fundamental rules of application FPGA design circuit are mixed fixed point arithmetic arithmetic and control unit, under the control of inner clock signal, reach and independently complete multioperand four fundamental rules and mix fixed point arithmetic computing, operation result write back operand 1 working storage can with write operation number 2 executed in parallel; Be conducive to four fundamental rules and mix the speed that fixed point arithmetic operational order stream is carried out, there is higher cost performance.
Below in conjunction with drawings and Examples, the present invention's parallel work-flow arithmetical operation and the technical characterictic of controller thereof are further described.
Accompanying drawing explanation
Fig. 1: more than the present invention, operand four fundamental rules are mixed the system architecture diagram of fixed point arithmetic arithmetic and control unit;
Fig. 2: more than the present invention, operand four fundamental rules are mixed the command register of fixed point arithmetic arithmetic and control unit and the circuit connection diagram of the temporary control module of operand;
Fig. 3: more than the present invention, operand four fundamental rules are mixed the circuit connection diagram of the arithmetical operation control module of fixed point arithmetic arithmetic and control unit;
Fig. 4: more than the present invention, operand four fundamental rules are mixed the circuit connection diagram of the result output control module of fixed point arithmetic arithmetic and control unit;
Fig. 5: more than the present invention, operand four fundamental rules are mixed the command execution sequential chart of fixed point arithmetic arithmetic and control unit.
In figure:
I-command register and operand are kept in control module, II-arithmetical operation control module, III-result output control module;
1-pulse generation and controller, 2-not gate, 3-with door an I, 4--1 counters, 5-shift register, 6-operand working storage, 7-with door an II, 8-alternative selector switch, 9-operand 1 and operation result working storage, 10-with door an III, 11-totalizer, 12-multiplier, 13-divider, 14-one-out-three selector switch I, 15-one-out-three selector switch II, 16-status register and control module thereof, 17-high 32 bit arithmetic result working storages, 18-flag register, 19-counter-controller, 20-one-out-three selector switch III, 21-with door an IV, 22-32 triple gate groups.
Abbreviation explanation in literary composition:
FPGA-Field Programmable Gate Array, field programmable gate array;
DB-Data Bus, data bus;
CS-Chip Select, sheet selects or enables, CS representative " enable signal " in figure;
RD-Read, reads, representative " read output signal " in figure;
WR-Write, writes, representative " write signal " in figure.
Embodiment
Embodiment:
Multioperand four fundamental rules are mixed a fixed point arithmetic arithmetic and control unit, as shown in Figure 1, it is characterized in that: this controller comprises command register and the temporary control module I of operand, arithmetical operation control module II, result output control module III;
The temporary control module I of described command register and operand and arithmetical operation control module II, result output control module III connects;
Described arithmetical operation control module II is also connected with result output control module III;
The temporary control module I of described command register and operand enables under " 0 " signal function at system CS, under the continuous action of system WR signal, inner produce pulse 1., pulse 2., pulse 3., 4. signal of pulse; Under the effect of these pulse signals, the temporary control module I of described command register and operand writes algorithm, operand and latchs from system data bus DB, computing and the result of controlling arithmetical operation control module II latch, control the operation result of result output control module III and latching of sign, after receiving all operands, to system, send and read request signal;
Described arithmetical operation control module II is according to the command code of command register and the temporary control module I output of operand, implement two significance bits and be the adding of 64 and 32 fixed-point operation numbers, subtract, multiplication and division computing, subtraction adopts complement code to add computing, the sign of operation result is set, if operation result is abnormal, send the abnormal signal of operation result;
Described result output control module III is stored intermediate result and the net result of high 32 bit arithmetics, and the sign of storage operation result, under the effect of system RD signal, exports 64 bit arithmetic results and operation token timesharing to system data bus DB; Under the effect of the output module reset signal of the temporary control module I output of command register and operand, reset result output control module III.
As shown in Figure 2, the temporary control module I of described command register and operand comprises pulse generation and controller 1, and not gate 2, with door I 3,-1 counter 4, shift register 5, operand working storage 6, with door II 7, alternative selector switch 8, operand 1 and operation result working storage 9, with door III 10, the enable signal input end of described pulse generation and controller 1 is connected with system CS signal wire, pulse signal input terminal is connected with system WR signal wire, clock pulse input terminal is connected with clock signal of system line, reset signal input end is connected with the output terminal of not gate 2, spill over input end is connected with the output terminal that overflows of-1 counter 4, pulse is the presetting pulse signal input part of output terminal and-1 counter 4 1., shift register 5 presetting pulse signal input parts, the reset signal input end of operand working storage 6, the reset signal input end of operand 1 and operation result working storage 9, result output control module III connects, pulse 2. output terminal is connected with an input end, the gating signal input end of alternative selector switch 8, arithmetical operation control module II with door II 7, pulse 3. output terminal be connected with an input end of door I 3, pulse 4. output terminal with another input end with door I 3, be connected with another input end, arithmetical operation control module II, the result output control module III of door II 7,
The input end of described not gate 2 is connected with system CS signal wire; Output terminal is also with the reset signal input end of-1 counter 4, be connected with an input end of door III 10;
Described with door I 3 output terminal be connected with the counting pulse signal input end of-1 counter 4, the write signal input end of the shift pulse signal input part of shift register 5, operand working storage 6;
The enable signal input end of described-1 counter 4 is connected with system CS signal wire, and counting initial value input end is connected to D28 line with the D31 of system DB; Spill over output terminal is also as reading request signal output;
The command signal input end of described shift register 5 is connected to D0 with the D27 of system DB; Command code output terminal is connected with arithmetical operation control module II;
The operand input end of described operand working storage 6 is connected to D0 line with the D31 of system DB; 32 positional operand 2 output terminals are connected with arithmetical operation control module II;
Described with door II 7 output terminal be connected with the write signal input end of operation result working storage 9 with operand 1;
A data input pin of described alternative selector switch 8 is connected to D0 line with the D31 of system DB, and another low 32 bit arithmetic result input ends are connected with arithmetical operation control module II; Output terminal is connected with 32 bit data input ends of operation result working storage 9 with operand 1;
Described operand 1 is connected with arithmetical operation control module II, result output control module III with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage 9;
Described with door III 10 another input end be connected with systematic reset signal line; Output terminal is connected with arithmetical operation control module II.
As shown in Figure 3, described arithmetical operation control module II comprises totalizer 11, multiplier 12, divider 13, one-out-three selector switch I 14, one-out-three selector switch II 15, status register and control module 16 thereof, low 32 positional operand 1 input ends of described totalizer 11 are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage 9 with operand 1, high 32 positional operand 1 input ends are connected with result output control module III, 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage 6, command code input end is connected with the command code output terminal of shift register 5, arithmetical unit reset signal input end be connected with the output terminal of door III 10, the pulse that operand sign bit is adjusted input end and pulse generation and controller 1 2. output terminal is connected, low 32 output terminals are connected with an input end of one-out-three selector switch I 14, and high 32 output terminals are connected with an input end of one-out-three selector switch II 15,
Low 32 positional operand 1 input ends of described multiplier 12 are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage 9 with operand 1, high 32 positional operand 1 input ends are connected with result output control module III, 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage 6, command code input end is connected with the command code output terminal of shift register 5, arithmetical unit reset signal input end be connected with the output terminal of door III 10, the pulse that operand sign bit is adjusted input end and pulse generation and controller 1 2. output terminal is connected, low 32 output terminals are connected with an input end of one-out-three selector switch I 14, and high 32 output terminals are connected with an input end of one-out-three selector switch II 15,
Low 32 positional operand 1 input ends of described divider 13 are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage 9 with operand 1, high 32 positional operand 1 input ends are connected with result output control module III, 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage 6, command code input end is connected with the command code output terminal of shift register 5, arithmetical unit reset signal input end be connected with the output terminal of door III 10, the pulse that operand sign bit is adjusted input end and pulse generation and controller 1 2. output terminal is connected, low 32 output terminals are connected with an input end of one-out-three selector switch I 14, and high 32 output terminals are connected with an input end of one-out-three selector switch II 15, and operation mistake output terminal is connected with the operation mistake input end of status register and control module 16 thereof,
The gating control end of described one-out-three selector switch I 14 is connected with the command code output terminal of shift register 5; Output terminal is connected with the low 32 bit arithmetic result input ends of status register and control module 16 thereof, the low 32 bit arithmetic result input ends of alternative selector switch 8;
The gating control end of described one-out-three selector switch II 15 is connected with the command code output terminal of shift register 5; Output terminal is connected with high 32 bit arithmetic result input ends, the result output control module III of status register and control module 16 thereof;
The pulse that the state of described status register and control module 16 thereof writes input end and pulse generation and controller 1 4. output terminal is connected, operand 1 sign bit input end is connected with the D31 line of high 32 positional operands 1 of result output control module III output, operand 2 sign bit input ends are connected with 32 positional operand 2 output terminal D31 lines of operand working storage 6, arithmetical unit the RESET input be connected with the output terminal of door III 10; Mark output end is connected with result output control module III, and the abnormal output terminal of operation result is to system output operation result abnormal signal.
As shown in Figure 4, described result output control module III comprises high 32 bit arithmetic result working storages 17, flag register 18, and counter-controller 19, one-out-three selector switch III 20, with 21,32 triple gate groups 22 of door IV; The high 32 bit arithmetic result input ends of described high 32 bit arithmetic result working storages 17 are connected with the output terminal of one-out-three selector switch II 15, the pulse that result writes input end and pulse generation and controller 1 4. output terminal is connected, and the pulse of output module reset signal input end and pulse generation and controller 1 1. output terminal is connected; Output terminal is connected with high 32 positional operand 1 input ends of totalizer 11, multiplier 12 and divider 13, the high 32 bit arithmetic result input ends of one-out-three selector switch III 20;
The sign input end of described flag register 18 is connected with the mark output end of status register and control module 16 thereof, the pulse that result writes input end and pulse generation and controller 1 4. output terminal is connected, and the pulse of output module reset signal input end and pulse generation and controller 1 1. output terminal is connected; Operation token output terminal is connected with the operation token input end of one-out-three selector switch III 20;
The count pulse input end of described counter-controller 19 is connected with system RD signal wire, and enable signal input end is connected with system CS line, and the pulse of output module reset signal input end and pulse generation and controller 1 1. output terminal is connected; RD1, RD2, RD3 signal output part are respectively with three control input ends of one-out-three selector switch III 20, be connected with three input ends of door IV 21;
The low 32 bit arithmetic result input ends of described one-out-three selector switch III 20 are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage 9; Output terminal is connected with the input end of 32 triple gate groups 22;
Described with door IV 21 output terminal be connected with the control end of 32 triple gate groups 22;
32 bit data output terminals of described 32 triple gate groups 22 are connected with system DB.
As shown in Figure 2, Figure 3, Figure 4, the pulse generation of the temporary control module I of described command register and operand and controller 1 send the pulse of synchronizeing with system WR signal 1., pulse 2., pulse 3., 4. signal of pulse;
In pulse 1. under the effect of negative edge, the D31 of the algorithm transmitting from system data bus DB writes-1 counter 4 to an operand numerical value of D28 as counting initial value, D27 writes shift register 5 to the command code of D0, exports the algorithm of the 1st operand and the 2nd operand; Reset operation is counted working storage 6, operand 1 and operation result working storage 9, high 32 bit arithmetic result working storages 17;
In pulse 2. under the effect of negative edge, the 1st operand write operation number 1 and the operation result working storage 9 of algorithm;
In pulse, 3. under the effect of negative edge ,-1 counter 4 subtracts 1 operation, and the command code value in shift register 5 moves to right two, and working storage 6 is counted in the 2nd operand write operation of algorithm;
In pulse 4. under the effect of negative edge, working storage 6 is counted in the 3rd operand write operation of algorithm,-1 counter 4 subtracts 1 operation, command code value in shift register 5 moves to right two, export the algorithm of the 3rd operand and operation result, low 32 bit arithmetic result write operation numbers 1 and operation result working storage 9, high 32 bit arithmetic results write high 32 bit arithmetic result working storages 17, operation result Status Flag write state register and control module 16 thereof;
When-1 counter 4, overflow output terminal when " 1 ", shown in the 1 circulation output pulse of pulse generation and controller 4., in pulse 4. under the effect of negative edge, working storage 6 is counted in the operand write operation of algorithm,-1 counter 4 subtracts 1 operation, command code value in shift register 5 moves to right two, export the algorithm of this operand and operation result, the low 32 bit arithmetic result write operation numbers 1 and operation result working storage 9 of computing last time, high 32 bit arithmetic results write high 32 bit arithmetic result working storages 17, operation result Status Flag write state register and control module 16 thereof,
When-1 counter 4 overflow output terminal by " 1 " → " 0 " time, the pulse that pulse generation and controller 1 send a clock period is 4.; Shown in the output terminal that overflows of-1 counter 4 remain " 0 " state, until the presetting pulse receiving input is from " 1 " → " 0 " ,-1 counter 4 overflow output terminal by " 0 " → " 1 ".

Claims (5)

1. multioperand four fundamental rules are mixed a fixed point arithmetic arithmetic and control unit, it is characterized in that: this controller comprises command register and the temporary control module (I) of operand, arithmetical operation control module (II), result output control module (III);
Described command register and operand are kept in control module (I) and arithmetical operation control module (II), and result output control module (III) connects;
Described arithmetical operation control module (II) is also connected with result output control module (III);
Described command register and operand keep in control module (I) at system CS for enabling under " 0 " signal function, under the continuous action of system WR signal, inner produce pulse 1., pulse 2., pulse 3., 4. signal of pulse; Under the effect of these pulse signals, described command register and operand are kept in control module (I) and are write algorithm, operand and latch from system data bus DB, computing and the result of controlling arithmetical operation control module (II) latch, control the operation result of result output control module (III) and latching of sign, after receiving all operands, to system, send and read request signal;
Described arithmetical operation control module (II) is according to the command code of command register and temporary control module (I) output of operand, implement two significance bits and be the adding of 64 and 32 fixed-point operation numbers, subtract, multiplication and division computing, subtraction adopts complement code to add computing, the sign of operation result is set, if operation result is abnormal, send the abnormal signal of operation result;
Described result output control module (III) is stored intermediate result and the net result of high 32 bit arithmetics, and the sign of storage operation result, under the effect of system RD signal, exports 64 bit arithmetic results and operation token timesharing to system data bus DB; Under the effect of the output module reset signal of temporary control module (I) output of command register and operand, reset result output control module (III).
2. multioperand four fundamental rules as claimed in claim 1 are mixed fixed point arithmetic arithmetic and control unit, it is characterized in that: described command register and operand are kept in control module (I) and comprised pulse generation and controller (1), not gate (2), with door I (3) ,-1 counter (4), shift register (5), operand working storage (6), with door II (7), alternative selector switch (8), operand 1 and operation result working storage (9), with door III (10), the enable signal input end of described pulse generation and controller (1) is connected with system CS signal wire, pulse signal input terminal is connected with system WR signal wire, clock pulse input terminal is connected with clock signal of system line, reset signal input end is connected with the output terminal of not gate (2), spill over input end is connected with the output terminal that overflows of-1 counter (4), pulse is the presetting pulse signal input part of output terminal and-1 counter (4) 1., shift register (5) presetting pulse signal input part, the reset signal input end of operand working storage (6), the reset signal input end of operand 1 and operation result working storage (9), result output control module (III) connects, pulse 2. output terminal is connected with an input end, the gating signal input end of alternative selector switch (8), arithmetical operation control module (II) with door II (7), pulse 3. output terminal be connected with an input end of door I (3), pulse 4. output terminal with another input end with door I (3), be connected with another input end, arithmetical operation control module (II), the result output control module (III) of door II (7),
The input end of described not gate (2) is connected with system CS signal wire; Output terminal is also with the reset signal input end of-1 counter (4), be connected with an input end of door III (10);
Described with door I (3) an output terminal be connected with the counting pulse signal input end of-1 counter (4), the write signal input end of the shift pulse signal input part of shift register (5), operand working storage (6);
The enable signal input end of described-1 counter (4) is connected with system CS signal wire, and counting initial value input end is connected to D28 line with the D31 of system DB; Spill over output terminal is also as reading request signal output;
The command signal input end of described shift register (5) is connected to D0 with the D27 of system DB; Command code output terminal is connected with arithmetical operation control module (II);
The operand input end of described operand working storage (6) is connected to D0 line with the D31 of system DB; 32 positional operand 2 output terminals are connected with arithmetical operation control module (II);
Described with door II (7) an output terminal be connected with the write signal input end of operation result working storage (9) with operand 1;
A data input pin of described alternative selector switch (8) is connected to D0 line with the D31 of system DB, and another low 32 bit arithmetic result input ends are connected with arithmetical operation control module (II); Output terminal is connected with 32 bit data input ends of operation result working storage (9) with operand 1;
Described operand 1 is connected with arithmetical operation control module (II), result output control module (III) with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage (9);
Described with door III (10) another input end be connected with systematic reset signal line; Output terminal is connected with arithmetical operation control module (II).
3. multioperand four fundamental rules as claimed in claim 1 are mixed fixed point arithmetic arithmetic and control unit, it is characterized in that: described arithmetical operation control module (II) comprises totalizer (11), multiplier (12), divider (13), one-out-three selector switch I (14), one-out-three selector switch II (15), status register and control module thereof (16);
Low 32 positional operand 1 input ends of described totalizer (11) are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage (9) with operand 1, high 32 positional operand 1 input ends are connected with result output control module (III), 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage (6), command code input end is connected with the command code output terminal of shift register (5), arithmetical unit reset signal input end be connected with the output terminal of door III (10), the pulse that operand sign bit is adjusted input end and pulse generation and controller (1) 2. output terminal is connected, low 32 output terminals are connected with an input end of one-out-three selector switch I (14), and high 32 output terminals are connected with an input end of one-out-three selector switch II (15),
Low 32 positional operand 1 input ends of described multiplier (12) are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage (9) with operand 1, high 32 positional operand 1 input ends are connected with result output control module (III), 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage (6), command code input end is connected with the command code output terminal of shift register (5), arithmetical unit reset signal input end be connected with the output terminal of door III (10), the pulse that operand sign bit is adjusted input end and pulse generation and controller (1) 2. output terminal is connected, low 32 output terminals are connected with an input end of one-out-three selector switch I (14), and high 32 output terminals are connected with an input end of one-out-three selector switch II (15),
Low 32 positional operand 1 input ends of described divider (13) are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage (9) with operand 1, high 32 positional operand 1 input ends are connected with result output control module (III), 32 positional operand 2 input ends are connected with 32 positional operand 2 output terminals of operand working storage (6), command code input end is connected with the command code output terminal of shift register (5), arithmetical unit reset signal input end be connected with the output terminal of door III (10), the pulse that operand sign bit is adjusted input end and pulse generation and controller (1) 2. output terminal is connected, low 32 output terminals are connected with an input end of one-out-three selector switch I (14), high 32 output terminals are connected with an input end of one-out-three selector switch II (15), and operation mistake output terminal is connected with the operation mistake input end of status register and control module (16) thereof,
The gating control end of described one-out-three selector switch I (14) is connected with the command code output terminal of shift register (5); Output terminal is connected with the low 32 bit arithmetic result input ends of status register and control module (16) thereof, the low 32 bit arithmetic result input ends of alternative selector switch (8);
The gating control end of described one-out-three selector switch II (15) is connected with the command code output terminal of shift register (5); Output terminal is connected with high 32 bit arithmetic result input ends, the result output control module (III) of status register and control module (16) thereof;
The pulse that the state of described status register and control module thereof (16) writes input end and pulse generation and controller (1) 4. output terminal is connected, operand 1 sign bit input end is connected with the D31 line of high 32 positional operands 1 of result output control module (III) output, operand 2 sign bit input ends are connected with 32 positional operand 2 output terminal D31 lines of operand working storage (6), arithmetical unit the RESET input be connected with the output terminal of door III (10); Mark output end is connected with result output control module (III), and the abnormal output terminal of operation result is to system output operation result abnormal signal.
4. multioperand four fundamental rules as claimed in claim 1 are mixed fixed point arithmetic arithmetic and control unit, it is characterized in that: described result output control module (III) comprises high 32 bit arithmetic result working storages (17), flag register (18), counter-controller (19), one-out-three selector switch III (20), with door IV (21), 32 triple gate groups (22); The high 32 bit arithmetic result input ends of described high 32 bit arithmetic result working storages (17) are connected with the output terminal of one-out-three selector switch II (15), the pulse that result writes input end and pulse generation and controller (1) 4. output terminal is connected, and the pulse of output module reset signal input end and pulse generation and controller (1) 1. output terminal is connected; Output terminal is connected with high 32 positional operand 1 input ends of totalizer (11), multiplier (12) and divider (13), the high 32 bit arithmetic result input ends of one-out-three selector switch III (20);
The sign input end of described flag register (18) is connected with the mark output end of status register and control module (16) thereof, the pulse that result writes input end and pulse generation and controller (1) 4. output terminal is connected, and the pulse of output module reset signal input end and pulse generation and controller (1) 1. output terminal is connected; Operation token output terminal is connected with the operation token input end of one-out-three selector switch III (20);
The count pulse input end of described counter-controller (19) is connected with system RD signal wire, and enable signal input end is connected with system CS line, and the pulse of output module reset signal input end and pulse generation and controller (1) 1. output terminal is connected; RD1, RD2, RD3 signal output part are respectively with three control input ends of one-out-three selector switch III (20), be connected with three input ends of door IV (21);
The low 32 bit arithmetic result input ends of described one-out-three selector switch III (20) are connected with low 32 bit arithmetic result output terminals with low 32 positional operands 1 of operation result working storage (9); Output terminal is connected with the input end of 32 triple gate groups (22);
Described with door IV (21) an output terminal be connected with the control end of 32 triple gate groups (22);
32 bit data output terminals of described 32 triple gate groups (22) are connected with system DB.
5. multioperand four fundamental rules as claimed in claim 1 are mixed fixed point arithmetic arithmetic and control unit, it is characterized in that: described command register and operand keep in the pulse generation of control module (I) and controller (1) send the pulse of synchronizeing with system WR signal 1., pulse 2., pulse 3., 4. signal of pulse;
In pulse 1. under the effect of negative edge, the D31 of the algorithm transmitting from system data bus DB writes-1 counter (4) to an operand numerical value of D28 as counting initial value, D27 writes shift register (5) to the command code of D0, exports the algorithm of the 1st operand and the 2nd operand; Reset operation is counted working storage (6), operand 1 and operation result working storage (9), high 32 bit arithmetic result working storages (17);
In pulse 2. under the effect of negative edge, the 1st operand write operation number 1 and the operation result working storage (9) of algorithm;
In pulse, 3. under the effect of negative edge ,-1 counter (4) subtracts 1 operation, and the command code value in shift register (5) moves to right two, and working storage (6) is counted in the 2nd operand write operation of algorithm;
In pulse 4. under the effect of negative edge, working storage (6) is counted in the 3rd operand write operation of algorithm,-1 counter (4) subtracts 1 operation, command code value in shift register (5) moves to right two, export the algorithm of the 3rd operand and operation result, low 32 bit arithmetic result write operation numbers 1 and operation result working storage (9), high 32 bit arithmetic results write high 32 bit arithmetic result working storages (17), operation result Status Flag write state register and control module (16) thereof;
When-1 counter (4), overflow output terminal when " 1 ", shown in pulse generation and controller (1) circulation output pulse 4., in pulse 4. under the effect of negative edge, working storage (6) is counted in the operand write operation of algorithm,-1 counter (4) subtracts 1 operation, command code value in shift register (5) moves to right two, export the algorithm of this operand and operation result, the low 32 bit arithmetic result write operation numbers 1 and operation result working storage (9) of computing last time, high 32 bit arithmetic results write high 32 bit arithmetic result working storages (17), operation result Status Flag write state register and control module (16) thereof,
When-1 counter (4) overflow output terminal by " 1 " → " 0 " time, the pulse that pulse generation and controller (1) send a clock period is 4.; Shown in the output terminal that overflows of-1 counter (4) remain " 0 " state, until the presetting pulse receiving input is from " 1 " → " 0 " ,-1 counter (4) overflow output terminal by " 0 " → " 1 ".
CN201310680917.6A 2013-12-13 2013-12-13 Four mixed fixed point arithmetic operation control unit for multiple operands Expired - Fee Related CN103645878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310680917.6A CN103645878B (en) 2013-12-13 2013-12-13 Four mixed fixed point arithmetic operation control unit for multiple operands

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310680917.6A CN103645878B (en) 2013-12-13 2013-12-13 Four mixed fixed point arithmetic operation control unit for multiple operands

Publications (2)

Publication Number Publication Date
CN103645878A true CN103645878A (en) 2014-03-19
CN103645878B CN103645878B (en) 2017-02-08

Family

ID=50251103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310680917.6A Expired - Fee Related CN103645878B (en) 2013-12-13 2013-12-13 Four mixed fixed point arithmetic operation control unit for multiple operands

Country Status (1)

Country Link
CN (1) CN103645878B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113658623A (en) * 2021-08-20 2021-11-16 湘潭大学 Ferroelectric memory array capable of realizing multi-operand memory calculation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206561A (en) * 2006-12-22 2008-06-25 上海贝岭股份有限公司 Special arithmetic unit ALU
US7640285B1 (en) * 2004-10-20 2009-12-29 Nvidia Corporation Multipurpose arithmetic functional unit
EP2525284A1 (en) * 2011-05-17 2012-11-21 AptCore Ltd Signal processing apparatus
CN203746056U (en) * 2013-12-13 2014-07-30 广西科技大学 Multi-operand four fundamental admixture fixed-point operation controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7640285B1 (en) * 2004-10-20 2009-12-29 Nvidia Corporation Multipurpose arithmetic functional unit
CN101206561A (en) * 2006-12-22 2008-06-25 上海贝岭股份有限公司 Special arithmetic unit ALU
EP2525284A1 (en) * 2011-05-17 2012-11-21 AptCore Ltd Signal processing apparatus
CN203746056U (en) * 2013-12-13 2014-07-30 广西科技大学 Multi-operand four fundamental admixture fixed-point operation controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
翟呈祥: "基于FPGA的8051单片机IP核设计及应用", 《中国优秀硕士学位论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113658623A (en) * 2021-08-20 2021-11-16 湘潭大学 Ferroelectric memory array capable of realizing multi-operand memory calculation
CN113658623B (en) * 2021-08-20 2024-03-01 湘潭大学 Ferroelectric memory array capable of realizing multi-operand memory calculation

Also Published As

Publication number Publication date
CN103645878B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN102184092A (en) Special instruction set processor based on pipeline structure
CN104111816A (en) Multifunctional SIMD structure floating point fusion multiplying and adding arithmetic device in GPDSP
CN103345448B (en) Addressing reads one with storage integrated two and writes memory controller
CN203746056U (en) Multi-operand four fundamental admixture fixed-point operation controller
CN103645887B (en) Two instruction many floating-points operand plus/minus, multiplication and division operation control device
CN102253822B (en) Modular (2<n>-3) multiplier
CN102063284B (en) Division operation method and device
CN103645878A (en) Four mixed fixed point arithmetic operation control unit for multiple operands
CN103677742B (en) Many floating-point operations number plus/minus arithmetic and control unit
Schneidewind Computer, network, software, and hardware engineering with applications
CN103336751A (en) Storage controller integrating addressing function and storage unit
CN101206561B (en) Special arithmetic unit ALU
CN102693118B (en) Scalar floating point operation accelerator
US3144550A (en) Program-control unit comprising an index register
CN103645886B (en) Many floating-point operations number plus/minus, multiplication and division arithmetic and control unit
CN203689501U (en) Multi-floating-point operand addition/subtraction operation controller
CN105786528B (en) Design method of SM3 algorithm IP core based on Avalon interface
CN104699460A (en) Thread offset counter
CN202281998U (en) Scalar floating-point operation accelerator
CN100426219C (en) Data operating method and apparatus in integrated circuit
CN102929814B (en) PLC input gathers to video memory controller with the information of reading
CN203812229U (en) Multi-floating-point operand addition/subtraction, multiplication and division operation control unit
CN103645880B (en) Double instruction many floating-point operations number plus/minus arithmetic and control units
CN203689500U (en) Multi-floating-point operand division operation controller
CN203746058U (en) Floating number addition/subtraction operation execution controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170208

Termination date: 20211213