Claims (4)
디지털 신경 회로망을 위한 소정의 비트수(N)×소정의 비트수(N)의 곱셈방법에 있어서, 곱셈 결과로 나오는 2N개의 비트 중에서 최하위 비트(비트 0)부터 상위 비트 순으로 차례로 N-1개의 비트(비트 N-2, 비트 N-3, …, 비트 1 및 비트 0)와 최상위에서 두번째 비트(비트 2N-1)를 버리는 제1과정; 및 상기 제1과정의 결과로 남은 나머지 N개의 비트(비트 2N, 비트 2N-2, 비트 2N-3, 비트 2N-4, …, 비트 N+1, 비트 N 및 비트 N-1)를 곱셈 결과로 선택하는 제2과정으로 이루어지는 것을 특징으로 하는 신경망을 위한 곱셈방법.In a multiplication method of a predetermined number of bits (N) for a digital neural network multiplied by a predetermined number of bits (N), the multiplication result is multiplied by N-1 in order from the least significant bit (bit 0) A first step of discarding bits (bits N-2, N-3, ..., bit 1 and bit 0) and a second bit (bit 2N-1) And the remaining N bits (bit 2N, bit 2N-2, bit 2N-3, bit 2N-4, ..., bit N + 1, bit N and bit N-1) remaining as a result of the first process And a second step of selecting a multiplication factor for the neural network.
제1항에 있어서, 상기 소정의 비트수(N)가 4비트이며; 곱셈 결과로 나오는 8개의 비트 중에서 최하위 비트(비트 0)부터 상위 비트 순으로 차례로 3개의 비트(비트 2, 비트 1 및 비트 0)와 최상위에서 두번째 비트(비트 6)를 버리는 제1과정; 및 상기 제1과정의 결과로 남은 나머지 4개의 비트(비트 7, 비트 5, 비트 4 및 비트 3)를 곱셈 결과로 선택하는 제2과정으로 이루어지는 것을 특징으로 하는 신경망을 위한 곱셈방법.The method of claim 1, wherein the predetermined number of bits (N) is 4 bits; A first step of discarding three bits (bit 2, bit 1 and bit 0) and a second bit (bit 6) from the most significant bit (bit 0) to the most significant bit among the eight bits resulting from the multiplication; And a second step of selecting the remaining four bits (bit 7, bit 5, bit 4 and bit 3) remaining as a result of the first process as a result of the multiplication.
디지털 신경 회로망을 위한 소정의 비트수(N)×소정의 비트수(N)로 구성된 곱셈기에 있어서, 소정의 비트수(N)로 된 2개의 입력수치를 입력받아 소정의 비트수(N)×소정의 비트수(N)의 곱셈을 수행하여 2N개의 비트로 된 결과수치를 출력하는 곱셈수단; 및 상기 곱셈수단의 2N개의 비트로 된 결과수치와 N개의 비트로 된 2개의 상기 입력수치들을 입력받아 상기 결과수치인 2N개의 비트 중에서 최하위 비트(비트 0)부터 상위 비트 순으로 차례로 N-1개의 비트(비트 N-2, 비트 N-3, …, 비트 1 및 비트 0)와 최상위에서 두번째 비트(비트 2N-1)를 버리고, 남은 나머지 N개의 비트(비트 2N, 비트 2N-2, 비트 2N-3, 비트 2N-4, …, 비트 N+1, 비트 N 및 비트 N-1)를 상기 곱셈기의 곱셈 결과로 선택하여 N개의 비트로 된 곱셈결과를 출력하는 최대치 보정수단으로 구성되는 것을 특징으로 하는 신경망을 위한 곱셈기.A multiplier having a predetermined number of bits (N) for a digital neural network multiplied by a predetermined number of bits (N), the multiplier having a predetermined number of bits (N) Multiplying means for performing a multiplication of a predetermined number of bits (N) to output a result value of 2N bits; And a multiplier for multiplying a result value of the 2N bits of the multiplication means and two input values of N bits and outputting N-1 bits (1) in order from the least significant bit (bit 0) (The bit 2N, the bit 2N-2, the bit 2N-3) of the remaining N bits (bit N-2, bit N-3, ..., bit 1 and bit 0) , The bit 2N-4, ..., the bit N + 1, the bit N and the bit N-1) as the multiplication result of the multiplier and outputting the result of the multiplication with N bits. Multiplier for.
제3항에 있어서, 상기 소정의 비트수(N)가 4비트이며; 4개의 비트로 된 2개의 입력수치를 입력받아 4개의 비트×4개의 비트의 곱셈을 수행하여 8개의 비트로 된 결과수치를 출력하는 곱셈수단; 및 상기 곱셈수단의 8개의 비트로 된 결과수치와 4개의 비트로 된 2개의 상기 입력수치들을 입력받아 상기 결과수치인 8개의 비트중에서 최하위 비트(비트 0)부터 상위 비트 순으로 차례로 3개의 비트(비트 2, 비트 1 및 비트 0)와 최상 위에서 두번째 비트(비트 6)를 버리고, 남은 나머지 4개의 비트(비트 7, 비트 5, 비트 4 및 비트 3)를 상기 곱셈기의 곱셈 결과로 선택하여 4개의 비트로 된 곱셈결과를 출력하는 최대치 보정수단으로 구성되는 것을 특징으로 하는 신경망을 위한 곱셈기.4. The method of claim 3, wherein the predetermined number of bits (N) is 4 bits; A multiplication means for receiving two input values of four bits and performing a multiplication of four bits by four bits to output a result value of eight bits; And a multiplier for multiplying the result value of the multiplication means by the 8-bit result value and the 2 input values of 4 bits and receiving 3 bits (bit 2 (Bit 7, bit 5, bit 4, and bit 3) as a result of the multiplication of the multiplier, and outputs the remaining four bits And a maximum value correcting means for outputting a multiplication result.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: It is disclosed by the contents of the first application.