Anda di halaman 1dari 127

1.

TEORI DASAR
1.1. Gerbang-gerbang Sistem Digital
Gerbang-gerbang sistem digital atau gerbang logika adalah piranti yang memiliki
keadaan bertaraf logika. Gerbang logika dapat mempresentasikan keadaan dari bilangan
biner. Terdapat dua keadaan pada gerbang logika, yaitu 0 dan 1. Tegangan yang digunakan
dalam gerbang logika dalam gerbang logika adalah HIGH (1) dan LOW (0). Sistem digital
yang paling kompleks seperti computer besar disusun dari gerbang logika dasar seperti AND,
OR, NOT dan gerbang kombinasi (turunan) yang disusun dari gerbang dasar tersebut seperti
NAND, NOR, XOR, XNOR.
Pada perancangan perhitungan sistem elektronika, ada beberapa gerbang logika
yang akan digunakan, sebagai berikut :
1.1.1. Gerbang NOT (inverter)
Sebuah inverter (pembalik) adalah gerbang dengan satu sinyal masukan dan satu
sinyal keluaran dimana keadaan keluarannya selalu berlawanan dengan keadaan masukan.
Gerbang Logika INV pada Datasheet nama lainnya IC TTL 7404. Pada gerbang NOT
(inverter) hanya memiliki satu masukan dan satu keluaran. Jika diketahui masukan 1 (high)
maka keluarannya akan bernilai 0 (low), begitupun sebaliknya jika masukan 0 (low) makan
keluarannya akan bernilai 1 (high), maka dapat disimpulkan bahwa keluaran dari gerbang not
merupakan kebalikan dari masukannya sendiri.

Gambar 1.1 gerbang NOT

Tabel 1.1 Tabel kebenaran untuk gerbang NOT (inverter)

1.1.2. Gerbang AND


Gerbang AND mempunyai dua atau lebih dari dua sinyal masukan tetapi hanya
satu sinyal keluaran. Dalam gerbang AND, untuk menghasilkan sinyal keluaran tinggi maka
semua sinyal masukan harus bernilai tinggi. Gerbang Logika AND pada Datasheet nama
lainnya IC TTL 7408.

Gambar 1.2 simbol gerbang AND


Gambar 1.2 merupakan symbol logika gerbang AND, Berikut Tabel kebenaran gerbang
AND, yang terdiri dari dua masukan.
Tabel 1.2 Tabel kebenaran untuk gerbang AND

1.1.3. Gerbang OR
Gerbang OR akan memberikan sinyal keluaran tinggi jika salah satu atau semua
sinyal masukan bernilai tinggi, sehingga dapat dikatakan bahwa gerbang OR hanya memiliki
sinyal keluaran rendah jika semua sinyal masukan bernilai rendah. Gerbang Logika OR pada
Datasheet nama lainnya IC TTL 7432.

Gambar 1.3 gerbang OR


Gambar 1.2 merupakan symbol logika gerbang OR, Berikut Tabel kebenaran gerbang OR,
yang terdiri dari dua masukan.
Tabel 1.3 Tabel kebenaran untuk gerbang OR

1.1.4. Gerbang XOR


Gerbang X-OR akan menghasilkan sinyal keluaran rendah jika semua sinyal
masukan bernilai rendah atau semua masukan bernilai tinggi atau dengan kata lain bahwa XOR akan menghasilkan sinyal keluaran rendah jika sinyal masukan bernilai sama semua.
Gerbang Logika XOR pada Datasheet nama lainnya IC TTL 7486.

Gambar 1.4 gerbang XOR


Gambar 1.2 merupakan symbol logika gerbang OR, Berikut Tabel kebenaran gerbang OR,
yang terdiri dari dua masukan.
Tabel 1.4 tabel kebenaran gerbang XOR

1.2. Rangkaian Terintegrasi


Rangkaian terintegrasi adalah rangkaian aplikasi yang terbentuk dari berbagai
macam gerbang logika. Rangkaian terintegrasi dapat merupakan kombinasi dari satu jenis
gerbang logika atau lebih. Penyederhanaan rangkaian terintegrasi dapat menggunakan
aljabar Boole atau peta karnough.
1.2.1. Rangkaian half Adder (Rangkaian setengah penjumlah)
Rangkaian half Adder (HA) merupakan rangkaian penjumlah yang paling dasar,
rangkaian ini dapat digunakan untuk penjumlahan 2 variabel A dan B, masing-masing 1 bit.
Rangkaian half adder dapat disusun dari tabel kebenaran penjumlahan 2 variabel.
Tabel 1.5 Tabel kebenaran penjumlahan Half adder

(S0) akan berlogika 1 jika S0=A.B+ B.A sehingga dapat disimpulkan bahwa hasil
penjumlahan dapat diperoleh dengan menggunakan gerbang XOR, sebagaimana Gambar
rangkaian full adder. Sedangkan sisa penjumlahan (C0) berlogika 1 jika kedua masukan
berlogika 1 atau dapat disimbolkan menjadi C 0= A . B Sehingga C0 dapat diwakili dengan
sebuah gerbang AND, sebagaimana gambar rangkaian full adder. Berdasar hasil pnjumlahan
dan sisa penjumlahan, maka rangkaian HA dapat digambarkan seperti gambar 1.2.1

Gambar 1.5 Riple Carry Adder

1.2.2

Rangkaian Full Adder (penjumlah penuh)


Rangkaian full Adder (FA) dapat digunakan untuk penjumlahan 3 variabel A, B, dan
Carry (C). 1 FA dapat digunakan untuk penjumlahan 3 variabel 1 bit. Rangkaian FA dapat
disusun dari tabel kebenaran penjumlahan 3 variabel.
Tabel 1.6 Tabel kebenaran full adder

1.3 Perkalian Dengan metode Algoritma Booth


Sistem bilangan biner merupakan sistem bilangan yang menggunakan bilangan 0 dan
1 dengan bit-bit yang dikelompokkan berjumlah 8 bit untuk 1 Byte. Dalam operasi bilangan
biner sama dengan operasi bilangan biasa, namun bedanya adalah pada operasi bilangan
biner angka yang digunakan hanya 0 dan 1, tidak seperti pada operasi bilangan desimal yang
menggunakan angka dari 0-9.
Untuk menjalankan operasi perkalian bilangan biner kita harus dapat terlebih dahulu
mengkonversi bilangan biner ke desimal dan sebaliknya. Konversi bilangan tersebut digunakan
untuk mempermudah dalam proses operasi yang dilakukan, sebab dalam operasinya bilangan
biner tidak dapat diproses secara langsung dengan bilangan desimal.
Dalam operasi pengalian bilangan biner ada beberapa hal yang harus diperhatikan,
diantaranya adalah :
1.3.1 Konversi bilangan biner ke desimal
Untuk mengubah angka desimal menjadi angka biner digunakan metode membagi dua
angka tersebut dan mengambil hasil sisanya dan penulisannya diurutkan dari bawah ke atas.

Sebagai contoh :

1.3.2 Operasi Penjumlahan


Operasi penjumlahan ini digunakan untuk operasi 2s komplemen yang diperoleh dari
penjumlahan nilai X ditambah 1, selain itu juga operasi penjumlahan ini digunakan dalam
proses akhir mencari nilai hasil perkalian yang dilakukan dengan algoritma booth. Seperti
bilangan desimal, bilangan biner juga dijumlahkan dengan cara yang sama. Pertama-tama
yang harus dicermati adalah aturan pasangan digit biner berikut:

1.3.3 Mencari 2s Complement


Untuk mencari nilai 2s complement dapat dicari dengan mengganti bilangan biner 0
menjadi 1 dan 1 menjadi 0, kemudian hasil dari pengubahan tersebut dijumlahkan dengan 1
bit.
Contoh :

1.3.4 Algoritma Booth


Algoritma booth merupakan bilangan yang dikalikan dengan pengali dengan recoded
digit yang telah ditentukan untuk memproses dan menjalankan operasi pengaliannya, dimana
mode operasi yang dijalankan tersebut sesuai dengan keadaan yang ada pada tabel berikut :
Tabel 1.7 Penentuan Record Digit Dalam Algoritma Boot

Setelah kita mengetahui operasi diatas, maka kita dapat melakukan operasi perkalian
bilangan biner.
Sebagai contoh proses operasi perkalian dengan menggunakan algoritma booth
dengan cara mengalikan multiplier dengan multiplikannya.
Dengan multiplier 0.24, maka untuk menghasilkan nilai tersebut dalam bilangan
binnernya dapat ditentukan sebagai berikut :
0.24 dikali dengan 128 (karena untuk mendapatkan nilai sebesar 8 bit.
6

Maka : 0.24128 = 30.72 dibulatkan menjadi 31.


Dalam binnernya 31 = 11111, Karena bilangan positif dan agar dapat menentukan nilai mode
operasi multiplier ini binnernya menjadi 0111110.
Tabel 1.8 Contoh Penentuan Record Digit

Record digit digunakan kode mode operasi yang dilakukan untuk melakukan perkalian
dengan metode algoritma booth.
Adapun operasi yang dapat dilakukan adalah sebagai berikut :
a. (-1) = memasukkan 2s complement X ke partial product
b. (0) = memasukkan 0 (nol) ke partial product
c. (+2) = menggeser ke kiri X satu posisi dan kemudian memasukkan ke partial product
Nilai Multiplier = 0111110
Dengan memasukkan nilai multiplikan, maka akan diperoleh hasil perkalian dengan
metode tersebut.
sebagai contoh :

Hasil perkalian biner = 1 , hasil perkalian desimal = 1.2

Dari hasil perkalian dengan metode Algorithma Booth ini, nantinya dapat dirangcang
penggunaan FPGA dengan bahasa VHDL yang didapatkan dari penyederhanaan tabel
perkalian Algoritma Booth, ditentukan gerbang apa saja yang digunakan untuk membuat
rangkaian Skematik sebelum di buat bahasa pemrograman secara deskriptif dengan VHDL.
Tahap 1.
Dari contoh yang diberikan pada tabel algoritma booth sebelumnya, nilai yang terdapat
pada tabel kita ubah dan didefinisikan dalam bentuk huruf untuk mempermudah dalam proses
pengerjaan hingga menjadi rangkaian yang sederhana, sesuai dengan bit recorder yang telah
diperoleh.
Tabel 1.9

Tahap 2.
Tabel 1.10

Karena operation bit recorder kedua adalah '0', maka dapat disederhanakan seperti
tabel diatas dimana nilai '0' tidak berpengaruh pada operasi penjumlahan.
Tahap 3.
Nilai D0-D7 merupakan nilai 2's complement dari produk, maka agar dapat mencari
persamaan untuk operasi penjumlahan, operasi mencari nilai complement's tersebut dapat
dimasukkan ke dalam
Tabel 1.11

Nilai B0-B6 adalah nilai produk dan 1 adalah nilai yang akan ditambahkan ke nilai produk untuk
mendapatkan nilai 2's complement.
8

Tahap 4.
Penyederhanaan kembali dari tabel algoritma booth
Tabel 1.12

Tahap 5.
Tabel 1.13

Dari tabel diatas dapat ditentukan nilai cary C0 dan C11 untuk mendapatkan hasil akhir
dari perkalian dengan metode ini.
Cary C1 sama dengan B0, dapat dibuktikan dengan penggunaan Full Adder sebagai
pembuktiannya.
Adapun rumus dari Full Adder adalah sebagai berikut :
S = X XOR Y XOR Cin
C = X AND Y OR X AND Cin OR Y AND Cin
Dari tabel diatas, untuk C0 yang dibutuhkan hanya Cary operasi penjumlahan B0 dan 1, maka :
C0

= B0 AND 1 OR B0 AND 0 OR 1 AND Cin


= B0 AND 1 OR 0 OR 0
= B0 AND 1

Jadi, besarnya cary sama dengan B0.

Tahap 6
Tabel 1.14

Setelah mengetahui cary pertama C0=B0, selanjutnya adalah mencari nilai C4, karena
yang dibutuhkan dalam operasi selanjutnya adalah mencari nilai carry C7 untuk proses
penjumlahan akhir. Dapat dilakukan dengan menggunakan Ripple Cary Adder.
S = Pi XOR Ci
S = X XOR Y XOR Cin
C = gi OR pi AND Ci
C = X AND Y OR X XOR Y AND Cin
Karena yang dibutuhkan hanya Cary nya saja, maka yang digunakan adalah rumus C saja.

C5 dapat dicari dengan Ripple Cary Adder, maka selanjutnya dapat dilakukan proses
terakhir dengan menggunakan kembali Full adder untuk menghasilkan Sum dan Carry. Full
Adder kali ini tidak hanya menghasilkan C6 tetapi Sum Y1 dan Cary C7 digunakan untuk
10

mencari Sum Y2. Sum yang dihasilkan adalah bit-bit yang digunakan untuk menghasilkan
bilangan biner terakhir sebagai hasil perkalian bilangan biner.
secara skematik, berikut adalah gambaran untuk menentukan carry dan sum.

Gambar 1.6 Skematik Rangkaian Full Adder


Dari rumus diatas maka diperoleh hasil S1, S2, S3, S4, S5, S6 dan Sn, kemudian
dihitung nilai binnernya dari kiri ke kanan. Karena perhitungan yang dilakukan secara desimal
jika dikonversi adalah 8 bit, maka 8 bit dari kri ke kanan merupakan hasil akhir perkalian
bilangan binner dengan algoritma Booth.
Tahap 7
Tabel 1.15

Proses selanjutnya adalah membuat program secara deskriptif dengan bahasa VHDL
yang dapat dituliskan dalam program XILINX sebagai simulasi implementasi pada FPGA.
Dengan menggunakan rumus dan memasukkan hasil dari S dan C program dapat dituliskan
dan disimulasikan.
Adapun bentuk program dan hasil simulasi dari perkalian Algoritma booth ini adalah
sebagai berikut:
VHDL perkalian algoritma booth
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
- Uncomment the following library declaration if instantiating
- any Xilinx primitives in this code.

11

library UNISIM;
use UNISIM.VComponents.all;
entity Algoritma1 is
PORT ( A : IN STD_LOGIC_VECTOR (7 DOWNTO 0);
Y : OUT STD_LOGIC_VECTOR (7 DOWNTO 0));
end Algoritma1;
architecture Behavioral of Algoritma1 is
signal C : STD_LOGIC_VECTOR (11 DOWNTO 0);
signal B : STD_LOGIC_VECTOR (7 DOWNTO 0);
begin
B <= NOT (A);
C(0) <= B(0) AND '1';
C(1) <= B(1) AND C(0);
C(2) <= B(2) AND C(1);
C(3) <= B(3) AND C(2);
C(4) <= B(4) AND C(3);
C(5) <= (B(5) AND A(0)) OR (C(4) AND (B(5) XOR A(0)));
C(6) <= (B(6) AND A(1)) OR (C(5) AND (B(6) XOR A(1)));
C(7) <= (B(7) AND A(2)) OR (C(6) AND (B(7) XOR A(2)));
C(8) <= (B(7) AND A(3)) OR (C(7) AND (B(7) XOR A(3)));
C(9) <= (B(7) AND A(4)) OR (C(8) AND (B(7) XOR A(4)));
C(10) <= (B(7) AND A(5)) OR (C(9) AND (B(7) XOR A(5)));
C(11) <= (B(7) AND A(6)) OR (C(10) AND (B(7) XOR A(6)));
Y(0) <= B(7) XOR A(2) XOR C(6);
Y(1) <= B(7) XOR A(3) XOR C(7);
Y(2) <= B(7) XOR A(4) XOR C(8);
Y(3) <= B(7) XOR A(5) XOR C(9);
Y(4) <= B(7) XOR A(6) XOR C(10);
Y(5) <= B(7) XOR A(7) XOR C(11);
Y(6) <= B(7) XOR A(7) XOR C(11);
Y(7) <= B(7) XOR A(7) XOR C(11);
end Behavioral;

Setelah disimulasikan akan diperoleh hasil plot pada xilinx dengan memasukkan nilai
pengalinya,

Gambar 1.7 Hasil Simulasi


Jika dilihat dari hasil simulasi perkalian biner dengan menggunakan metode algoritma
booth seperti diatas, hasil antara perkalian desimal dengan perkalian biner hasilnya sama,
hanya saja terletak pada pembulatan yang terjadi, pada bilangan biner tidak ada koma,
sehingga langsung dibulatkan ke nilai yang terdekat. Dari beberapa proses perhitungan
dengan nilai pengali yang beda, keadaan yang terjadi adalah sebagai berikut (data terlampir) :

12

- Pembulatan ke bawah, seperti contoh pada perkalian dengan hasil perkalian biner= 17, hasil
perkalian desimal = 17.76
- Pembulatan ke atas, seperti contoh pada perkalian dengan hasil perkalian biner= 27 , hasil
perkalian desimal = 26.88
- Nilai bilangan yang hasilnya sama antara perhitungan biner dengan desimal, seperti pada
hasil perkalian biner= 24 , hasil perkalian desimal = 24
Dari ketiga keadaan tersebut maka dapat disimpulkan bahwa operasi perkalian pada
bilangan biner tidak mengenal koma, sehingga terjadi pembulatan nilai ke atas maupun ke
bawah, namun hasil dari pembulatan tersebut tidak terlalu jauh dari hasil perkalian bilangan
desimal. Dengan demikian perkalian yang dilakukan dengan metode ini dapat dikatakan benar
dan sesuai dengan langkah mode operasinya.
Dari Hasil yang diperoleh dapat ditarik kesimpulan sebagai berikut:
1. Perkalian alogoritma booth merupakan perkalian bilangan binner yang dinyatakan dalam
nilai 0 dan 1.
2. Untuk mencari hasil akhir dari perkalian, dapat disederhanakan terlebih dahulu dan
kemudian digunakan rangkaian terintegrasi dalam proses penjumlahan dalam mencari SUM
dan CARRY.
3. Hasil dari perkalian secara desimal dan algoritma booth hasilnya adalah sama, hanya saja
terdapat selisih yang kecil, sebab pada proses perkalian bilangan binner adalah langsung
pembulatan.
4. Gerbang logika dan Rangkaian terintegrasi seperti Half adder, full adder, ripple carry adder
dapat digunakan sebagai rangkaian penjumlah.
5. VHDL dan Skematik adalah program dan rangkaian yang diperoleh dari logika hasil
perkalian pada algoritma booth yang di deskripsikan dan digambarkan pada program
XILINX untuk dapat disimulasikan.

13

2. PEMBAHASAN
Pada rancangan Pengali 16 Titik (8-Bit) diketahui nilai dari pengali sebagai berikut:

B1 = B2 = B3 = B4 = B10 = B11 = B12 =1


B3 = cos 2
B7= cos3
B8 = cos + cos 3
B9 = - cos + cos 3
B13 = B14 = -sin 2
B15 = - sin 3
B16 = - sin + sin 3
B17 = - sin - sin 3

=
.

= 0.3925

Pada rancangan pengali 16 titik menggunakan beberapa symbol


A = multiplicand (bilangan biner yang akan dikali => bilangan yang dimasukkan)
B = 1s komplemen dari multiplicand
C = carry dari penjumlahan bilangan
X = bilangan yang hanya diambil carry-nya
Y = bilangan biner keluaran (hasil dari perkalian biner).

2.1 Program 1
Program 1 merupakan rancangan pengali pertama yang telah dilakukan, program ini telah memperoleh
hasil pada simulasi sama dengan hasil bila menghitung secara manual menggunakan kalkulator. Tetapi
program ini masih perlu diperbaiki dikarenakan terlalu banyak penggunaan slice, maupun kecepatan
yang belum optimal. Berikut adalah uraian dari program 1.
2.1.1

B3 = Cos (2 x 0.3925)
= 0.707

Dengan multiplier 0.707, maka untuk menghasilkan nilai tersebut dalam bilangan binernya dapat ditentukan
sebagai berikut :
0.707 dikali dengan 1024 (karena untuk mendapatkan nilai sebesar 10 bit)
Maka 0.707 x 1024 = 723.96 dibulatkan menjadi 724.
72410 = 10110101002
Karena bilangan positif dan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
14

0010110101000

,maka :
Tabel 1.16 Mode Operasi Dan Record Digit Multiplaier B 3

MODE OPERASI RECORD DIGIT


0
000
+1
010
+1
010
-1
110
-1
101
+1
001
Record digit digunakan kode operasi yang dilakukan untuk melakukan perkalian dengan metode algoritmna
booth.
Rancangan perkalian 16 titik :
Tabel 1.17

A8

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A7

A6

A5

A4

A3

A2

A1

A0

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CA3

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB2

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD6

CD5

CD4

CD3

CD2

CD1

CD0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

CA2

CA1

CA0

A1

A0

X6

X5

X4

X3

X2

X1

X0

Operation

Bit record

000

010

+1

010

+1

110

-1

101

-1

001

+1

Penyederhanaan rancangan perkalian diatas menjadi :


Tabel 1.18
BARIS

KOLOM

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

A8

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

CA1

CA0

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

CA3

A7

A6

A5

A4

A3

A2

A1

A0

CA5

CB0

CA2

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CB2

CA4

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CC0

CB1

CC1

X9

X8

X7

X6

X5

X4

CC8

CC7

CC6

CC5

CC4

CC3

CC2

10

CD6

CD5

CD4

CD3

CD2

CD1

CD0

11

FB7

FB6

FB5

FB4

FB3

FB2

FB1

FB0

12

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

A1

A0

X3

X2

X1

X0

15

Keterangan :
= FA( Full adder A)

= Output (X9 - X0)

= FB( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai keluaran.
Berikut program untuk pengali B3 = Cos 2t :
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity B3_2 is
port ( A : std_logic_vector (8 downto 0);
Y : out std_logic_vector (7 downto 0));
end B3_2;
architecture Behavioral of B3_2 is
signal CA : std_logic_vector (13 downto 0);
signal CB : std_logic_vector (10 downto 0);
signal CC : std_logic_vector (8 downto 0);
signal CD : std_logic_vector (6 downto 0);
signal B : std_logic_vector (8 downto 0);
signal FA : std_logic_vector (8 downto 0);
signal FB : std_logic_vector (7 downto 0);
signal CFB : std_logic_vector (6 downto 0);
signal CFA : std_logic_vector (8 downto 0);
begin
B (8 downto 0) <= not (A);
FA( 4 DOWNTO 0) <= (A(8 DOWNTO 4) XOR A(6 DOWNTO 2) XOR B(4 DOWNTO 0));
CFA(4 DOWNTO 0) <= (A(8 DOWNTO 4) AND A(6 DOWNTO 2)) OR (A(8 DOWNTO 4) AND B(4 DOWNTO 0)) OR
(A(6 DOWNTO 2) AND B(4 DOWNTO 0));
FA(8 DOWNTO 5) <= (B(8 DOWNTO 5) XOR B(6 DOWNTO 3) XOR A(4 DOWNTO 1));
CFA(8 DOWNTO 5) <= (B(8 DOWNTO 5) AND B(6 DOWNTO 3)) OR (B(8 DOWNTO 5) AND A(4 DOWNTO 1)) OR
(B(6 DOWNTO 3) AND A(4 DOWNTO 1));
FB(7 DOWNTO 0) <= (CA(13 DOWNTO 6) XOR CB(10 DOWNTO 3) XOR CC(8 DOWNTO 1));
CFB(6 DOWNTO 0) <= (CA(12 DOWNTO 6) AND CB(9 DOWNTO 3)) OR (CA(12 DOWNTO 6) AND CC(7 DOWNTO
1)) OR (CB(9 DOWNTO 3) AND CC(7 DOWNTO 1));
CA(0) <= '0';
CA(1) <= (A(2) AND A(0)) OR (A(2) AND CA(0)) OR (A(0) AND CA(0));
CA(2) <= (A(3) AND A(1)) OR (A(3) AND CA(1)) OR (A(1) AND CA(1));
CA(3) <= CFA(0);
CB(0) <= (FA(0) AND '1') OR (FA(0) AND CA(2)) OR ('1' AND CA(2));
CA(4) <= CFA(1);
CB(1) <= (FA(1) AND CA(3)) OR (FA(1) AND CB(0)) OR (CA(3) AND CB(0));
CA(5) <= CFA(2);
CB(2) <= (B(0) AND '1') OR (B(0) AND CA(4)) OR ('1' AND CA(4));
CC(0) <= (FA(2) AND (B(0) XOR '1' XOR CA(4))) OR (FA(2) AND CB(1)) OR ((B(0) XOR '1' XOR CA(4)) AND CB(1));
CA(7 DOWNTO 6) <= CFA(4 DOWNTO 3);
CB(3) <= (B(1) AND CA(5)) OR (B(1) AND CB(2)) OR (CA(5) AND CB(2));

16

CC(1) <= (FA(3) AND (B(1) XOR CA(5) XOR CB(2))) OR (FA(3) AND CC(0)) OR ((B(1) XOR CA(5) XOR CB(2))
AND CC(0));
CB(10 DOWNTO 4) <= CFB(6 DOWNTO 0);
CC(2) <= (B(2) AND A(0));
CD(0) <= (FA(4) AND FB(0)) OR (FA(4) AND (B(2) XOR A(0))) OR (FB(0) AND (B(2) XOR A(0)));
CA(11 DOWNTO 8) <= CFA(8 DOWNTO 5);
CC(3) <= (A(8) AND A(7)) OR (A(8) AND CD(0)) OR (A(7) AND CD(0));
CD(1) <= (FA(5) AND FB(1)) OR (FA(5) AND (A(8) XOR A(7) XOR CD(0))) OR (FB(1) AND (A(8) XOR A(7) XOR
CD(0)));
CC(4) <= (A(8) AND A(8)) OR (A(8) AND CD(1)) OR (A(8) AND CD(1));
CD(2) <= (FA(6) AND FB(2)) OR (FA(6) AND (A(8) XOR A(8) XOR CD(1))) OR (FB(2) AND (A(8) XOR A(8) XOR
CD(1)));
CC(5) <= (A(8) AND A(8)) OR (A(8) AND CD(2)) OR (A(8) AND CD(2));
CD(3) <= (FA(7) AND FB(3)) OR (FA(7) AND (A(8) XOR A(8) XOR CD(2))) OR (FB(3) AND (A(8) XOR A(8) XOR
CD(2)));
CC(6) <= (A(8) AND A(8)) OR (A(8) AND CD(3)) OR (A(8) AND CD(3));
CD(4) <= (FA(8) AND FB(4)) OR (FA(8) AND (A(8) XOR A(8) XOR CD(3))) OR (FB(4) AND (A(8) XOR A(8) XOR
CD(3)));
CA(12)<= (B(8) AND B(7)) OR (B(8) AND A(5)) OR (B(7) AND A(5));
CC(7) <= (A(8) AND A(8)) OR (A(8) AND CD(4)) OR (A(8) AND CD(4));
CD(5) <= ((B(8) XOR B(7) XOR A(5)) AND FB(5)) OR ((B(8) XOR B(7) XOR A(5)) AND (A(8) XOR A(8) XOR CD(4)))
OR (FB(5) AND (A(8) XOR A(8) XOR CD(4)));
CA(13)<= (B(8) AND B(8)) OR (B(8) AND A(6)) OR (B(8) AND A(6));
CC(8) <= (A(8) AND A(8)) OR (A(8) AND CD(5)) OR (A(8) AND CD(5));
CD(6) <= ((B(8) XOR B(8) XOR A(6)) AND FB(6)) OR ((B(8) XOR B(8) XOR A(6)) AND (A(8) XOR A(8) XOR CD(5)))
OR (FB(6) AND (A(8) XOR A(8) XOR CD(5)));
Y(0) <= (FA(4) XOR FB(0) XOR (B(2) XOR A(0)));
Y(1) <= (FA(5) XOR FB(1) XOR (A(8) XOR A(7) XOR CD(0)));
Y(2) <= (FA(6) XOR FB(2) XOR (A(8) XOR A(8) XOR CD(1)));
Y(3) <= (FA(7) XOR FB(3) XOR (A(8) XOR A(8) XOR CD(2)));
Y(4) <= (FA(8) XOR FB(4) XOR (A(8) XOR A(8) XOR CD(3)));
Y(5) <= ((B(8) XOR B(7) XOR A(5)) XOR FB(5) XOR (A(8) XOR A(8) XOR CD(4)));
Y(6) <= ((B(8) XOR B(8) XOR A(6)) XOR FB(6) XOR (A(8) XOR A(8) XOR CD(5)));
Y(7) <= ((B(8) XOR B(8) XOR A(7)) XOR FB(7) XOR (A(8) XOR A(8) XOR CD(6)));
end Behavioral;

2.1.2

B7 = cos (3 x 0.3925)
= 0.383

Dengan multiplier 0.383, maka untuk menghasilkan nilai tersebut dalambilangan binernya dapat ditentukan
sebagai berikut :
0.383 dikalidengan 1024 (karena untuk mendapatkan nilai sebesar 10 bit)
Maka 0.383 x 1024 = 392.4 dibulatkanmenjadi 392.
39210 = 1100010002
Karena bilangan positif dan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
01100010000 , maka :

17

Tabel 1.19 Mode Operasi Dan Record Digit Multiplaier B 7


MODE OPERASI RECORD DIGIT
0
000
-2
100
+1
001
-2
100
+2
011
Rancangan perkalian 16 titik :
Tabel 1.20
0

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

Operation

Bit record

000

100

-2

001

+1

100

-2

+2
CA3

CA2

CA1

CA0

X7

X6

X5

X4

X3

X2

X1

X0

Rancangan perkalian diatas disederhanakan menjadi :


Tabel 1.21
BARIS

KOLOM

FA13

FA12

FA11

FA10

FA9

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

CA2

CA1

CA0

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA4

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CB0

CA3

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

FB2

FB1

FB0

Y1

Y0

X9

X8

X7

X6

X5

X4

9
10

Y7

Y6

Y5

Y4

Y3

Y2

X3

X2

X1

X0

Keterangan :
= FA ( Full adder A)

= Output (X9 - X0)

= FB ( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai keluaran.
Berikut program untuk pengali B7 = Cos 3t :
18

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity W11 is
Port ( A : in STD_LOGIC_VECTOR (8 DOWNTO 0);
Y : out STD_LOGIC_VECTOR(7 downto 0));
end W11;
architecture Behavioral of W11 is
SIGNAL CA : STD_LOGIC_VECTOR (13 DOWNTO 0) ;
SIGNAL CB : STD_LOGIC_VECTOR (9 DOWNTO 0) ;
SIGNAL CC : STD_LOGIC_VECTOR (7 DOWNTO 0) ;
SIGNAL FA : STD_LOGIC_VECTOR (10 DOWNTO 0);
SIGNAL FB : STD_LOGIC_VECTOR (2 DOWNTO 0);
SIGNAL B : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
begin
B (8 DOWNTO 0) <= NOT (A (8 DOWNTO 0));
CA(0) <= B(0) AND '1';
CA(3 DOWNTO 1) <= (B(3 DOWNTO 1) AND A(2 DOWNTO 0)) OR (B(3 DOWNTO 1) AND CA(2 DOWNTO 0)) OR
(A(2 DOWNTO 0) AND CA(2 DOWNTO 0));
FA(4 DOWNTO 0) <= (B(8 DOWNTO 4) XOR A(7 DOWNTO 3) XOR B(4 DOWNTO 0));
FA(8 DOWNTO 5) <= (B(8 DOWNTO 5) XOR A(6 DOWNTO 3) XOR CA(11 DOWNTO 8));
FA(10 DOWNTO 9) <= (A(8 DOWNTO 7) XOR CA(13 DOWNTO 12) XOR CB(9 DOWNTO 8));
CA(8 DOWNTO 4) <= (B(8 DOWNTO 4) AND A(7 DOWNTO 3)) OR (B(8 DOWNTO 4) AND B(4 DOWNTO 0)) OR
(A(7 DOWNTO 3) AND B(4 DOWNTO 0));
CA(12 DOWNTO 9) <= (B(8 DOWNTO 5) AND A(6 DOWNTO 3)) OR (B(8 DOWNTO 5) AND CA(11 DOWNTO 8))
OR (A(6 DOWNTO 3) AND CA(11 DOWNTO 8));
CA(13) <= (A(7) AND CA(12)) OR (A(7) AND CB(8)) OR (CA(12) AND CB(8));
CB(0) <= (FA(0) AND '1') OR (FA(0) AND CA(3)) OR ('1' AND CA(3));
CB(1) <= (FA(1) AND CA(4)) OR (FA(1) AND CB(0)) OR (CA(4) AND CB(0));
FB(2 DOWNTO 0) <= (A(2 DOWNTO 0) XOR CA(7 DOWNTO 5) XOR CB(3 DOWNTO 1));
CB(4 DOWNTO 2) <= (A(2 DOWNTO 0) AND CA(7 DOWNTO 5)) OR (A(2 DOWNTO 0) AND CB(3 DOWNTO 1)) OR
(CA(7 DOWNTO 5) AND CB(3 DOWNTO 1));
CB(5) <= (B(8) AND A(8)) OR (B(8) AND CB(4)) OR (A(8) AND CB(4));
CB(6) <= (B(8) AND A(8)) OR (B(8) AND CB(5)) OR (A(8) AND CB(5));
CB(7) <= (B(8) AND A(8)) OR (B(8) AND CB(6)) OR (A(8) AND CB(6));
CB(8) <= (B(8) AND A(8)) OR (B(8) AND CB(7)) OR (A(8) AND CB(7));
CB(9) <= (B(8) AND A(8)) OR (B(8) AND B(8)) OR (A(8) AND B(8));
CC(0) <= FA(2) AND FB(0);
CC(2 DOWNTO 1) <= (FA(4 DOWNTO 3) AND FB(2 DOWNTO 1)) OR (FA(4 DOWNTO 3) AND CC(1 DOWNTO 0))
OR (FB(2 DOWNTO 1) AND CC(1 DOWNTO 0));
CC(3) <= ((B(8) XOR A(8) XOR CB(4)) AND FA(5)) OR ((B(8) XOR A(8) XOR CB(4)) AND CC(2)) OR (FA(5) AND
CC(2));
CC(4) <= ((B(8) XOR A(8) XOR CB(5)) AND FA(6)) OR ((B(8) XOR A(8) XOR CB(5)) AND CC(3)) OR (FA(6) AND
CC(3));
CC(5) <= ((B(8) XOR A(8) XOR CB(6)) AND FA(7)) OR ((B(8) XOR A(8) XOR CB(6)) AND CC(4)) OR (FA(7) AND
CC(4));
CC(6) <= ((B(8) XOR A(8) XOR CB(7)) AND FA(8)) OR ((B(8) XOR A(8) XOR CB(7)) AND CC(5)) OR (FA(8) AND
CC(5));
CC(7) <= ((B(8) XOR A(8) XOR B(8)) AND FA(9)) OR ((B(8) XOR A(8) XOR B(8)) AND CC(6)) OR (FA(9) AND
CC(6));

19

Y(0) <= FA(3) XOR FB(1) XOR CC(0);


Y(1) <= FA(4) XOR FB(2) XOR CC(1);
Y(2) <= FA(5) XOR ( B(8) XOR A(8) XOR CB(4)) XOR CC(2);
Y(3) <= FA(6) XOR ( B(8) XOR A(8) XOR CB(5)) XOR CC(3);
Y(4) <= FA(7) XOR ( B(8) XOR A(8) XOR CB(6)) XOR CC(4);
Y(5) <= FA(8) XOR ( B(8) XOR A(8) XOR CB(7)) XOR CC(5);
Y(6) <= (B(8) XOR A(8) XOR B(8)) XOR FA(9) XOR CC(6);
Y(7) <= (B(8) XOR A(8) XOR B(8)) XOR FA(10) XOR CC(7);
end Behavioral;

2.1.3

B8 = Cos (0.3925) + Cos (3 x 0.3925)


= 1.307

Dengan multiplier 1.307, maka untuk menghasilkan nilai tersebut dalam bilangan binernya dapat ditentukan
sebagai berikut :
1.307 dikalidengan 1024 (karena untuk mendapatkan nilai sebesar 10 bit)
Maka 1.307 x 1024 = 1338.36 dibulatkan menjadi 1338
133810 = 101001110102
Karena bilangan positifdan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
0101001110100 , maka :
Tabel 1.22 Mode Operasi Dan Record Digit Multiplaier B 8
MODE OPERASI RECORD DIGIT
-2
100
-1
101
0
111
+1
001
+1
010
+1
010

20

Rancangan pengali 16 titik :


Tabel 1.23

B8
0
B8
0
0
A8
A8
A7
CA15
CB14
CC8
CD6
Y7

B8
0
B8
0
0
A8
A8
A6
CA14
CB13
CC7
CD5
Y6

B8
0
B8
0
0
A8
A7
A5
CA13
CB12
CC6
CD4
Y5

B8
0
B8
0
0
A8
A6
A4
CA12
CB11
CC5
CD3
Y4

B8
0
B8
0
0
A7
A5
A3
CA11
CB10
CC4
CD2
Y3

B8
0
B8
0
0
A6
A4
A2
CA10
CB9
CC3
CD1
Y2

B8
0
B8
0
0
A5
A3
A1
CA9
CB8
CC2
CD0
Y1

B8
0
B8
0
0
A4
A2
A0
CA8
CB7
CC1

B8
0
B7
0
0
A3
A1

B7
0
B6
0
0
A2
A0

B6
0
B5
0
0
A1

B5
0
B4
0
0
A0

B4
0
B3
0
0

B3
0
B2
0
0

B2
0
B1
0

B1
0
B0
1

B0
1

CA7
CB6
CC0

CA6
CB5

CA5
CB4

CA4
CB3

CA3
CB2

CA2
CB1

CA1
CB0

CA0

Y0

X9

X8

X7

X6

X5

X4

X3

X2

X1

X0

Operation
100

Bit record
-2

101

-1

111
001
010
010

0
+1
+1
+1

Rancangan perkalian diatas disederhanakan menjadi :


Tabel 1.24
BARIS

KOLOM

FA14

FA13

FA12

FA11

FA10

FA9

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA3

CA2

CA1

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA5

CA4

CB2

CB1

CB0

CA0

A7

A6

A5

A4

A3

A2

A1

A0

CA7

CA6

CB4

CB3

CA15

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CB6

CB5

CB14

CB13

CB12

CB11

CB10

CB9

CB8

CB7

CC0

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

10

CD6

CD5

CD4

CD3

CD2

CD1

CD0

FB5

FB4

FB3

FB2

FB1

FB0

Y4

Y3

Y2

Y1

Y0

X9

X7

X6

X5

X4

X3

X2

11
12

Y7

Y6

Y5

X8

X1

X0

Keterangan :
= FA ( Full adder A)

= Output (X9 - X0)

= FB ( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai keluaran.
Berikut program untuk pengali B8 = cos (0.3925)+cos (3 x 0.3925):
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;

21

entity W10 is
Port ( A : in STD_LOGIC_VECTOR (8 DOWNTO 0);
Y : out STD_LOGIC_VECTOR(7 downto 0));
end W10;
architecture Behavioral of W10 is
SIGNAL CA : STD_LOGIC_VECTOR (15 DOWNTO 0) ;
SIGNAL CB : STD_LOGIC_VECTOR (14 DOWNTO 0) ;
SIGNAL CC : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
SIGNAL CD : STD_LOGIC_VECTOR (6 DOWNTO 0) ;
SIGNAL FA : STD_LOGIC_VECTOR (14 DOWNTO 0);
SIGNAL FB : STD_LOGIC_VECTOR (8 DOWNTO 0);
SIGNAL B : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
begin
B (8 DOWNTO 0) <= NOT (A (8 DOWNTO 0));
CA(0) <= B(0) AND '1';
CA(1) <= (B(1) AND B(0)) OR (B(1) AND '1') OR (B(0) AND '1');
CB(0) <= CA(1) AND CA(0);
CA(4 DOWNTO 2) <= (B(4 DOWNTO 2) AND B(3 DOWNTO 1)) OR (B(4 DOWNTO 2) AND CA(3 DOWNTO 1))
OR (B(3 DOWNTO 1) AND CA(3 DOWNTO 1));
FA(2 DOWNTO 0) <= B(4 DOWNTO 2) XOR B(3 DOWNTO 1) XOR CA(3 DOWNTO 1);
CB(3 DOWNTO 1) <= FA(2 DOWNTO 0) AND CB(2 DOWNTO 0);
FA(6 DOWNTO 3) <= (B(8 DOWNTO 5) XOR B(7 DOWNTO 4) XOR A(3 DOWNTO 0));
CA(8 DOWNTO 5) <= (B(8 DOWNTO 5) AND B(7 DOWNTO 4)) OR (B(8 DOWNTO 5) AND A(3 DOWNTO 0))
OR (B(7 DOWNTO 4) AND A(3 DOWNTO 0));
CB(5 DOWNTO 4) <= (FA(4 DOWNTO 3) AND CA(5 DOWNTO 4)) OR (FA(4 DOWNTO 3) AND CB(4 DOWNTO
3)) OR (CA(5 DOWNTO 4) AND CB(4 DOWNTO 3));
CB(6) <= (A(0) AND CA(6)) OR (A(0) AND CB(5)) OR (CA(6) AND CB(5));
CC(0) <= FA(5) AND (A(0) XOR CA(6) XOR CB(5));
FB(5 DOWNTO 0) <= CA(12 DOWNTO 7) XOR CB(11 DOWNTO 6) XOR CC(5 DOWNTO 0);
CB(12 DOWNTO 7) <= (CA(12 DOWNTO 7) AND CB(11 DOWNTO 6)) OR (CA(12 DOWNTO 7) AND CC(5
DOWNTO 0)) OR (CB(11 DOWNTO 6) AND CC(5 DOWNTO 0));
CC(1) <= (FA(6) AND FB(0)) OR (FA(6) AND A(1)) OR (FB(0) AND A(1));
CC(2) <= B(8) AND B(8);
CD(0) <= ((B(8) XOR B(8)) AND FA(7)) OR ((B(8) XOR B(8)) AND FB(1)) OR (FA(7) AND FB(1));
CC(3) <= (B(8) AND B(8)) OR (B(8) AND CD(0)) OR (B(8) AND CD(0));
CD(1) <= ((B(8) XOR B(8) XOR CD(0)) AND FA(8)) OR ((B(8) XOR B(8) XOR CD(0)) AND FB(2)) OR (FA(8) AND
FB(2));
CC(4) <= (B(8) AND B(8)) OR (B(8) AND CD(1)) OR (B(8) AND CD(1));
CD(2) <= ((B(8) XOR B(8) XOR CD(1)) AND FA(9)) OR ((B(8) XOR B(8) XOR CD(1)) AND FB(3)) OR (FA(9) AND
FB(3));
CC(5) <=(B(8) AND B(8)) OR (B(8) AND CD(2)) OR (B(8) AND CD(2));
CD(3) <= ((B(8) XOR B(8) XOR CD(2)) AND FA(10)) OR ((B(8) XOR B(8) XOR CD(2)) AND FB(4)) OR (FA(10)
AND FB(4));
CC(6) <=(B(8) AND B(8)) OR (B(8) AND CD(3)) OR (B(8) AND CD(3));
CD(4) <= ((B(8) XOR B(8) XOR CD(3)) AND FA(11)) OR ((B(8) XOR B(8) XOR CD(3)) AND FB(5)) OR (FA(11)
AND FB(5));
FA(11 DOWNTO 7) <= (A(8 DOWNTO 4) XOR A(6 DOWNTO 2) XOR A(4 DOWNTO 0));
CA(13 DOWNTO 9) <= (A(8 DOWNTO 4) AND A(6 DOWNTO 2)) OR ( A(8 DOWNTO 4) AND A(4 DOWNTO 0))
OR (A(6 DOWNTO 2) AND A(4 DOWNTO 0));
FB(6) <= B(8) XOR A(8) XOR B(8);
FB(7) <= FB(6);
FB(8) <= FB(6);
FA(14 DOWNTO 12) <= A(7 DOWNTO 5) XOR (CA(15 DOWNTO 13)) XOR CB(14 DOWNTO 12);
CA(15 DOWNTO 14 ) <= (A(6 DOWNTO 5) AND CA(14 DOWNTO 13)) OR (A(6 DOWNTO 5) AND CB(13
DOWNTO 12)) OR (CA(14 DOWNTO 13) AND CB(13 DOWNTO 12));
CB(13) <= (B(8) AND B(8)) OR (B(8) AND A(8)) OR (B(8) AND A(8));
CB(14) <= CB(13);

22

CC(7) <= (A(7) AND CC(6)) OR (A(7) AND CD(4)) OR (CC(6) AND CD(4));
CC(8) <= (A(8) AND CC(7)) OR (A(8) AND CD(5)) OR (CC(7) AND CD(5));
CD(5) <= (FB(6) AND FA(12)) OR (FB(6) AND (A(7) XOR CC(6) XOR CD(4))) OR (FA(12) AND (A(7) XOR CC(6)
XOR CD(4)));
CD(6) <= (FB(7) AND FA(13)) OR (FB(7) AND (A(8) XOR CC(7) XOR CD(5))) OR (FA(13) AND (A(8) XOR CC(7)
XOR CD(5)));
Y(0) <= FA(7) XOR FB(1) XOR (B(8) XOR B(8));
Y(1) <= FA(8) XOR FB(2) XOR (B(8) XOR B(8) XOR CD(0));
Y(2) <= FA(9) XOR FB(3) XOR (B(8) XOR B(8) XOR CD(1));
Y(3) <= FA(10) XOR FB(4) XOR (B(8) XOR B(8) XOR CD(2));
Y(4) <= FA(11) XOR FB(5) XOR (B(8) XOR B(8) XOR CD(3));
Y(5) <= FB(6) XOR FA(12) XOR (A(7) XOR CD(4) XOR CC(6));
Y(6) <= FB(7) XOR FA(13) XOR (A(8) XOR CD(5) XOR CC(7));
Y(7) <= FB(8) XOR FA(14) XOR (A(8) XOR CD(6) XOR CC(8));
end Behavioral;

2.1.4

B9 = - Cos (0.3925) + Cos (3 x 0.3925)


= -0,540

Dengan multiplier -0.540, maka untuk menghasilkan nilai tersebut dalam bilangan binernya dapat
ditentukan sebagai berikut :
-0.540 dikalidengan 1024 (karena untuk mendapatkan nilai sebesar 10 bit)
Maka -0.540 x 1024 = -552.96 dibulatkan menjadi -553
-55310 =101110101112
Karena bilangan negatif dan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
1101110101110 , maka :
Tabel 1.25 Mode Operasi Dan Record Digit Multiplaier B 9
MODE OPERASI RECORD DIGIT
-1
110
+2
011
+1
010
-1
110
+2
011
-1
110

23

Rancangan pengali 16 titik :


Tabel 1.26
B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A7

A6

A5

A4

A3

A2

A1

A0

B7

B6

B5

B4

B3

B2

B1

B0

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CB12

CB11

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC10

CC9

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD7

CD6

CD5

CD4

CD3

CD2

CD1

CD0

CE6

CE5

CE4

CE3

CE2

CE1

CE0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

X9

X8

X7

X6

X5

Y0

CA3

CA2

CA1

CA0

X4

X3

X2

X1

Operation

Bit record

110

-1

011

+2

010

+1

110

-1

011

+2

110

-1

X0

Rancangan diatas disederhanakan menjadi :


Tabel 1.27
BARIS

KOLOM

FA10

FA9

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA1

CA0

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA2

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

CA4

CA3

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA7

CA6

CB0

B7

B6

B5

B4

B3

B2

B1

B0

CA8

CB3

CB2

CA5

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CB4

CC1

CC0

CB1

CB12

CB11

CB10

CB9

CB8

CB7

CB6

CA9

CC2

10

CC10

CC9

CC8

CC7

CC6

CC5

CC4

CB5

11

CD7

CD6

CD5

CD4

CD3

CD2

CD1

CC3

12

CE6

CE5

CE4

CE3

CE2

CE1

CE0

CD0

13

FB10

FB9

FB8

FB7

FB6

FB5

FB4

FB3

FB2

FB1

FB0

14

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

X2

X1

X0

X6

X5

X4

X3

Keterangan :
= FA ( Full adder A)

= Output (X9 - X0)

= FB ( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai keluaran.
Berikut program untuk pengali B9=- cos (0.3925)+cos (3 x 0.3925):
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating

24

---- any Xilinx primitives in this code.


--library UNISIM;
--use UNISIM.VComponents.all;
entity B9_2 is
port ( A : std_logic_vector (8 downto 0);
Y : out std_logic_vector (7 downto 0));
end B9_2;
architecture Behavioral of B9_2 is
signal CA : std_logic_vector (16 downto 0);
signal CB : std_logic_vector (12 downto 0);
signal CC : std_logic_vector (10 downto 0);
signal CD : std_logic_vector (7 downto 0);
signal CE : std_logic_vector (6 downto 0);
signal B : std_logic_vector (8 downto 0);
signal FA : std_logic_vector (10 downto 0);
signal FB : std_logic_vector (10 downto 0);
signal CFB : std_logic_vector (9 downto 0);
signal CFA : std_logic_vector (10 downto 0);
begin
B (8 downto 0) <= not (A);
FA(4 DOWNTO 0) <= (B(8 DOWNTO 4) XOR A(5 DOWNTO 1) XOR A(4 DOWNTO 0));
CFA(4 DOWNTO 0) <= (B(8 DOWNTO 4) AND A(5 DOWNTO 1)) OR (B(8 DOWNTO 4) AND A(4 DOWNTO 0)) OR
(A(5 DOWNTO 1) AND A(4 DOWNTO 0));
FA(7 DOWNTO 5) <= (A(8 DOWNTO 6) XOR A(7 DOWNTO 5) XOR B(5 DOWNTO 3));
CFA(7 DOWNTO 5) <= (A(8 DOWNTO 6) AND A(7 DOWNTO 5)) OR (A(8 DOWNTO 6) AND B(5 DOWNTO 3)) OR
(A(7 DOWNTO 5) AND B(5 DOWNTO 3));
FA(10 DOWNTO 8) <= (B(8 DOWNTO 6) XOR A(5 DOWNTO 3) XOR B(4 DOWNTO 2));
CFA(10 DOWNTO 8)<= (B(8 DOWNTO 6) AND A(5 DOWNTO 3)) OR (B(8 DOWNTO 6) AND B(4 DOWNTO 2)) OR
(A(5 DOWNTO 3) AND B(4 DOWNTO 2));
FB(10 DOWNTO 0) <= (CA(16 DOWNTO 6) XOR CB(12 DOWNTO 2) XOR CC(10 DOWNTO 0));
CFB(9 DOWNTO 0) <= (CA(15 DOWNTO 6) AND CB(11 DOWNTO 2)) OR (CA(15 DOWNTO 6) AND CC(9
DOWNTO 0)) OR (CB(11 DOWNTO 2) AND CC(9 DOWNTO 0));
CA(0) <= (B(0) AND '1');
CA(1) <= (B(1) AND CA(0));
CA(2) <= (B(2) AND CA(1));
CA(3) <= (B(3) AND A(0)) OR (B(3) AND CA(2)) OR (A(0) AND CA(2));
CA(4) <= CFA(0);
CB(0) <= (FA(0) AND CA(3));
CA(5) <= CFA(1);
CB(1) <= (FA(1) AND CA(4)) OR (FA(1) AND CB(0)) OR (CA(4) AND CB(0));
CA(14 DOWNTO 6) <= CFA(10 DOWNTO 2);
CB(2) <= (B(0) AND '1') OR (B(0) AND CA(5)) OR ('1' AND CA(5));
CB(12 DOWNTO 3) <= CFB(9 DOWNTO 0);
CC(0) <= (FA(2) AND (B(0) XOR '1' XOR CA(5))) OR (FA(2) AND CB(1)) OR ((B(0) XOR '1' XOR CA(5)) AND CB(1));
CC(1) <= (FA(3) AND FB(0)) OR (FA(3) AND B(1)) OR (FB(0) AND B(1));
CC(2) <= (FA(4) AND FB(1)) OR (FA(4) AND B(2)) OR (FB(1) AND B(2));
CC(3) <= (B(8) AND A(0));
CD(0) <= (FA(5) AND FB(2)) OR (FA(5) AND (B(8) XOR A(0))) OR (FB(2)AND (B(8) XOR A(0)));
CC(4) <= (B(8) AND A(1)) OR (B(8) AND B(0)) OR (A(1) AND B(0));
CD(1) <= ((B(8) XOR A(1) XOR B(0)) AND '1') OR ((B(8) XOR A(1) XOR B(0)) AND CD(0)) OR ('1' AND CD(0));
CE(0) <= (FA(6) AND FB(3)) OR (FA(6) AND ((B(8) XOR A(1) XOR B(0)) XOR ('1' XOR CD(0)))) OR (FB(3) AND
((B(8) XOR A(1) XOR B(0)) XOR ('1' XOR CD(0))));
CC(5) <= (B(8) AND A(2)) OR (B(8) AND B(1)) OR (A(2) AND B(1));

25

CD(2) <= ((B(8) XOR A(2) XOR B(1)) AND CD(1)) OR ((B(8) XOR A(2) XOR B(1)) AND CE(0)) OR (CD(1) AND
CE(0));
CE(1) <= (FA(7) AND FB(4)) OR (FA(7) AND ((B(8) XOR A(2) XOR B(1)) XOR (CD(1) XOR CE(0)))) OR (FB(4) AND
((B(8) XOR A(2) XOR B(1)) XOR (CD(1) XOR CE(0))));
CC(6) <= (B(8) AND A(8)) OR (B(8) AND A(8)) OR (A(8) AND A(8));
CD(3) <= ((B(8) XOR A(8) XOR A(8)) AND CD(2)) OR ((B(8) XOR A(8) XOR A(8)) AND CE(1)) OR (CD(2) AND
CE(1));
CE(2) <= (FA(8) AND FB(5)) OR (FA(8) AND ((B(8) XOR A(8) XOR A(8)) XOR (CD(2)XOR CE(1)))) OR (FB(5) AND
((B(8) XOR A(8) XOR A(8)) XOR (CD(2)XOR CE(1))));
CC(7) <= (B(8) AND A(8)) OR (B(8) AND A(8)) OR (A(8) AND A(8));
CD(4) <= ((B(8) XOR A(8) XOR A(8)) AND CD(3)) OR ((B(8) XOR A(8) XOR A(8)) AND CE(2)) OR (CD(3) AND
CE(2));
CE(3) <= (FA(9) AND FB(6)) OR (FA(9) AND ((B(8) XOR A(8) XOR A(8)) XOR (CD(3) XOR CE(2)))) OR (FB(6) AND
((B(8) XOR A(8) XOR A(8)) XOR (CD(3) XOR CE(2))));
CC(8) <= (B(8) AND A(8)) OR (B(8) AND A(8)) OR (A(8) AND A(8));
CD(5) <= ((B(8) XOR A(8) XOR A(8)) AND CD(4)) OR ((B(8) XOR A(8) XOR A(8)) AND CE(3)) OR (CD(4) AND
CE(3));
CE(4) <= (FA(10) AND FB(7)) OR (FA(10) AND ((B(8) XOR A(8) XOR A(8)) XOR (CD(4) XOR CE(3)))) OR (FB(7)
AND ((B(8) XOR A(8) XOR A(8)) XOR (CD(4) XOR CE(3))));
CA(15)<= (B(8) AND A(6)) OR (B(8) AND B(5)) OR (A(6) AND B(5));
CC(9) <= (B(8) AND A(8)) OR (B(8) AND A(8)) OR (A(8) AND A(8));
CD(6) <= ((B(8) XOR A(8) XOR A(8)) AND CD(5)) OR ((B(8) XOR A(8) XOR A(8)) AND CE(4)) OR (CD(5) AND
CE(4));
CE(5) <= ((B(8) XOR A(6) XOR B(5)) AND FB(8)) OR ((B(8) XOR A(6) XOR B(5)) AND ((B(8) XOR A(8) XOR
A(8))XOR (CD(5)XOR CE(4)))) OR (FB(8) AND ((B(8) XOR A(8) XOR A(8))XOR (CD(5)XOR CE(4))));
CA(16)<= (B(8) AND A(7)) OR (B(8) AND B(6)) OR (A(7) AND B(6));
CC(10)<= (B(8) AND A(8)) OR (B(8) AND A(8)) OR (A(8) AND A(8));
CD(7) <= ((B(8) XOR A(8) XOR A(8)) AND CD(6)) OR ((B(8) XOR A(8) XOR A(8)) AND CE(5)) OR (CD(6) AND
CE(5));
CE(6) <= ((B(8) XOR A(7) XOR B(6)) AND FB(9)) OR ((B(8) XOR A(7) XOR B(6)) AND ((B(8) XOR A(8) XOR A(8))
XOR (CD(6)XOR CE(5)))) OR (FB(9) AND ((B(8) XOR A(8) XOR A(8)) XOR (CD(6)XOR CE(5))));
Y(0) <= (FA(6) XOR FB(3) XOR (B(8) XOR A(1) XOR B(0)) XOR ('1' XOR CD(0)));
Y(1) <= (FA(7) XOR FB(4) XOR (B(8) XOR A(2) XOR B(1)) XOR (CD(1) XOR CE(0)));
Y(2) <= (FA(8) XOR FB(5) XOR (B(8) XOR A(8) XOR A(8)) XOR (CD(2) XOR CE(1)));
Y(3) <= (FA(9) XOR FB(6) XOR (B(8) XOR A(8) XOR A(8)) XOR (CD(3) XOR CE(2)));
Y(4) <= (FA(10) XOR FB(7) XOR (B(8) XOR A(8) XOR A(8)) XOR (CD(4) XOR CE(3)));
Y(5) <= ((B(8) XOR A(6) XOR B(5)) XOR FB(8) XOR (B(8) XOR A(8) XOR A(8)) XOR (CD(5) XOR CE(4)));
Y(6) <= ((B(8) XOR A(7) XOR B(6)) XOR FB(9) XOR (B(8) XOR A(8) XOR A(8)) XOR (CD(6) XOR CE(5)));
Y(7) <= ((B(8) XOR A(8) XOR B(7)) XOR FB(10) XOR (B(8) XOR A(8) XOR A(8)) XOR (CD(7) XOR CE(6)));
end Behavioral;

2.1.5

B13 = B14 = - sin 2


= - 706

Dengan multiplier -0.540, maka untuk menghasilkan nilai tersebut dalam bilangan binernya dapat
ditentukan sebagai berikut :
-0.540 dikalidengan 1024 (karena untuk mendapatkan nilaisebesar 10 bit)
Maka -0.540 x 1024 = - 722.94 dibulatkan menjadi -723
-72310 =101001011012
Karena bilangan negatif dan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
26

1101001011010 , maka :
Tabel 1.28 Mode Operasi Dan Record Digit Multiplaier B13
MODE OPERASI RECORD DIGIT
+1
010
-1
110
-1
101
+1
001
+1
010
-1
110
Rancangan pengali 16 titik :
Tabel 1.29
A8

A8

A8

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B7

B6

B5

B4

B3

B2

B1

B0

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CA3

CA2

CB12

CB11

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC10

CC9

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD8

CD7

CD6

CD5

CD4

CD3

CD2

CD1

CD0

CE6

CE5

CE4

CE3

CE2

CE1

CE0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

X6

CA1

CA0

X5

X4

X3

X2

A1

A0

X1

Operation

Bit record

010

+1

110

-1

101

-1

001

+1

010

+1

110

-1

X0

Rancangan diatas disederhanakan menjadi :


Tabel 1.30
BARIS

KOLOM

FA13

FA12

FA11

FA10

FA9

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

A8

A8

A8

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

CA0

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA2

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA4

CA3

CB0

CA1

B7

B6

B5

B4

B3

B2

B1

B0

CA6

CA5

CB2

CB1

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CB4

CB3

CC0

CB12

CB11

CB10

CB9

CB8

CB7

CB6

CA7

CC2

CC1

10

CC10

CC9

CC8

CC7

CC6

CC5

CC4

CB5

CD0

11

CD8

CD7

CD6

CD5

CD4

CD3

CD2

CC3

12

CE6

CE5

CE4

CE3

CE2

CE1

CE0

CD1

13

FA10

FA9

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

14

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

X5

X4

X3

X2

X6

A1

A0

X1

X0

27

Keterangan :
= FA ( Full adder A)

= Output (X9 - X0)

= FB ( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai keluaran.
Berikut program untuk pengali B13 = B 14= - sin 2:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity W12 is
Port ( A : in STD_LOGIC_VECTOR (8 DOWNTO 0);
Y : out STD_LOGIC_VECTOR(7 downto 0));
end W12;
architecture Behavioral of W12 is
SIGNAL CA : STD_LOGIC_VECTOR (14 DOWNTO 0) ;
SIGNAL CB : STD_LOGIC_VECTOR (12 DOWNTO 0) ;
SIGNAL CC : STD_LOGIC_VECTOR (10 DOWNTO 0) ;
SIGNAL CD : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
SIGNAL CE : STD_LOGIC_VECTOR (6 DOWNTO 0) ;
SIGNAL FA : STD_LOGIC_VECTOR (13 DOWNTO 0);
SIGNAL CFA :STD_LOGIC_VECTOR (12 DOWNTO 0);
SIGNAL FB : STD_LOGIC_VECTOR (10 DOWNTO 0);
SIGNAL CFB: STD_LOGIC_VECTOR (9 DOWNTO 0);
SIGNAL B : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
begin
B (8 DOWNTO 0) <= NOT (A (8 DOWNTO 0));
CA(0) <= (A(2) AND B(0)) OR (A(2) AND '1') OR (B(0) AND '1');
CA(1) <= (A(3) AND CA(0)) OR (A(3) AND B(1)) OR (CA(0) AND B(1));
FA(4 DOWNTO 0) <= A(8 DOWNTO 4) XOR B(6 DOWNTO 2) XOR B(4 DOWNTO 0);
FA(8 DOWNTO 5) <= B(8 DOWNTO 5) XOR A(6 DOWNTO 3) XOR A(4 DOWNTO 1);
FA(12 DOWNTO 9) <= A(8 DOWNTO 5) XOR B(6 DOWNTO 3) XOR CA(13 DOWNTO 10);
FA(13) <= B(7) XOR CA(14) XOR CB(12);
CFA(4 DOWNTO 0) <= (A(8 DOWNTO 4) AND B(6 DOWNTO 2)) OR (A(8 DOWNTO 4) AND B(4 DOWNTO 0))
OR (B(6 DOWNTO 2) AND B(4 DOWNTO 0));
CFA(8 DOWNTO 5) <= (B(8 DOWNTO 5) AND A(6 DOWNTO 3)) OR (B(8 DOWNTO 5) AND A(4 DOWNTO 1))
OR (A(6 DOWNTO 3) AND A(4 DOWNTO 1));
CFA(12 DOWNTO 9) <= (A(8 DOWNTO 5) AND B(6 DOWNTO 3)) OR (A(8 DOWNTO 5) AND CA(13 DOWNTO
10)) OR (B(6 DOWNTO 3) AND CA(13 DOWNTO 10));
FB(5 DOWNTO 0) <= CA(9 DOWNTO 4) XOR CB(7 DOWNTO 2) XOR CC(5 DOWNTO 0);
CFB(5 DOWNTO 0) <= (CA(9 DOWNTO 4) AND CB(7 DOWNTO 2)) OR (CA(9 DOWNTO 4) AND CC(5
DOWNTO 0)) OR (CB(7 DOWNTO 2) AND CC(5 DOWNTO 0));
FB(9 DOWNTO 6) <= CB(11 DOWNTO 8) XOR CC(9 DOWNTO 6) XOR CD(7 DOWNTO 4);
CFB(9 DOWNTO 6) <= (CB(11 DOWNTO 8) AND CC(9 DOWNTO 6)) OR (CB(11 DOWNTO 8) AND CD(7
DOWNTO 4)) OR (CC(9 DOWNTO 6) AND CD(7 DOWNTO 4));
FB(10) <= CC(10) XOR CD(8) XOR CE(6);
CA(6 DOWNTO 2) <= CFA(4 DOWNTO 0);
CA(10 DOWNTO 7) <= CFA(8 DOWNTO 5);
CA(14 DOWNTO 11) <= CFA(12 DOWNTO 9);

28

CB(8 DOWNTO 3) <= CFB(5 DOWNTO 0);


CB(12 DOWNTO 9) <= CFB(9 DOWNTO 6);
CB(0) <= (FA(0) AND '1') OR (FA(0) AND CA(1)) OR ('1' AND CA(1));
CB(1) <= (FA(1) AND CA(2)) OR (FA(1) AND CB(0)) OR (CA(2) AND CB(0));
CB(2) <= (A(0) AND CA(3)) OR (A(0) AND CB(1)) OR (CA(3) AND CB(1));
CC(0) <= (FA(2) AND (A(0) XOR CA(3) XOR CB(1)));
CC(1) <= (FA(3) AND FB(0)) OR (FA(3) AND A(1)) OR (FB(0) AND A(1));
CC(2) <= (A(2) AND A(0));
CC(3) <= (A(8) AND B(7)) OR (A(8) AND CD(0)) OR (B(7) AND CD(0));
CC(4) <= (A(8) AND B(8)) OR (A(8) AND B(0)) OR (B(8) AND B(0));
CC(5) <= (A(8) AND B(8)) OR (A(8) AND B(1)) OR (B(8) AND B(1));
CC(6) <= (A(8) AND B(8)) OR (A(8) AND B(2)) OR (B(8) AND B(2));
CC(7) <= (A(8) AND B(8)) OR (A(8) AND B(8)) OR (B(8) AND B(8));
CC(8) <= CC(7);
CC(9) <= CC(7);
CC(10) <= CC(7);
CD(0) <= (FA(4) AND FB(1)) OR (FA(4) AND (A(2) XOR A(0))) OR (FB(1) AND (A(2) XOR A(0)));
CD(1) <= (FA(5) AND FB(2)) OR (FA(5) AND (A(8) XOR B(7) XOR CD(0))) OR (FB(2) AND (A(8) XOR B(7) XOR
CD(0)));
CD(2) <= ((A(8) XOR B(8) XOR B(0)) AND '1') OR ((A(8) XOR B(8) XOR B(0)) AND CD(1)) OR ('1' AND CD(1));
CD(3) <= ((A(8) XOR B(8) XOR B(1)) AND CD(2)) OR ((A(8) XOR B(8) XOR B(1)) AND CE(0)) OR (CD(2) AND
CE(0));
CD(4) <= ((A(8) XOR B(8) XOR B(2)) AND CD(3)) OR ((A(8) XOR B(8) XOR B(2)) AND CE(1)) OR (CD(3) AND
CE(1));
CD(5) <= ((A(8) XOR B(8) XOR B(8)) AND A(7)) OR ((A(8) XOR B(8) XOR B(8)) AND CE(2)) OR (A(7) AND
CE(2));
CD(6) <= ((A(8) XOR B(8) XOR B(8)) AND A(8)) OR ((A(8) XOR B(8) XOR B(8)) AND CE(3)) OR (A(8) AND
CE(3));
CD(7) <= ((A(8) XOR B(8) XOR B(8)) AND A(8)) OR ((A(8) XOR B(8) XOR B(8)) AND CE(4)) OR (A(8) AND
CE(4));
CD(8) <= ((A(8) XOR B(8) XOR B(8)) AND A(8)) OR ((A(8) XOR B(8) XOR B(8)) AND CE(5)) OR (A(8) AND
CE(5));
CE(0) <= (FA(6) AND FB(3)) OR (FA(6) AND ((A(8) XOR B(8) XOR B(0)) XOR ('1' XOR CD(1)))) OR (FB(3) AND
((A(8) XOR B(8) XOR B(0)) XOR ('1' XOR CD(1))));
CE(1) <= (FA(7) AND FB(4)) OR (FA(7) AND ((A(8) XOR B(8) XOR B(1)) XOR (CD(2) XOR CE(0)))) OR (FB(4)
AND ((A(8) XOR B(8) XOR B(1)) XOR (CD(2) XOR CE(0))));
CE(2) <= (FA(8) AND FB(5)) OR (FA(8) AND ((A(8) XOR B(8) XOR B(2)) XOR (CD(3) XOR CE(1)))) OR (FB(5)
AND ((A(8) XOR B(8) XOR B(2)) XOR (CD(3) XOR CE(1))));
CE(3) <= (FA(9) AND FB(6)) OR (FA(9) AND ((A(8) XOR B(8) XOR B(8)) XOR (A(7) XOR CE(2)))) OR (FB(6)
AND ((A(8) XOR B(8) XOR B(8)) XOR (A(7) XOR CE(2))));
CE(4) <= (FA(10) AND FB(7)) OR (FA(10) AND ((A(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(3)))) OR (FB(7)
AND ((A(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(3))));
CE(5) <= (FA(11) AND FB(8)) OR (FA(11) AND ((A(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(4)))) OR (FB(8)
AND ((A(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(4))));
CE(6) <= (FA(12) AND FB(9)) OR (FA(12) AND ((A(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(5)))) OR (FB(9)
AND ((A(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(5))));
Y(0) <= FA(6) XOR FB(3) XOR ((A(8) XOR B(8) XOR B(0)) XOR '1' XOR CD(1));
Y(1) <= FA(7) XOR FB(4) XOR ((A(8) XOR B(8) XOR B(1)) XOR CD(2) XOR CE(0));
Y(2) <= FA(8) XOR FB(5) XOR ((A(8) XOR B(8) XOR B(2)) XOR CD(3) XOR CE(1));
Y(3) <= FA(9) XOR FB(6) XOR ((A(8) XOR B(8) XOR B(8)) XOR A(7) XOR CE(2));
Y(4) <= FA(10) XOR FB(7) XOR ((A(8) XOR B(8) XOR B(8)) XOR A(8) XOR CE(3));
Y(5) <= FA(11) XOR FB(8) XOR ((A(8) XOR B(8) XOR B(8)) XOR A(8) XOR CE(4));
Y(6) <= FA(12) XOR FB(9) XOR ((A(8) XOR B(8) XOR B(8)) XOR A(8) XOR CE(5));
Y(7) <= FA(13) XOR FB(10) XOR ((A(8) XOR B(8) XOR B(8)) XOR A(8) XOR A(8));
end Behavioral;

29

2.1.6 B15 = - sin 3


= - 0.923
Dengan multiplier -0.923, maka untuk menghasilkan nilai tersebut dalam bilangan binernya dapat
ditentukan sebagai berikut :
-0.923 dikali dengan 1024 (karena untuk mendapatkannilai sebesar 10 bit)
Maka -0.923 x 1024 = - 945.15 dibulatkan menjadi -945
-94510 =100010011112
Karena bilangan negatif dan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
1100010011110 , maka :

Tabel 1.31 Mode Operasi Dan Record Digit Multiplaier B15


MODE OPERASI RECORD DIGIT
-1
110
0
111
+1
001
+1
010
0
000
-1
110
Rancangan pengali 16 titik :
Tabel 1.32
B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B7

B6

B5

B4

B3

B2

B1

B0

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC6

CC5

CC4

CC3

CC2

CC1

CC0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

CA5

CA4

CA3

CA2

CA1

CA0

X6

X5

X4

X3

X2

X1

Operation

Bit record

110

-1

111

001

+1

010

+1

000

110

-1

X0

30

Rancangan diatas disederhanakan menjadi :


Tabel 1.33
Baris

Kolom

FA13

FA12

FA11

FA10

FA9

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA2

CA1

CA0

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA4

CA3

B7

B6

B5

B4

B3

B2

B1

B0

CA8

CA7

CA6

CA5

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CB2

CB1

CB0

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CA9

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CB3

FB1

FB0

Y2

Y1

X9

X8

X7

X5

X4

X3

X2

X1

X0

9
10

Y7

Y6

Y5

Y4

Y3

Y0

X6

Keterangan :
= FA ( Full adder A)

= Output (X9 - X0)

= FB ( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai keluaran.
Berikut program untuk pengali B15 = - sin 3 :
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity W9 is
Port ( A : in STD_LOGIC_VECTOR (8 DOWNTO 0);
Y : out STD_LOGIC_VECTOR(7 downto 0));
end W9;
--B15
architecture Behavioral of W9 is
SIGNAL CA : STD_LOGIC_VECTOR (16 DOWNTO 0) ;
SIGNAL CB : STD_LOGIC_VECTOR (10 DOWNTO 0) ;
SIGNAL CC : STD_LOGIC_VECTOR (6 DOWNTO 0) ;
SIGNAL FA : STD_LOGIC_VECTOR (11 DOWNTO 0);
SIGNAL FB : STD_LOGIC_VECTOR (1 DOWNTO 0);
SIGNAL B : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
begin
B (8 DOWNTO 0) <= NOT (A (8 DOWNTO 0));
CA(0) <= B(0) AND '1';
CA(3 DOWNTO 1) <= B(3 DOWNTO 1) AND CA(2 DOWNTO 0);
CA(5 DOWNTO 4) <= (B(5 DOWNTO 4) AND A(1 DOWNTO 0)) OR (B(5 DOWNTO 4) AND CA(4 DOWNTO 3))
OR (A(1 DOWNTO 0) AND CA(4 DOWNTO 3));
FA(2 DOWNTO 0) <= (B(8 DOWNTO 6) XOR A(4 DOWNTO 2) XOR A(2 DOWNTO 0));
CA(8 DOWNTO 6) <= (B(8 DOWNTO 6) AND A(4 DOWNTO 2)) OR (B(8 DOWNTO 6) AND A(2 DOWNTO 0))
OR (A(4 DOWNTO 2) AND A(2 DOWNTO 0));

31

CB(0) <= FA(0) AND CA(5);


CB(2 DOWNTO 1) <= (FA(2 DOWNTO 1) AND CA(7 DOWNTO 6)) OR (FA(2 DOWNTO 1) AND CB(1 DOWNTO
0)) OR (CA(7 DOWNTO 6) AND CB(1 DOWNTO 0));
FA(3)<= A(5) XOR A(3) XOR CA(8);
CA(9) <= (A(5) AND A(3)) OR (A(5) AND CA(8)) OR (A(3) AND CA(8));
CB(3) <= (FA(3) AND B(8)) OR ( FA(3) AND CB(2)) OR (B(8) AND CB(2));
CB(4) <= (B(8) AND '1') OR (B(8) AND CA(9)) OR ('1' AND CA(9));
CC(0) <= (FA(4) AND (B(8) XOR '1' XOR CA(9))) OR (FA(4) AND CB(3)) OR ((B(8) XOR '1' XOR CA(9)) AND
CB(3));
FA(6 DOWNTO 4) <= (A(8 DOWNTO 6) XOR A(6 DOWNTO 4) XOR B(2 DOWNTO 0));
CA(12 DOWNTO 10) <= (A(8 DOWNTO 6) AND A(6 DOWNTO 4)) OR (A(8 DOWNTO 6) AND B(2 DOWNTO 0))
OR (A(6 DOWNTO 4) AND B(2 DOWNTO 0));
FB (1 DOWNTO 0) <= (CA(11 DOWNTO 10) XOR CB(5 DOWNTO 4) XOR CC(1 DOWNTO 0));
CB(6 DOWNTO 5) <= (CA(11 DOWNTO 10) AND CB(5 DOWNTO 4)) OR (CA(11 DOWNTO 10) AND CC(1
DOWNTO 0)) OR ( CB(5 DOWNTO 4) AND CC(1 DOWNTO 0));
CC(1) <= (FA(5) AND FB(0)) OR (FA(5) AND B(8)) OR (FB(0) AND B(8));
CC(2) <= (FA(6) AND FB(1)) OR (FA(6) AND B(8)) OR (FB(1) AND B(8));
CA(14 DOWNTO 13) <= (A(8 DOWNTO 7) AND B(4 DOWNTO 3)) OR (A(8 DOWNTO 7) AND CA(13 DOWNTO
12)) OR (B(4 DOWNTO 3) AND CA(13 DOWNTO 12));
CB(7) <= (B(8) AND A(8)) OR (B(8) AND CB(6)) OR ( A(8) AND CB(6));
CC(3) <= (FA(7) AND (B(8) XOR A(8) XOR CB(6))) OR ( FA(7) AND CC(2)) OR ((B(8) XOR A(8) XOR CB(6))
AND CC(2));
CB(8) <= (B(8) AND A(8)) OR (B(8) AND CB(7)) OR ( A(8) AND CB(7));
CC(4) <= (FA(8) AND (B(8) XOR A(8) XOR CB(7))) OR ( FA(8) AND CC(3)) OR ((B(8) XOR A(8) XOR CB(7))
AND CC(3));
CA(16 DOWNTO 15) <= (B(6 DOWNTO 5) AND CA(15 DOWNTO 14)) OR (B(6 DOWNTO 5) AND CB(9
DOWNTO 8)) OR (CA(15 DOWNTO 14) AND CB(9 DOWNTO 8));
CB(9) <= (B(8) AND A(8)) OR (B(8) AND A(8)) OR (A(8) AND A(8));
CB(10) <= CB(9);
CC(5) <= (FA(9) AND (B(8) XOR A(8) XOR A(8))) OR ( FA(9) AND CC(4)) OR ((B(8) XOR A(8) XOR A(8)) AND
CC(4));
CC(6) <= (FA(10) AND (B(8) XOR A(8) XOR A(8))) OR ( FA(10) AND CC(4)) OR ((B(8) XOR A(8) XOR A(8)) AND
CC(5));
FA(8 DOWNTO 7) <= A(8 DOWNTO 7) XOR B(4 DOWNTO 3) XOR CA(13 DOWNTO 12);
FA(11 DOWNTO 9) <= B(7 DOWNTO 5) XOR CA(16 DOWNTO 14) XOR CB(10 DOWNTO 8);
Y(0) <= FA(4) XOR(B(8) XOR '1' XOR CA(9)) XOR CB(3);
Y(1) <= FA(5) XOR FB(0) XOR B(8);
Y(2) <= FA(6) XOR FB(1) XOR B(8);
Y(3) <= FA(7) XOR (B(8) XOR A(8) XOR CB(6)) XOR CC(2);
Y(4) <= FA(8) XOR (B(8) XOR A(8) XOR CB(7)) XOR (CC(3));
Y(5) <= FA(9) XOR (B(8) XOR A(8) XOR A(8)) XOR CC(4);
Y(6) <= FA(10) XOR (B(8) XOR A(8) XOR A(8)) XOR CC(5);
Y(7) <= FA(11) XOR (B(8) XOR A(8) XOR A(8)) XOR CC(6);
end Behavioral;

2.1.7

B16 = - Sin (0.3925) + Sin (3 x 0.3925)


= 0.541

Dengan multiplier 0.541, maka untuk menghasilkan nilai tersebut dalam bilangan binernya dapat
ditentukan sebagai berikut :
0.541 dikali dengan 1024 (karena untuk mendapatkan nilai sebesar 10 bit)
Maka 0.541 x 1024 = 553.98 dibulatkan menjadi 554
55410 =10001010102
32

Karena bilangan negatif dan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
0010001010100 , maka :
Tabel 1.34 Mode Operasi Dan Record Digit Multiplaier B16
MODE OPERASI RECORD DIGIT
-2
100
-1
101
-1
101
+1
001
-2
100
+1
001
Rancangan pengali 16 titik :
Tabel 1.35
B8
0
B8
0
B8
0
A8
B8
0
A7
CA15
CB14
CC11
CD7
CE6
Y7

B8
0
B8
0
B8
0
A8
B7
0
A6
CA14
CB13
CC10
CD6
CE5
Y6

B8
0
B8
0
B8
0
A8
B6
0
A5
CA13
CB12
CC9
CD5
CE4
Y5

B8
0
B8
0
B8
0
A8
B5
0
A4
CA12
CB11
CC8
CD4
CE3
Y4

B8
0
B8
0
B8
0
A7
B4
0
A3
CA11
CB10
CC8
CD3
CE2
Y3

B8
0
B8
0
B8
0
A6
B3
0
A2
CA10
CB9
CC7
CD2
CE1
Y2

B8
0
B8
0
B7
0
A5
B2
0
A1
CA9
CB8
CC6
CD1
CE0
Y1

B8
0
B8
0
B6
0
A4
B1
0
A0
CA8
CB7
CC5
CD0

B8
0
B7
0
B5
0
A3
B0
1

B7
0
B6
0
B4
0
A2
0

B6
0
B5
0
B3
0
A1

B5
0
B4
0
B2
0
A0

B4
0
B3
0
B1
0

B3
0
B2
0
B0
1

B2
0
B1
0

B1
0
B0
1

CA7
CB6
CC4

CA6
CB5
CC3

CA5
CB4
CC2

CA4
CB3
CC1

CA3
CB2
CC0

CA2
CB1

CA1
CB0

CA0

Y0

X9

X8

X7

X6

X5

X4

X3

X2

B0
1

X1

Operation
100

Bit record
-2

101

-1

101

-1

010
100

+1
-2

010

+1

X0

Rancangan diatas disederhanakan menjadi :


Tabel 1.36
BARIS
1
2
3
4
5
6
7
8
9
10
11
12
13
14

KOLOM
FA5

FA13

FA12

FA11

FA10

FA9

FA8

FA7

FA6

FA4

FA3

FA2

FA1

FA0

B8
B8
B8
A8
B8
A7
CA15
CB14
CC12
CD7
CE6
FB12

B8
B8
B8
A8
B7
A6
CA14
CB13
CC11
CD6
CE5
FB11

B8
B8
B8
A8
B6
A5
CA13
CB12
CC10
CD5
CE4
FB10

B8
B8
B8
A8
B5
A4
CA12
CB11
CC9
CD4
CE3
FB9

B8
B8
B8
A7
B4
A3
CA11
CB10
CC8
CD3
CE2
FB8

B8
B8
B8
A6
B3
A2
CA10
CB9
CC7
CD2
CE1
FB7

B8
B8
B7
A5
B2
A1
CA9
CB8
CC6
CD1
CE0
FB6

B8
B8
B6
A4
B1
A0
CA8
CB7
CC5
CD0

B8
B7
B5
A3
B0
1
CA7
CB6
CC4

B7
B6
B4
A2
CA6
CB5
CC3

B6
B5
B3
A1
CA5
CB4
CC2

B5
B4
B2
A0
CA4
CB3
CC1

B4
B3
B1
CA3
CB2
CC0

B3
B2
B0
1
CA2
CB1

B2
B1
CA1
CB0

B1
B0
1
CA0

B0
1

FB5

FB4

FB3

FB2

FB1

FB0

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

X4

X3

X2

X1

X0

33

Keterangan :
= FA ( Full adder A)

= Output (X9 - X0)

= FB ( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai keluaran.
Berikut program untuk pengali B16 = - Sin (0.3925) + Sin (3 x 0.3925):
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity B16_1 is
port ( A : std_logic_vector (8 downto 0);
Y : out std_logic_vector (7 downto 0));
end B16_1;
architecture Behavioral of B16_1 is
signal CA : std_logic_vector (15 downto 0);
signal CB : std_logic_vector (14 downto 0);
signal CC : std_logic_vector (12 downto 0);
signal CD : std_logic_vector (7 downto 0);
signal CE : std_logic_vector (6 downto 0);
signal B : std_logic_vector (8 downto 0);
signal FA : std_logic_vector (13 downto 0);
signal FB : std_logic_vector (12 downto 0);
signal CFB : std_logic_vector (11 downto 0);
signal CFA : std_logic_vector (12 downto 0);
begin
B (8 downto 0) <= not (A);
CA(0) <= B(0) AND '1';
CA(1) <= (B(1) AND B(0)) OR (B(1) AND '1') OR (B(0) AND '1');
CB(0) <= ((B(1) XOR B(0) XOR '1') AND CA(0));
CA(2) <= (B(2) AND B(1)) OR (B(2) AND CA(1)) OR (B(1) AND CA(1));
CB(1) <= ((B(2) XOR B(1) XOR CA(1)) AND CB(0));
CB(2) <= ('1' AND CA(2)) OR ('1' AND CB(1)) OR (CA(2) AND CB(1));
CC(0) <= (FA(0)) AND ('1' XOR CA(2) XOR CB(1));
CC(1) <= (FA(1) AND FB(0));
CC(2) <= (FA(2) AND FB(1)) OR (FA(2) AND A(0)) OR (FB(1) AND A(0));
CC(3) <= (FA(3) AND FB(2)) OR (FA(3) AND A(1)) OR (FB(2) AND A(1));
CC(4) <= (FA(4) AND FB(3)) OR (FA(4) AND A(2)) OR (FB(3) AND A(2));
CC(5) <= (A(3) AND B(0)) OR (A(3) AND '1') OR (B(0) AND '1');
CD(0) <= (FA(5) AND FB(4)) OR (FA(5) AND (A(3) XOR B(0) XOR '1')) OR (FB(4) AND (A(3) XOR B(0) XOR '1'));
CC(6) <= (B(8) AND B(8)) OR (B(8) AND A(0)) OR (B(8) AND A(0));
CD(1) <= ((B(8) XOR B(8) XOR A(0)) AND CD(0));
CE(0) <= (FA(6) AND FB(5)) OR (FA(6) AND ((B(8) XOR B(8) XOR A(0)) XOR CD(0))) OR (FB(5) AND ((B(8) XOR
B(8) XOR A(0)) XOR CD(0)));
CC(7) <= (B(8) AND B(8)) OR (B(8) AND A(1)) OR (B(8) AND A(1));
CD(2) <= ((B(8) XOR B(8) XOR A(1)) AND CD(1)) OR ((B(8) XOR B(8) XOR A(1)) AND CE(0)) OR (CD(1) AND
CE(0));
CE(1) <= (FA(7) AND FB(6)) OR (FA(7) AND ((B(8) XOR B(8) XOR A(1)) XOR (CD(1) XOR CE(0)))) OR (FB(6) AND
((B(8) XOR B(8) XOR A(1)) XOR (CD(1) XOR CE(0))));
CC(8) <= (B(8) AND B(8)) OR (B(8) AND A(2)) OR (B(8) AND A(2));

34

CD(3) <= ((B(8) XOR B(8) XOR A(2)) AND CD(2)) OR ((B(8) XOR B(8) XOR A(2)) AND CE(1)) OR (CD(2) AND
CE(1));
CE(2) <= (FA(8) AND FB(7)) OR (FA(8) AND ((B(8) XOR B(8) XOR A(2)) XOR (CD(2) XOR CE(1)))) OR (FB(7) AND
((B(8) XOR B(8) XOR A(2)) XOR (CD(2) XOR CE(1))));
CC(9) <= (B(8) AND B(8)) OR (B(8) AND B(8)) OR (B(8) AND B(8));
CD(4) <= ((B(8) XOR B(8) XOR B(8)) AND A(7)) OR ((B(8) XOR B(8) XOR B(8)) AND CE(2)) OR (A(7) AND CE(2));
CE(3) <= (FA(9) AND FB(8)) OR (FA(9) AND ((B(8) XOR B(8) XOR B(8)) XOR (A(7) XOR CE(2)))) OR (FB(8) AND
((B(8) XOR B(8) XOR B(8)) XOR (A(7) XOR CE(2))));
CC(10) <= (B(8) AND B(8)) OR (B(8) AND B(8)) OR (B(8) AND B(8));
CD(5) <= ((B(8) XOR B(8) XOR B(8)) AND A(8)) OR ((B(8) XOR B(8) XOR B(8)) AND CE(3)) OR (A(8) AND CE(3));
CE(4) <= (FA(10) AND FB(9)) OR (FA(10) AND ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(3)))) OR (FB(9) AND
((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(3))));
CC(11) <= (B(8) AND B(8)) OR (B(8) AND B(8)) OR (B(8) AND B(8));
CD(6) <= ((B(8) XOR B(8) XOR B(8)) AND A(8)) OR ((B(8) XOR B(8) XOR B(8)) AND CE(4)) OR (A(8) AND CE(4));
CE(5) <= (FA(11) AND FB(10)) OR (FA(11) AND ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(4)))) OR (FB(10)
AND ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(4))));
CC(12) <= (B(8) AND B(8)) OR (B(8) AND B(8)) OR (B(8) AND B(8));
CD(7) <= ((B(8) XOR B(8) XOR B(8)) AND A(8)) OR ((B(8) XOR B(8) XOR B(8)) AND CE(5)) OR (A(8) AND CE(5));
CE(6) <= (FA(12) AND FB(11)) OR (FA(12) AND ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(5)))) OR (FB(11)
AND ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(5))));
FA(5 DOWNTO 0) <= (B(8 DOWNTO 3) XOR B(7 DOWNTO 2) XOR B(5 DOWNTO 0));
CFA(5 DOWNTO 0) <= (B(8 DOWNTO 3) AND B(7 DOWNTO 2)) OR (B(8 DOWNTO 3) AND B(5 DOWNTO 0)) OR
(B(7 DOWNTO 2) AND B(5 DOWNTO 0));
FA(8 DOWNTO 6) <= (B(8 DOWNTO 6) XOR A(6 DOWNTO 4) XOR B(3 DOWNTO 1));
CFA(8 DOWNTO 6) <= (B(8 DOWNTO 6) AND A(6 DOWNTO 4)) OR (B(8 DOWNTO 6) AND B(3 DOWNTO 1)) OR
(A(6 DOWNTO 4) AND B(3 DOWNTO 1));
FA(13 DOWNTO 9) <= (B(8 DOWNTO 4) XOR A(7 DOWNTO 3) XOR CA(15 DOWNTO 11));
CFA(12 DOWNTO 9)<= (B(7 DOWNTO 4) AND A(6 DOWNTO 3)) OR (B(7 DOWNTO 4) AND CA(14 DOWNTO 11))
OR (A(6 DOWNTO 3) AND CA(14 DOWNTO 11));
FB(7 DOWNTO 0) <= (CA(10 DOWNTO 3) XOR CB(9 DOWNTO 2) XOR CC(7 DOWNTO 0));
CFB(7 DOWNTO 0) <= (CA(10 DOWNTO 3) AND CB(9 DOWNTO 2)) OR (CA(10 DOWNTO 3) AND CC(7 DOWNTO
0)) OR (CB(9 DOWNTO 2) AND CC(7 DOWNTO 0));
FB(12 DOWNTO 8) <= (CB(14 DOWNTO 10) XOR CC(12 DOWNTO 8) XOR CD(7 DOWNTO 3));
CFB(11 DOWNTO 8) <= (CB(13 DOWNTO 10) AND CC(11 DOWNTO 8)) OR (CB(13 DOWNTO 10) AND CD(6
DOWNTO 3)) OR (CC(11 DOWNTO 8) AND CD(6 DOWNTO 3));
CA(11 DOWNTO 3) <= CFA (8 DOWNTO 0);
CB(10 DOWNTO 3) <= CFB (7 DOWNTO 0);
CA(15 DOWNTO 12) <= CFA (12 DOWNTO 9);
CB(14 DOWNTO 11) <= (CFB(11 DOWNTO 8));
Y(0) <= (FA(6) XOR FB(5)) XOR ((B(8) XOR B(8) XOR A(0)) XOR CD(0));
Y(1) <= (FA(7) XOR FB(6)) XOR ((B(8) XOR B(8) XOR A(1)) XOR (CD(1) XOR CE(0)));
Y(2) <= (FA(8) XOR FB(7)) XOR ((B(8) XOR B(8) XOR A(2)) XOR (CD(2) XOR CE(1)));
Y(3) <= (FA(9) XOR FB(8)) XOR ((B(8) XOR B(8) XOR B(8)) XOR (A(7) XOR CE(2)));
Y(4) <= (FA(10) XOR FB(9)) XOR ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(3)));
Y(5) <= (FA(11) XOR FB(10)) XOR ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(4)));
Y(6) <= (FA(12) XOR FB(11)) XOR ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(5)));
Y(7) <= (FA(13) XOR FB(12)) XOR ((B(8) XOR B(8) XOR B(8)) XOR (A(8) XOR CE(6)));
end Behavioral;

2.1.8

B17 = - sin (0.3925) - sin (3 x 0.3925)


= -1.306

Dengan multiplier -1.306, maka untuk menghasilkan nilai tersebut dalam bilangan binernya dapat
ditentukan sebagai berikut :
-1.306 dikali dengan 1024 (karena untuk mendapatkan nilai sebesar 10 bit)

35

Maka -1.306 x 1024 = -1337.34 dibulatkan menjadi -1337


-133710 =1010110001112
Karena bilangan negatif dan agar dapat menentukan nilai mode operasi multiplier ini binernya menjadi :
1010110001110 , maka :
Tabel 1.37 Mode Operasi Dan Record Digit Multiplaier B17
MODE OPERASI RECORD DIGIT
-1
110
+2
011
0
000
-1
110
-1
101
-1
101
Rancangan pengali 16 titik :
Tabel 1.38
B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

B7

B6

B5

B4

B3

B2

B1

B0

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD6

CD5

CD4

CD3

CD2

CD1

CD0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

CA5

CA4

CA3

CA2

CA1

CA0

X6

X5

X4

X3

X2

X1

Operation

Bit record

110

-1

011

+2

000

110

-1

101

-1

101

-1

X0

Rancangan diatas disederhanakan menjadi :


Tabel 1.39
BARIS

KOLOM

FA11

FA10

FA9

FA8

FA7

FA6

FA5

FA4

FA3

FA2

FA1

FA0

B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA1

CA0

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

CA4

CA3

CA2

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

CA6

B7

B6

B5

B4

B3

B2

B1

B0

CA8

CB0

CA5

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CB2

CA7

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CA9

CC0

CB1

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CB3

10

CD6

CD5

CD4

CD3

CD2

CD1

CD0

CC1

11

FB8

FB7

FB6

FB5

FB4

FB3

FB2

FB1

FB0

12

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X7

X6

X5

X4

X3

X2

X1

X0

X8

36

Keterangan :
= FA ( Full adder A)

= Output (X9 - X0)

= FB ( Full adder B)

= Output (Y7 - Y0)

Maka dapat disusun program pada VHDL dengan mencari Carry, Sum yang berupa Y sebagai
keluaran. Berikut program untuk pengali B17 = - sin (0.3925) - sin (3 x 0.3925):
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity W8 is
Port ( A : in STD_LOGIC_VECTOR (8 DOWNTO 0);
Y : out STD_LOGIC_VECTOR(7 downto 0));
end W8;
architecture Behavioral of W8 is
SIGNAL CA : STD_LOGIC_VECTOR (16 DOWNTO 0) ;
SIGNAL CB : STD_LOGIC_VECTOR (10 DOWNTO 0) ;
SIGNAL CC : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
SIGNAL CD : STD_LOGIC_VECTOR (6 DOWNTO 0) ;
SIGNAL FA : STD_LOGIC_VECTOR (10 DOWNTO 0);
SIGNAL CFA : STD_LOGIC_VECTOR (10 DOWNTO 0);
SIGNAL FB : STD_LOGIC_VECTOR (8 DOWNTO 0);
SIGNAL CFB : STD_LOGIC_VECTOR (7 DOWNTO 0);
SIGNAL B : STD_LOGIC_VECTOR (8 DOWNTO 0) ;
begin
B (8 DOWNTO 0) <= NOT (A (8 DOWNTO 0));
CA(0) <= B(0) AND '1';
CA(2 DOWNTO 1) <= B(2 DOWNTO 1) AND CA(1 DOWNTO 0);
CA(5 DOWNTO 3) <= B(5 DOWNTO 3) AND CA(4 DOWNTO 2);
FA(2 DOWNTO 0) <= (B(8 DOWNTO 6) XOR A(5 DOWNTO 3) XOR B(2 DOWNTO 0));
CB(0) <= (FA(0) AND '1') OR (FA(0) AND CA(5)) OR ('1' AND CA(5));
CA(8 DOWNTO 6) <= (B(8 DOWNTO 6) AND A(5 DOWNTO 3)) OR(B(8 DOWNTO 6) AND B(2 DOWNTO 0))
OR(A(5 DOWNTO 3) AND B(2 DOWNTO 0));
CB(1) <= (FA(1) AND CA(6)) OR (FA(1) AND CB(0)) OR (CA(6) AND CB(0));
CB(2) <= (B(0) AND '1') OR (B(0) AND CA(7)) OR ('1' AND CA(7)) ;
CC(0) <= (FA(2) AND (B(0) XOR '1' XOR CA(7))) OR (FA(2) AND CB(1)) OR ((B(0) XOR '1' XOR CA(7)) AND
CB(1));
FA(5 DOWNTO 3) <= (A(8 DOWNTO 6) XOR B(5 DOWNTO 3) XOR B(3 DOWNTO 1));
CFA(5 DOWNTO 3) <= (A(8 DOWNTO 6) AND B(5 DOWNTO 3)) OR (A(8 DOWNTO 6) AND B(3 DOWNTO 1))
OR (B(5 DOWNTO 3) AND B(3 DOWNTO 1));
FA(8 DOWNTO 6) <= (B(8 DOWNTO 6) XOR B(6 DOWNTO 4) XOR B(4 DOWNTO 2));
CFA(8 DOWNTO 6) <= (B(8 DOWNTO 6) AND B(6 DOWNTO 4)) OR (B(8 DOWNTO 6) AND B(4 DOWNTO 2))
OR (B(6 DOWNTO 4) AND B(4 DOWNTO 2));
FA(10 DOWNTO 9)<= (B(8 DOWNTO 7) XOR B(6 DOWNTO 5) XOR CA(15 DOWNTO 14));
CFA(10 DOWNTO 9) <= (B(8 DOWNTO 7) AND B(6 DOWNTO 5)) OR (B(8 DOWNTO 7) AND CA(15 DOWNTO
14)) OR (B(6 DOWNTO 5) AND CA(15 DOWNTO 14));
FB( 2 DOWNTO 0) <= (CA(10 DOWNTO 8) XOR CB(4 DOWNTO 2) XOR CC(2 DOWNTO 0));

37

CFB(2 DOWNTO 0) <= (CA(10 DOWNTO 8) AND CB(4 DOWNTO 2)) OR (CA(10 DOWNTO 8) AND CC(2
DOWNTO 0)) OR (CB(4 DOWNTO 2) AND CC(2 DOWNTO 0));
FB(8 DOWNTO 3) <= (CB(10 DOWNTO 5) XOR CC(8 DOWNTO 3) XOR CD(6 DOWNTO 1));
CFB(7 DOWNTO 3) <= (CB(9 DOWNTO 5) AND CC(7 DOWNTO 3)) OR (CB(9 DOWNTO 5) AND CD(5
DOWNTO 1)) OR (CC(7 DOWNTO 3) AND CD(5 DOWNTO 1));
CA(11 DOWNTO 9) <= CFA(5 DOWNTO 3);
CB(5 DOWNTO 3) <= CFB(2 DOWNTO 0);
CC(1) <= (FA(3) AND FB(0)) OR (FA(3) AND B(8)) OR (FB(0) AND B(8));
CD(0) <= (FA(4) AND FB(1)) OR (FA(4) AND( B(8) XOR B(0) XOR '1')) OR (FB(1) AND(B(8) XOR B(0) XOR '1'));
CC(2) <= (B(8) AND B(0)) OR (B(8) AND '1') OR (B(0) AND '1');
CC(3) <= (B(8) AND B(1)) OR (B(8) AND CD(0)) OR (B(1) AND CD(0));
CD(1) <= (FA(5) AND FB(2)) OR (FA(5) AND (B(8) XOR B(1) XOR CD(0))) OR (FB(2) AND (B(8) XOR B(1) XOR
CD(0)));
CA(14 DOWNTO 12) <= CFA(8 DOWNTO 6);
CA(16 DOWNTO 15) <= CFA(10 DOWNTO 9);
CB(10 DOWNTO 6) <= CFB(7 DOWNTO 3);
CC(4) <= (B(8) AND A(8)) OR (B(8) AND CA(11)) OR (A(8) AND CA(11));
CD(2) <= ((B(8) XOR A(8) XOR CA(11)) AND FA(6)) OR ((B(8) XOR A(8) XOR CA(11)) AND FB(3)) OR (FA(6)
AND FB(3));
CC(5) <=(B(8) AND A(8)) OR (B(8) AND CA(12)) OR (A(8) AND CA(12));
CD(3) <= ((B(8) XOR A(8) XOR CA(12)) AND FA(7)) OR ((B(8) XOR A(8) XOR CA(12)) AND FB(4)) OR (FA(7)
AND FB(4));
CC(6) <= (B(8) AND A(8)) OR (B(8) AND CA(13)) OR (A(8) AND CA(13));
CD(4) <= ((B(8) XOR A(8) XOR CA(13)) AND FA(8)) OR ((B(8) XOR A(8) XOR CA(13)) AND FB(5)) OR (FA(8)
AND FB(5));
CC(7) <= (B(8) AND A(8)) OR (B(8) AND A(8)) OR (B(8) AND B(8)) ;
CD(5) <= ((B(8) XOR A(8) XOR B(8)) AND FA(9)) OR ((B(8) XOR A(8) XOR B(8)) AND FB(6)) OR (FA(9) AND
FB(6));
CC(8) <= CC(7);
CD(6) <= ((B(8) XOR A(8) XOR B(8)) AND FA(10)) OR ((B(8) XOR A(8) XOR B(8)) AND FB(7)) OR (FA(10) AND
FB(7));
Y(0) <= FA(4) XOR FB(1) XOR (B(8) XOR B(0) XOR '1');
Y(1) <= FA(5) XOR FB(2) XOR (B(8) XOR B(1) XOR CD(0));
Y(2) <= FA(6) XOR FB(3) XOR (B(8) XOR A(8) XOR CA(11));
Y(3) <= FA(7) XOR FB(4) XOR (B(8) XOR A(8) XOR CA(12));
Y(4) <= FA(8) XOR FB(5) XOR (B(8) XOR A(8) XOR CA(13));
Y(5) <= FA(9) XOR FB(6) XOR (B(8) XOR A(8) XOR B(8));
Y(6) <= FA(10) XOR FB(7) XOR (B(8) XOR A(8) XOR B(8));
Y(7) <= (B(8) XOR A(8) XOR B(8)) XOR (B(8) XOR B(7) XOR CA(16)) XOR FB(8);
end Behavioral;

38

2.2 Program 2
Program 2 merupakan rancangan pengali kedua yang telah dilakukan, program ini telah
memperoleh hasil pada simulasi sama dengan hasil bila menghitung secara manual menggunakan
kalkulator. Program ini sudah diperbaiki, sehingga dapat mengurangi penggunaan slice serta
kecepatan yang cukup optimal. Berikut adalah uraian untuk rancangan program 2.
2.2.1 Pengali B3
Tabel 1.40
15

14

13

12

11

10

Bar1

A8

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

Bar2

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

Bar3

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

Bar4

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

Bar5

A7

A6

A5

A4

A3

A2

A1

A0

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CA3

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB2

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD6

CD5

CD4

CD3

CD2

CD1

CD0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

CA2

CA1

CA0

A1

A0

X6

X5

X4

X3

X2

X1

X0

Operation

Bit record

000

010

+1

010

+1

110

-1

101

-1

001

+1

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B3
---PENGALI UNTUK B3
BAR1_1(8 DOWNTO 0) <= A(8 DOWNTO 0);
BAR1_1(9) <= A(8) ; BAR1_1(10) <= A(8) ; BAR1_1(11) <= A(8) ; BAR1_1(12) <= A(8) ;
BAR1_1(13) <= A(8) ; BAR1_1(14) <= A(8) ; BAR1_1(15) <= A(8) ;
BAR2_1(1 DOWNTO 0) <= "00";
BAR2_1(10 DOWNTO 2) <= A(8 DOWNTO 0);
BAR2_1(11) <= A(8) ; BAR2_1(12) <= A(8) ; BAR2_1(13) <= A(8) ; BAR2_1(14) <= A(8) ;
BAR2_1(15) <= A(8) ;
BAR3_1(3 DOWNTO 0) <= "0000";
BAR3_1(12 DOWNTO 4) <= B(8 DOWNTO 0);
39

BAR3_1(13) <= B(8) ; BAR3_1(14) <= B(8) ; BAR3_1(15) <= B(8) ;


BAR4_1(5 DOWNTO 0) <= "000000";
BAR4_1(14 DOWNTO 6) <= B(8 DOWNTO 0);
BAR4_1(15) <= B(8);
BAR5_1(7 DOWNTO 0) <= "00000000";
BAR5_1(15 DOWNTO 8) <= A(7 DOWNTO 0);
JUMLAH_BAR_B3 <= BAR1_1 + BAR2_1 + BAR3_1 + BAR4_1 + BAR5_1;
Y_B3(7 DOWNTO 0) <= JUMLAH_BAR_B3(15 DOWNTO 8);
2.2.2 Pengali B7
Tabel 1..41
14

13

12

11

10

Bar1

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

Bar2

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

Bar2

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

Bar2

A8

A7

A6

A5

A4

A3

A2

A1

A0

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CA3

CA2

CA1

CA0

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

X6

X5

X4

X3

X2

X1

X0

Y7

Operation

Bit record

000

100

-2

001

+1

100

-2
+2

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B7.

---PENGALI UNTUK B7
BAR1_2(8 DOWNTO 0) <= B(8 DOWNTO 0);
BAR1_2(9) <= B(8);
BAR1_2(10) <= B(8); BAR1_2(11) <= B(8);
B(8); BAR1_2(13) <= B(8); BAR1_2(14) <= B(8);
BAR2_2(0)<= '0';
BAR2_2(9 DOWNTO 1) <= A(8 DOWNTO 0);
BAR2_2(10) <= A(8) ; BAR2_2(11) <= A(8) ; BAR2_2(12) <= A(8) ;
BAR2_2(14) <= A(8) ;
BAR3_2(3 DOWNTO 0)<= "0000";
BAR3_2(12 DOWNTO 4) <= B(8 DOWNTO 0);
BAR3_2(13) <= B(8) ; BAR3_2(14) <= B(8) ;

BAR1_2(12) <=

BAR2_2(13) <= A(8)

40

BAR4_2(5 DOWNTO 0) <= "000000";


BAR4_2(14 DOWNTO 6) <= A(8 DOWNTO 0);
JUMLAH_BAR_B7 <= BAR1_2 + BAR2_2 + BAR3_2 + BAR4_2 ;
Y_B7(7 DOWNTO 0) <= JUMLAH_BAR_B7(14 DOWNTO 7);
2.2.3 Pengali B8
Tabel 1.42
B8
B8
A8
A8
A7
CA15
CB14
CC8
CD6
Y7

B8
B8
A8
A8
A6
CA14
CB13
CC7
CD5
Y6

B8
B8
A8
A7
A5
CA13
CB12
CC6
CD4
Y5

B8
B8
A8
A6
A4
CA12
CB11
CC5
CD3
Y4

B8
B8
A7
A5
A3
CA11
CB10
CC4
CD2
Y3

B8
B8
A6
A4
A2
CA10
CB9
CC3
CD1
Y2

B8
B8
A5
A3
A1
CA9
CB8
CC2
CD0
Y1

B8
B8
A4
A2
A0
CA8
CB7
CC1

B8
B7
A3
A1

B7
B6
A2
A0

B6
B5
A1

B5
B4
A0

B4
B3

B3
B2

B2
B1

B1
B0

B0

CA7
CB6
CC0

CA6
CB5

CA5
CB4

CA4
CB3

CA3
CB2

CA2
CB1

CA1
CB0

CA0

Y0

X9

X8

X7

X6

X5

X4

X3

X2

X1

X0

Operation
100
101
001
010
010

Bit record
-2
-1
+1
+1
+1

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B8.

;
;

---PENGALI UNTUK B8
BAR1_3(8 DOWNTO 0) <= B(8 DOWNTO 0);
BAR1_3(9) <= B(8) ;
BAR1_3(10) <= B(8) ;
BAR1_3(13) <= B(8) ; BAR1_3(14) <= B(8) ;

BAR1_3(11) <= B(8) ;


BAR1_3(15) <= B(8) ;

BAR2_3(0)<= '0';
BAR2_3(9 DOWNTO 1) <= B(8 DOWNTO 0);
BAR2_3(10)<= B(8) ; BAR2_3(11) <= B(8) ;
BAR2_3(12) <= B(8) ;
BAR2_3(14) <= B(8) ; BAR2_3(15) <= B(8) ; BAR2_3(16) <= B(8) ;
BAR3_3(4 DOWNTO 0) <= "00000";
BAR3_3(13 DOWNTO 5) <= A(8 DOWNTO 0);
BAR3_3(14)<= A(8) ; BAR3_3(15)<= A(8) ; BAR3_3(16)<= A(8) ;

BAR1_3(12) <= B(8)


BAR1_3(16) <= B(8)

BAR2_3(13) <= B(8)

41

BAR4_3(6 DOWNTO 0) <= "0000000";


BAR4_3(15 DOWNTO 7) <= A(8 DOWNTO 0); BAR4_3(16)<= A(8) ;
BAR5_3(8 DOWNTO 0) <= "000000000";
BAR5_3(16 DOWNTO 9) <= A(7 DOWNTO 0);
JUMLAH_BAR_B8 <= BAR1_3 + BAR2_3 + BAR3_3 + BAR4_3 + BAR5_3;
Y_B8(7 DOWNTO 0) <= JUMLAH_BAR_B8(16 DOWNTO 9);
2.2.4 Pengali B9
Table 1.43
17

16

15

14

13

12

11

10

Operation

Bit record

Bar1

B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

Bar2

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

011

+2

Bar3

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

010

+1

Bar4

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

Bar5

A8

A7

A6

A5

A4

A3

A2

A1

A0

011

+2

Bar6

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CB12

CB11

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC10

CC9

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD7

CD6

CD5

CD4

CD3

CD2

CD1

CD0

CE6

CE5

CE4

CE3

CE2

CE1

CE0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

X9

X8

X7

X6

X5

Y0

CA3

CA2

CA1

CA0

X4

X3

X2

X1

X0

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B9.

;
;

---PENGALI UNTUK B9
BAR1_4(8 DOWNTO 0) <= B(8 DOWNTO 0);
BAR1_4(9) <= B(8) ;
BAR1_4(10) <= B(8) ; BAR1_4(11) <= B(8) ;
BAR1_4(13) <= B(8) ; BAR1_4(14) <= B(8) ; BAR1_4(15) <= B(8) ;
BAR1_4(17) <= B(8) ;
BAR2_4(2 DOWNTO 0) <= "000";
BAR2_4(11 DOWNTO 3) <= A(8 DOWNTO 0);

BAR1_4(12) <= B(8)


BAR1_4(16) <= B(8)

42

BAR2_4(12) <= A(8) ; BAR2_4(13) <= A(8) ; BAR2_4(14) <= A(8) ;


BAR2_4(16) <= A(8) ; BAR2_4(17) <= A(8) ;
BAR3_4(3 DOWNTO 0) <= "0000";
BAR3_4(12 DOWNTO 4) <= A(8 DOWNTO 0);
BAR3_4(13) <= A(8) ; BAR3_4(14) <= A(8) ;
BAR3_4(15) <= A(8) ;
BAR3_4(17) <= A(8) ;
BAR4_4(5 DOWNTO 0) <= "000000";
BAR4_4(14 DOWNTO 6) <= B(8 DOWNTO 0);
BAR4_4(15) <= B(8) ; BAR4_4(16) <= B(8) ; BAR4_4(17) <= B(8) ;
BAR5_4(8 DOWNTO 0) <= "000000000";
BAR5_4(17 DOWNTO 9)<= A(8 DOWNTO 0);
BAR6_4(9 DOWNTO 0) <= "0000000000";
BAR6_4(17 DOWNTO 10) <= B(7 DOWNTO 0);

BAR2_4(15) <= A(8)

BAR3_4(16) <= A(8)

JUMLAH_BAR_B9 <= BAR1_4 + BAR2_4 + BAR3_4 + BAR4_4 + BAR5_4 + BAR6_4 ;


Y_B9(7 DOWNTO 0) <= JUMLAH_BAR_B9(17 DOWNTO 10);
2.2.5 Pengali B13
Tabel 1.44
17

16

15

14

13

12

11

10

Operation

Bit record

Bar1

A8

A8

A8

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

010

+1

Bar2

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

Bar3

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

101

-1

Bar4

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

001

+1

Bar5

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

010

+1

Bar6

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CA5

CA4

CA3

CA2

CB12

CB11

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC10

CC9

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD8

CD7

CD6

CD5

CD4

CD3

CD2

CD1

CD0

CE6

CE5

CE4

CE3

CE2

CE1

CE0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

X6

X5

CA1

CA0

X4

X3

X2

X1

X0

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B13.
---PENGALI B13
BAR1_5(8 DOWNTO 0) <= A(8 DOWNTO 0);
43

BAR1_5(9)<= A(8) ;
BAR1_5(10)<= A(8) ; BAR1_5(11)<= A(8) ; BAR1_5(12)<= A(8)
; BAR1_5(13)<= A(8) ; BAR1_5(14)<= A(8) ; BAR1_5(15)<= A(8) ; BAR1_5(16)<= A(8)
; BAR1_5(17)<= A(8) ;
BAR2_5(1 DOWNTO 0) <= "00";
BAR2_5(10 DOWNTO 2) <= B(8 DOWNTO 0);
BAR2_5(11) <= B(8); BAR2_5(12) <= B(8); BAR2_5(13) <= B(8); BAR2_5(14) <=
B(8); BAR2_5(15) <= B(8); BAR2_5(16) <= B(8); BAR2_5(17) <= B(8);
BAR3_5(3 DOWNTO 0) <= "0000";
BAR3_5(12 DOWNTO 4) <= B(8 DOWNTO 0);
BAR3_5(13)<= B(8);
BAR3_5(14) <= B(8); BAR3_5(15) <= B(8); BAR3_5(16) <=
B(8); BAR3_5(17) <= B(8);
BAR4_5(5 DOWNTO 0) <= "000000";
BAR4_5(14 DOWNTO 6) <= A(8 DOWNTO 0);
BAR4_5(15) <= A(8) ; BAR4_5(16) <= A(8) ; BAR4_5(17) <= A(8) ;
BAR5_5(7 DOWNTO 0) <= "00000000";
BAR5_5(16 DOWNTO 8) <= A(8 DOWNTO 0);
BAR5_5(17) <= A(8);
BAR6_5(9 DOWNTO 0)<= "0000000000";
BAR6_5(17 DOWNTO 10) <= B(7 DOWNTO 0);
JUMLAH_BAR_B13 <= BAR1_5 + BAR2_5 + BAR3_5+ BAR4_5 + BAR5_5 + BAR6_5 ;
Y_B13(7 DOWNTO 0) <= JUMLAH_BAR_B13(17 DOWNTO 10);
2.2.6 Pengali B15
Tabel 1.45
17

16

15

14

13

12

11

10

Operation

Bit record

Bar1

B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

Bar2

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

001

+1

Bar3

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

010

+1

Bar4

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC6

CC5

CC4

CC3

CC2

CC1

CC0

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

Y7

CA5

CA4

CA3

CA2

CA1

CA0

X6

X5

X4

X3

X2

X1

X0

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B15.

44

---PENGALI B15
BAR1_6(8 DOWNTO 0) <= B(8 DOWNTO 0);
BAR1_6(9)<= B(8);
BAR1_6(10)<= B(8);
BAR1_6(13)<= B(8);
BAR1_6(14)<= B(8);
BAR1_6(17)<= B(8);
BAR2_6(3 DOWNTO 0) <= "0000";
BAR2_6(12 DOWNTO 4) <= A(8 DOWNTO 0);
BAR2_6(13) <= A(8); BAR2_6(14) <= A(8);
A(8); BAR2_6(17) <= A(8);
BAR3_6(5 DOWNTO 0) <= "000000";
BAR3_6(14 DOWNTO 6) <= A(8 DOWNTO 0);
BAR3_6(15) <= A(8); BAR3_6(16) <= A(8);
BAR4_6(9 DOWNTO 0) <= "0000000000";
BAR4_6(17 DOWNTO 10) <= B(7 DOWNTO 0);

BAR1_6(11)<= B(8);
BAR1_6(15)<= B(8);

BAR1_6(12)<= B(8);
BAR1_6(16)<= B(8);

BAR2_6(15) <= A(8);

BAR2_6(16)

<=

BAR3_6(17) <= A(8);

JUMLAH_BAR_B15 <= BAR1_6 + BAR2_6 + BAR3_6+ BAR4_6 ;


Y_B15(7 DOWNTO 0) <= JUMLAH_BAR_B15(17 DOWNTO 10);
2.2.7

Pengali B16
Tabel 1.46

Bar1
Bar2
Bar3
Bar4
Bar5
Bar6

16

15

14

13

12

11

10

B8
B8
B8
A8
B8
A7
CA15
CB14
CC11
CD7
CE6
Y7

B8
B8
B8
A8
B7
A6
CA14
CB13
CC10
CD6
CE5
Y6

B8
B8
B8
A8
B6
A5
CA13
CB12
CC9
CD5
CE4
Y5

B8
B8
B8
A8
B5
A4
CA12
CB11
CC8
CD4
CE3
Y4

B8
B8
B8
A7
B4
A3
CA11
CB10
CC8
CD3
CE2
Y3

B8
B8
B8
A6
B3
A2
CA10
CB9
CC7
CD2
CE1
Y2

B8
B8
B7
A5
B2
A1
CA9
CB8
CC6
CD1
CE0
Y1

B8
B8
B6
A4
B1
A0
CA8
CB7
CC5
CD0

B8
B7
B5
A3
B0

B7
B6
B4
A2
0

B6
B5
B3
A1

B5
B4
B2
A0

B4
B3
B1

B3
B2
B0

B2
B1

B1
B0

B0

CA7
CB6
CC4

CA6
CB5
CC3

CA5
CB4
CC2

CA4
CB3
CC1

CA3
CB2
CC0

CA2
CB1

CA1
CB0

CA0

Y0

X9

X8

X7

X6

X5

X4

X3

X2

X1

X0

Operation
100
101
101
010
100
010

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B16.

45

Bit record
-2
-1
-1
+1
-2
+1

---PENGALI B16
BAR1_7(8 DOWNTO 0) <= B(8 DOWNTO 0);
BAR1_7(9) <= B(8);
BAR1_7(10) <= B(8); BAR1_7(11) <= B(8); BAR1_7(12)
<=
B(8); BAR1_7(13) <= B(8); BAR1_7(14) <= B(8);
BAR1_7(15)
<=
B(8);
BAR1_7(16) <= B(8);
BAR2_7(0) <= '0';
BAR2_7(9 DOWNTO 1) <= B(8 DOWNTO 0) ;
BAR2_7(10) <= B(8); BAR2_7(11) <= B(8); BAR2_7(12) <= B(8); BAR2_7(13)
<=
B(8); BAR2_7(14) <= B(8); BAR2_7(15) <= B(8); BAR2_7(16) <= B(8);
BAR3_7(2 DOWNTO 0) <= "000";
BAR3_7(11 DOWNTO 3) <= B(8 DOWNTO 0);
BAR3_7(12) <= B(8); BAR3_7(13) <= B(8); BAR3_7(14) <= B(8); BAR3_7(15)
<=
B(8); BAR3_7(16) <= B(8);
BAR4_7(4 DOWNTO 0) <= "00000";
BAR4_7(13 DOWNTO 5) <= A(8 DOWNTO 0);
BAR4_7(14) <= A(8) ; BAR4_7(15) <= A(8) ; BAR4_7(16) <= A(8) ;
BAR5_7(7 DOWNTO 0)<= "00000000";
BAR5_7(16 DOWNTO 8) <= B(8 DOWNTO 0);
BAR6_7(8 DOWNTO 0) <= "000000000";
BAR6_7(16 DOWNTO 9) <= A(7 DOWNTO 0);
JUMLAH_BAR_B16 <= BAR1_7 + BAR2_7 + BAR3_7+ BAR4_7 + BAR5_7 + BAR6_7 ;
Y_B16(7 DOWNTO 0) <= JUMLAH_BAR_B16(16 DOWNTO 9);
2.2.8 Pengali B17
Tabel 1.48
17

16

15

14

13

12

11

10

Operation

Bit record

B8

B8

B8

B8

B8

B8

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

A8

A8

A8

A8

A8

A8

A8

A7

A6

A5

A4

A3

A2

A1

A0

011

+2

B8

B8

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

110

-1

B8

B8

B7

B6

B5

B4

B3

B2

B1

B0

101

-1

B7

B6

B5

B4

B3

B2

B1

B0

101

-1

CA16

CA15

CA14

CA13

CA12

CA11

CA10

CA9

CA8

CA7

CA6

CB10

CB9

CB8

CB7

CB6

CB5

CB4

CB3

CB2

CB1

CB0

CC8

CC7

CC6

CC5

CC4

CC3

CC2

CC1

CC0

CD6

CD5

CD4

CD3

CD2

CD1

CD0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

X9

X8

X7

CA5

CA4

CA3

CA2

CA1

CA0

X6

X5

X4

X3

X2

X1

X0

Keterangan :
= Bagian Yang Dijumlahkan
= Output (X9 - X0)
= Output (Y7 - Y0)

Pada program 2 ini kita deklarasikan Bar1 sampai Bar 5. Untuk bagian yang tidak memiliki
bilangan dianggap 0. Pada program ini akan dilakukan penjumlahan secara parallel, jadi seluruh
baris yang diberi warna dijumlahkan sekaligus dengan menggunakan symbol +. Berikut program
untuk B17.

46

---PENGALI B17
BAR1_0(8 DOWNTO 0) <= B(8 DOWNTO 0) ;
BAR1_0(9) <= B(8) ;
BAR1_0(10) <= B(8) ; BAR1_0(11) <= B(8) ; BAR1_0(12)
<= B(8) ; BAR1_0(13) <= B(8) ; BAR1_0(14) <= B(8) ; BAR1_0(15) <= B(8) ;
BAR1_0(16) <= B(8) ; BAR1_0(17) <= B(8) ;
BAR2_0(2 DOWNTO 0) <= "000";
BAR2_0(11 DOWNTO 3) <= A(8 DOWNTO 0);
BAR2_0(12)<= A(8);
BAR2_0(13)<= A(8);
BAR2_0(14)<= A(8);
BAR2_0(15)<= A(8);
BAR2_0(16)<= A(8);
BAR2_0(17)<= A(8);
BAR3_0(5 DOWNTO 0) <= "000000";
BAR3_0(14 DOWNTO 6) <= B(8 DOWNTO 0);
BAR3_0(15) <= B(8); BAR3_0(16) <= B(8); BAR3_0(17) <= B(8);
BAR4_0(7 DOWNTO 0) <= "00000000";
BAR4_0(16 DOWNTO 8) <= B(8 DOWNTO 0);
BAR4_0(17)<= B(8);
BAR5_0(9 DOWNTO 0) <= "0000000000";
BAR5_0(17 DOWNTO 10)<= B(7 DOWNTO 0);
JUMLAH_BAR_B17 <= BAR1_0 + BAR2_0 + BAR3_0+ BAR4_0 + BAR5_0 ;
Y_B17(7 DOWNTO 0) <= JUMLAH_BAR_B17 (17 DOWNTO 10);

47

3. HASIL SIMULASI
Perkalian 16 titik ini dibuat program yang bisa menganalisis hasil perhitungan dengan tingkat
kesalahan yang lebih rendah. Software yang digunakan yaitu XILINK ISE DESIGN SUITE 10.1. Telah
dibuat dua program yang bisa menganalisis hasil perkalian namun pada program tersebut terdapat
beberapa kelebihan dan kekurangan.Program yang pertama masih memiliki beberapa kekurangan
antara lain perhitungannya masih lambat yaitu 32.761 ns dan penggunaan slices nya lebih banyak.
Maka dari itu dibuatlah program kedua yang merupakan penyederhanaan dan penyempurnaan kembali
dari program pertama.
Kelebihan dari program yang telah disederhanakan ini yaitu menggunakan jumlah slices dan
LUTs yang sedikit sebesar 182 slices dan 330 LUTs dari pada program awal yang memiliki 248 slices
dan 436 LUTs. Serta memiliki kecepatan penerjemahaan sistem yang lebih singkat yaitu 24.782 ns.
Brikut adalah tabel perbandingan antara program-1 dengan program-2, yang membandingakan
antara slice yang digunakan, jumlah line, kecepatan, penggunaan IOB dan 4 input LUTs.
Tabel 1.49 perbandingan penggunaan slice program 1 dan program 2
No

Program-1 Program-2

Number of Slices

248

182

Number of 4 input LUTs

436

330

Number of bonded IOBs

73

33

Maximum combinational path delay:

32.761ns

24.782ns

Dari proses simulasi yang telah dilakukan, diperoleh hasil simulasi seperti pada tabel berikut,
Tabel 1.50 Hasil perhitungan dan Simulasi Multiplier B3

Hasil Simulasi
Ralat % Ralat
Biner
Desimal
0.71 100.00
X 0.70717106 00000000 0.70717106 00000000
0

X 0.70717106 00000001 1.41434212 00000001

X 0.70717106 00000010 2.12151318 00000010

X 0.70717106 00000010 2.82868424 00000010

X 0.70717106 00000011

00000011

X 0.70717106 00000100 4.24302636 00000100

X 0.70717106 00000100 4.95019742 00000100

X 0.70717106 00000101 5.65736848 00000101

Multiflicand

Multiflier

Hasil Teori
Biner
Desimal

3.5358553

0.41

29.30

0.12

5.73

0.83

29.30

0.54

15.15

0.24

5.73

0.95

19.20

0.66

11.62

48

X 0.70717106 00000110 6.36453954 00000110

10

X 0.70717106 00000111

00000111

11

X 0.70717106 00000111 7.77888166 00000111

12

X 0.70717106 00001000 8.48605272 00001000

13

X 0.70717106 00001001 9.19322378 00001001

14

X 0.70717106 00001001 9.90039484 00001001

15

X 0.70717106 00001010 10.6075659 00001010

10

16

X 0.70717106 00001011

11.314737

00001011

11

17

X 0.70717106 00001100

12.021908

00001100

12

18

X 0.70717106 00001100 12.7290791 00001100

12

19

X 0.70717106 00001101 13.4362501 00001101

13

20

X 0.70717106 00001110 14.1434212 00001110

14

21

X 0.70717106 00001110 14.8505923 00001110

14

22

X 0.70717106 00001111 15.5577633 00001111

15

23

X 0.70717106 00010000 16.2649344 00010000

16

24

X 0.70717106 00010000 16.9721054 00010000

16

25

X 0.70717106 00010001 17.6792765 00010001

17

26

X 0.70717106 00010010 18.3864476 00010010

18

27

X 0.70717106 00010011 19.0936186 00010011

19

28

X 0.70717106 00010011 19.8007897 00010011

19

29

X 0.70717106 00010100 20.5079607 00010100

20

30

X 0.70717106 00010101 21.2151318 00010101

21

31

X 0.70717106 00010101 21.9223029 00010101

21

32

X 0.70717106 00010110 22.6294739 00010110

22

33

X 0.70717106 00010111

23.336645

00010111

23

34

X 0.70717106 00011000

24.043816

00011000

24

35

X 0.70717106 00011000 24.7509871 00011000

24

7.0717106

0.36

5.73

0.07

1.01

0.78

10.01

0.49

5.73

0.19

2.10

0.90

9.09

0.61

5.73

0.31

2.78

0.02

0.18

0.73

5.73

0.44

3.25

0.14

1.01

0.85

5.73

0.56

3.59

0.26

1.63

0.97

5.73

0.68

3.84

0.39

2.10

0.09

0.49

0.80

4.04

0.51

2.48

0.22

1.01

0.92

4.21

0.63

2.78

0.34

1.44

0.04

0.18

0.75

3.03

49

36

X 0.70717106 00011001 25.4581582 00011001

25

37

X 0.70717106 00011010 26.1653292 00011010

26

38

X 0.70717106 00011010 26.8725003 00011010

26

39

X 0.70717106 00011011 27.5796713 00011011

27

40

X 0.70717106 00011100 28.2868424 00011100

28

41

X 0.70717106 00011100 28.9940135 00011100

28

42

X 0.70717106 00011101 29.7011845 00011101

29

43

X 0.70717106 00011110 30.4083556 00011110

30

44

X 0.70717106 00011111 31.1155266 00011111

31

45

X 0.70717106 00011111 31.8226977 00011111

31

46

X 0.70717106 00100000 32.5298688 00100000

32

47

X 0.70717106 00100001 33.2370398 00100001

33

48

X 0.70717106 00100001 33.9442109 00100001

33

49

X 0.70717106 00100010 34.6513819 00100010

34

50

X 0.70717106 00100011

00100011

35

51

X 0.70717106 00100100 36.0657241 00100100

36

52

X 0.70717106 00100100 36.7728951 00100100

36

53

X 0.70717106 00100101 37.4800662 00100101

37

54

X 0.70717106 00100110 38.1872372 00100110

38

55

X 0.70717106 00100110 38.8944083 00100110

38

56

X 0.70717106 00100111 39.6015794 00100111

39

57

X 0.70717106 00101000 40.3087504 00101000

40

58

X 0.70717106 00101001 41.0159215 00101001

41

59

X 0.70717106 00101001 41.7230925 00101001

41

60

X 0.70717106 00101010 42.4302636 00101010

42

61

X 0.70717106 00101011 43.1374347 00101011

43

62

X 0.70717106 00101011 43.8446057 00101011

43

35.358553

0.46

1.80

0.17

0.63

0.87

3.25

0.58

2.10

0.29

1.01

0.99

3.43

0.70

2.36

0.41

1.34

0.12

0.37

0.82

2.59

0.53

1.63

0.24

0.71

0.94

2.78

0.65

1.88

0.36

1.01

0.07

0.18

0.77

2.10

0.48

1.28

0.19

0.49

0.89

2.30

0.60

1.52

0.31

0.77

0.02

0.04

0.72

1.73

0.43

1.01

0.14

0.32

0.84

1.93

50

63

X 0.70717106 00101100 44.5517768 00101100

44

64

X 0.70717106 00101101 45.2589478 00101101

45

65

X 0.70717106 00101101 45.9661189 00101101

45

66

X 0.70717106 00101110

46.67329

00101110

46

67

X 0.70717106 00101111

47.380461

00101111

47

68

X 0.70717106 00110000 48.0876321 00110000

48

69

X 0.70717106 00110000 48.7948031 00110000

48

70

X 0.70717106 00110001 49.5019742 00110001

49

71

X 0.70717106 00110010 50.2091453 00110010

50

72

X 0.70717106 00110010 50.9163163 00110010

50

73

X 0.70717106 00110011 51.6234874 00110011

51

74

X 0.70717106 00110100 52.3306584 00110100

52

75

X 0.70717106 00110101 53.0378295 00110101

53

76

X 0.70717106 00110101 53.7450006 00110101

53

77

X 0.70717106 00110110 54.4521716 00110110

54

78

X 0.70717106 00110111 55.1593427 00110111

55

79

X 0.70717106 00110111 55.8665137 00110111

55

80

X 0.70717106 00111000 56.5736848 00111000

56

81

X 0.70717106 00111001 57.2808559 00111001

57

82

X 0.70717106 00111001 57.9880269 00111001

57

83

X 0.70717106 00111010

58.695198

00111010

58

84

X 0.70717106 00111011

59.402369

00111011

59

85

X 0.70717106 00111100 60.1095401 00111100

60

86

X 0.70717106 00111100 60.8167112 00111100

60

87

X 0.70717106 00111101 61.5238822 00111101

61

88

X 0.70717106 00111110 62.2310533 00111110

62

89

X 0.70717106 00111110 62.9382243 00111110

62

0.55

1.24

0.26

0.57

0.97

2.10

0.67

1.44

0.38

0.80

0.09

0.18

0.79

1.63

0.50

1.01

0.21

0.42

0.92

1.80

0.62

1.21

0.33

0.63

0.04

0.07

0.75

1.39

0.45

0.83

0.16

0.29

0.87

1.55

0.57

1.01

0.28

0.49

0.99

1.70

0.70

1.18

0.40

0.68

0.11

0.18

0.82

1.34

0.52

0.85

0.23

0.37

0.94

1.49

51

90

X 0.70717106 00111111 63.6453954 00111111

63

91

X 0.70717106 01000000 64.3525665 01000000

64

92

X 0.70717106 01000001 65.0597375 01000001

65

93

X 0.70717106 01000001 65.7669086 01000001

65

94

X 0.70717106 01000010 66.4740796 01000010

66

95

X 0.70717106 01000011 67.1812507 01000011

67

96

X 0.70717106 01000011 67.8884218 01000011

67

97

X 0.70717106 01000100 68.5955928 01000100

68

98

X 0.70717106 01000101 69.3027639 01000101

69

99

X 0.70717106 01000101 70.0099349 01000101

69

100

X 0.70717106 01000110

01000110

70

101

X 0.70717106 01000111 71.4242771 01000111

71

102

X 0.70717106 01001000 72.1314481 01001000

72

103

X 0.70717106 01001000 72.8386192 01001000

72

104

X 0.70717106 01001001 73.5457902 01001001

73

105

X 0.70717106 01001010 74.2529613 01001010

74

106

X 0.70717106 01001010 74.9601324 01001010

74

107

X 0.70717106 01001011 75.6673034 01001011

75

108

X 0.70717106 01001100 76.3744745 01001100

76

109

X 0.70717106 01001101 77.0816455 01001101

77

110

X 0.70717106 01001101 77.7888166 01001101

77

111

X 0.70717106 01001110 78.4959877 01001110

78

112

X 0.70717106 01001111 79.2031587 01001111

79

113

X 0.70717106 01001111 79.9103298 01001111

79

114

X 0.70717106 01010000 80.6175008 01010000

80

115

X 0.70717106 01010001 81.3246719 01010001

81

116

X 0.70717106 01010010

82

70.717106

82.031843

01010010

0.65

1.01

0.35

0.55

0.06

0.09

0.77

1.17

0.47

0.71

0.18

0.27

0.89

1.31

0.60

0.87

0.30

0.44

1.01

1.44

0.72

1.01

0.42

0.59

0.13

0.18

0.84

1.15

0.55

0.74

0.25

0.34

0.96

1.28

0.67

0.88

0.37

0.49

0.08

0.11

0.79

1.01

0.50

0.63

0.20

0.26

0.91

1.14

0.62

0.77

0.32

0.40

0.03

0.04

52

117

X 0.70717106 01010010

82.739014

01010010

82

118

X 0.70717106 01010011 83.4461851 01010011

83

119

X 0.70717106 01010100 84.1533561 01010100

84

120

X 0.70717106 01010100 84.8605272 01010100

84

121

X 0.70717106 01010101 85.5676983 01010101

85

122

X 0.70717106 01010110 86.2748693 01010110

86

123

X 0.70717106 01010110 86.9820404 01010110

86

124

X 0.70717106 01010111 87.6892114 01010111

87

125

X 0.70717106 01011000 88.3963825 01011000

88

126

X 0.70717106 01011001 89.1035536 01011001

89

127

X 0.70717106 01011001 89.8107246 01011001

89

128

X 0.70717106 01011010 90.5178957 01011010

90

129

X 0.70717106 01011011 91.2250667 01011011

91

130

X 0.70717106 01011011 91.9322378 01011011

91

131

X 0.70717106 01011100 92.6394089 01011100

92

132

X 0.70717106 01011101 93.3465799 01011101

93

133

X 0.70717106 01011110

94.053751

01011110

94

134

X 0.70717106 01011110

94.760922

01011110

94

135

X 0.70717106 01011111 95.4680931 01011111

95

136

X 0.70717106 01100000 96.1752642 01100000

96

137

X 0.70717106 01100000 96.8824352 01100000

96

138

X 0.70717106 01100001 97.5896063 01100001

97

139

X 0.70717106 01100010 98.2967773 01100010

98

140

X 0.70717106 01100010 99.0039484 01100010

98

141

X 0.70717106 01100011 99.7111195 01100011

99

142

X 0.70717106 01100100 100.418291 01100100

100

143

X 0.70717106 01100101 101.125462 01100101

101

0.74

0.89

0.45

0.53

0.15

0.18

0.86

1.01

0.57

0.66

0.27

0.32

0.98

1.13

0.69

0.79

0.40

0.45

0.10

0.12

0.81

0.90

0.52

0.57

0.23

0.25

0.93

1.01

0.64

0.69

0.35

0.37

0.05

0.06

0.76

0.80

0.47

0.49

0.18

0.18

0.88

0.91

0.59

0.60

0.30

0.30

1.00

1.01

0.71

0.71

0.42

0.42

0.13

0.12

53

144

X 0.70717106 01100101 101.832633 01100101

101

145

X 0.70717106 01100110 102.539804 01100110

102

146

X 0.70717106 01100111 103.246975 01100111

103

147

X 0.70717106 01100111 103.954146 01100111

103

148

X 0.70717106 01101000 104.661317 01101000

104

149

X 0.70717106 01101001 105.368488 01101001

105

150

X 0.70717106 01101010 106.075659 01101010

106

151

X 0.70717106 01101010

01101010

106

152

X 0.70717106 01101011 107.490001 01101011

107

153

X 0.70717106 01101100 108.197172 01101100

108

154

X 0.70717106 01101100 108.904343 01101100

108

155

X 0.70717106 01101101 109.611514 01101101

109

156

X 0.70717106 01101110 110.318685 01101110

110

157

X 0.70717106 01101111 111.025856 01101111

111

158

X 0.70717106 01101111 111.733027 01101111

111

159

X 0.70717106 01110000 112.440199 01110000

112

160

X 0.70717106 01110001

01110001

113

161

X 0.70717106 01110001 113.854541 01110001

113

162

X 0.70717106 01110010 114.561712 01110010

114

163

X 0.70717106 01110011 115.268883 01110011

115

164

X 0.70717106 01110011 115.976054 01110011

115

165

X 0.70717106 01110100 116.683225 01110100

116

166

X 0.70717106 01110101 117.390396 01110101

117

167

X 0.70717106 01110110 118.097567 01110110

118

168

X 0.70717106 01110110 118.804738 01110110

118

169

X 0.70717106 01110111 119.511909 01110111

119

170

X 0.70717106 01111000

120

106.78283

113.14737

120.21908

01111000

0.83

0.82

0.54

0.53

0.25

0.24

0.95

0.92

0.66

0.63

0.37

0.35

0.08

0.07

0.78

0.73

0.49

0.46

0.20

0.18

0.90

0.83

0.61

0.56

0.32

0.29

0.03

0.02

0.73

0.66

0.44

0.39

0.15

0.13

0.85

0.75

0.56

0.49

0.27

0.23

0.98

0.84

0.68

0.59

0.39

0.33

0.10

0.08

0.80

0.68

0.51

0.43

0.22

0.18

54

171

X 0.70717106 01111000 120.926251 01111000

120

172

X 0.70717106 01111001 121.633422 01111001

121

173

X 0.70717106 01111010 122.340593 01111010

122

174

X 0.70717106 01111011 123.047764 01111011

123

175

X 0.70717106 01111011 123.754936 01111011

123

176

X 0.70717106 01111100 124.462107 01111100

124

177

X 0.70717106 01111101 125.169278 01111101

125

178

X 0.70717106 01111101 125.876449 01111101

125

179

X 0.70717106 01111110

01111110

126

180

X 0.70717106 01111111 127.290791 01111111

127

181

X 0.70717106 01111111 127.997962 01111111

127

182

X 0.70717106 10000000 128.705133 10000000

128

183

X 0.70717106 10000001 129.412304 10000001

129

184

X 0.70717106 10000010 130.119475 10000010

130

185

X 0.70717106 10000010 130.826646 10000010

130

186

X 0.70717106 10000011 131.533817 10000011

131

187

X 0.70717106 10000100 132.240988 10000100

132

188

X 0.70717106 10000100 132.948159 10000100

132

189

X 0.70717106 10000101

10000101

133

190

X 0.70717106 10000110 134.362501 10000110

134

191

X 0.70717106 10000111 135.069672 10000111

135

192

X 0.70717106 10000111 135.776844 10000111

135

193

X 0.70717106 10001000 136.484015 10001000

136

194

X 0.70717106 10001001 137.191186 10001001

137

195

X 0.70717106 10001001 137.898357 10001001

137

196

X 0.70717106 10001010 138.605528 10001010

138

197

X 0.70717106 10001011 139.312699 10001011

139

126.58362

133.65533

0.93

0.77

0.63

0.52

0.34

0.28

0.05

0.04

0.75

0.61

0.46

0.37

0.17

0.14

0.88

0.70

0.58

0.46

0.29

0.23

1.00

0.78

0.71

0.55

0.41

0.32

0.12

0.09

0.83

0.63

0.53

0.41

0.24

0.18

0.95

0.71

0.66

0.49

0.36

0.27

0.07

0.05

0.78

0.57

0.48

0.35

0.19

0.14

0.90

0.65

0.61

0.44

0.31

0.22

55

198

X 0.70717106 10001011

140.01987

10001011

139

199

X 0.70717106 10001100 140.727041 10001100

140

200

X 0.70717106 10001101 141.434212 10001101

141

201

X 0.70717106 10001110 142.141383 10001110

142

202

X 0.70717106 10001110 142.848554 10001110

142

203

X 0.70717106 10001111 143.555725 10001111

143

204

X 0.70717106 10010000 144.262896 10010000

144

205

X 0.70717106 10010000 144.970067 10010000

144

206

X 0.70717106 10010001 145.677238 10010001

145

207

X 0.70717106 10010010 146.384409 10010010

146

208

X 0.70717106 10010011

10010011

147

209

X 0.70717106 10010011 147.798752 10010011

147

210

X 0.70717106 10010100 148.505923 10010100

148

211

X 0.70717106 10010101 149.213094 10010101

149

212

X 0.70717106 10010101 149.920265 10010101

149

213

X 0.70717106 10010110 150.627436 10010110

150

214

X 0.70717106 10010111 151.334607 10010111

151

215

X 0.70717106 10011000 152.041778 10011000

152

216

X 0.70717106 10011000 152.748949 10011000

152

217

X 0.70717106 10011001

10011001

153

218

X 0.70717106 10011010 154.163291 10011010

154

219

X 0.70717106 10011010 154.870462 10011010

154

220

X 0.70717106 10011011 155.577633 10011011

155

221

X 0.70717106 10011100 156.284804 10011100

156

222

X 0.70717106 10011100 156.991975 10011100

156

223

X 0.70717106 10011101 157.699146 10011101

157

224

X 0.70717106 10011110 158.406317 10011110

158

147.09158

153.45612

1.02

0.73

0.73

0.52

0.43

0.31

0.14

0.10

0.85

0.59

0.56

0.39

0.26

0.18

0.97

0.67

0.68

0.46

0.38

0.26

0.09

0.06

0.80

0.54

0.51

0.34

0.21

0.14

0.92

0.61

0.63

0.42

0.33

0.22

0.04

0.03

0.75

0.49

0.46

0.30

0.16

0.11

0.87

0.56

0.58

0.37

0.28

0.18

0.99

0.63

0.70

0.44

0.41

0.26

56

225

X 0.70717106 10011111 159.113489 10011111

159

226

X 0.70717106 10011111

10011111

159

227

X 0.70717106 10100000 160.527831 10100000

160

228

X 0.70717106 10100001 161.235002 10100001

161

229

X 0.70717106 10100001 161.942173 10100001

161

230

X 0.70717106 10100010 162.649344 10100010

162

231

X 0.70717106 10100011 163.356515 10100011

163

232

X 0.70717106 10100100 164.063686 10100100

164

233

X 0.70717106 10100100 164.770857 10100100

164

234

X 0.70717106 10100101 165.478028 10100101

165

235

X 0.70717106 10100110 166.185199 10100110

166

236

X 0.70717106 10100110

10100110

166

237

X 0.70717106 10100111 167.599541 10100111

167

238

X 0.70717106 10101000 168.306712 10101000

168

239

X 0.70717106 10101000 169.013883 10101000

168

240

X 0.70717106 10101001 169.721054 10101001

169

241

X 0.70717106 10101010 170.428225 10101010

170

242

X 0.70717106 10101011 171.135397 10101011

171

243

X 0.70717106 10101011 171.842568 10101011

171

244

X 0.70717106 10101100 172.549739 10101100

172

245

X 0.70717106 10101101

10101101

173

246

X 0.70717106 10101101 173.964081 10101101

173

247

X 0.70717106 10101110 174.671252 10101110

174

248

X 0.70717106 10101111 175.378423 10101111

175

249

X 0.70717106 10110000 176.085594 10110000

176

250

X 0.70717106 10110000 176.792765 10110000

176

251

X 0.70717106 10110001 177.499936 10110001

177

159.82066

166.89237

173.25691

0.11

0.07

0.82

0.51

0.53

0.33

0.24

0.15

0.94

0.58

0.65

0.40

0.36

0.22

0.06

0.04

0.77

0.47

0.48

0.29

0.19

0.11

0.89

0.53

0.60

0.36

0.31

0.18

1.01

0.60

0.72

0.42

0.43

0.25

0.14

0.08

0.84

0.49

0.55

0.32

0.26

0.15

0.96

0.55

0.67

0.38

0.38

0.22

0.09

0.05

0.79

0.45

0.50

0.28

57

252

X 0.70717106 10110010 178.207107 10110010

178

253

X 0.70717106 10110010 178.914278 10110010

178

254

X 0.70717106 10110011 179.621449 10110011

179

255

X 0.70717106 10110100

180

180.32862

10110100

0.21

0.12

0.91

0.51

0.62

0.35

0.33

0.18

Berikut adalah tabel hasil perbandingan antara hasil teori dengan hasil simulasi multipier B7. Hasil di
bawah ini diperoleh dari perhitungan bilangan multiplicand yang dikalikan dengan multiplier dimana pada hasil
teori diperoleh bilangan decimal yang berupa pecahan. Hasil teori in merupakan hasil yang sesungguhnya.
Sedangkan pada hasil simulasi diperoleh bilangan decimal berupa bilangan bulat. Hal ini dikarenakan hasil
simulasi pada program VHDL berupa bilangan biner, bukan bilangan pecahan.
Tabel 1.51 Hasil Perhitungan dan Simulasi Multiplier B7

Hasil Simulasi
Ralat % Ralat
Biner
Desimal
0.38 100.00
0.382683432 00000000 0.382683 00000000
0

0.382683432 00000000 0.765367 00000000

0.382683432 00000001

00000001

0.382683432 00000001 1.530734 00000001

0.382683432 00000001 1.913417 00000001

0.382683432 00000010 2.296101 00000010

0.382683432 00000010 2.678784 00000010

0.382683432 00000011 3.061467 00000011

0.382683432 00000011 3.444151 00000011

10

0.382683432 00000011 3.826834 00000011

11

0.382683432 00000100 4.209518 00000100

12

0.382683432 00000100 4.592201 00000100

13

0.382683432 00000100 4.974885 00000100

14

0.382683432 00000101 5.357568 00000101

15

0.382683432 00000101 5.740251 00000101

16

0.382683432 00000110 6.122935 00000110

Multiflicand

Multiflier

Hasil Teori
Biner
Desimal

1.14805

0.77

100.00

0.15

12.90

0.53

34.67

0.91

47.74

0.30

12.90

0.68

25.34

0.06

2.01

0.44

12.90

0.83

21.61

0.21

4.98

0.59

12.90

0.97

19.60

0.36

6.67

0.74

12.90

0.12

2.01

58

17

0.382683432 00000110 6.505618 00000110

18

0.382683432 00000110 6.888302 00000110

19

0.382683432 00000111 7.270985 00000111

20

0.382683432 00000111 7.653669 00000111

21

0.382683432 00001000 8.036352 00001000

22

0.382683432 00001000 8.419036 00001000

23

0.382683432 00001000 8.801719 00001000

24

0.382683432 00001001 9.184402 00001001

25

0.382683432 00001001 9.567086 00001001

26

0.382683432 00001001 9.949769 00001001

27

0.382683432 00001010 10.33245 00001010

10

28

0.382683432 00001010 10.71514 00001010

10

29

0.382683432 00001011 11.09782 00001011

11

30

0.382683432 00001011

00001011

11

31

0.382683432 00001011 11.86319 00001011

11

32

0.382683432 00001100 12.24587 00001100

12

33

0.382683432 00001100 12.62855 00001100

12

34

0.382683432 00001101 13.01124 00001101

13

35

0.382683432 00001101 13.39392 00001101

13

36

0.382683432 00001101

00001101

13

37

0.382683432 00001110 14.15929 00001110

14

38

0.382683432 00001110 14.54197 00001110

14

39

0.382683432 00001110 14.92465 00001110

14

40

0.382683432 00001111 15.30734 00001111

15

41

0.382683432 00001111 15.69002 00001111

15

42

0.382683432 00010000

00010000

16

43

0.382683432 00010000 16.45539 00010000

16

11.4805

13.7766

16.0727

0.51

7.77

0.89

12.90

0.27

3.73

0.65

8.54

0.04

0.45

0.42

4.98

0.80

9.11

0.18

2.01

0.57

5.93

0.95

9.55

0.33

3.22

0.72

6.67

0.10

0.88

0.48

4.19

0.86

7.28

0.25

2.01

0.63

4.98

0.01

0.09

0.39

2.94

0.78

5.64

0.16

1.12

0.54

3.73

0.92

6.20

0.31

2.01

0.69

4.40

0.07

0.45

0.46

2.77

59

44

0.382683432 00010000 16.83807 00010000

16

45

0.382683432 00010001 17.22075 00010001

17

46

0.382683432 00010001 17.60344 00010001

17

47

0.382683432 00010001 17.98612 00010001

17

48

0.382683432 00010010

00010010

18

49

0.382683432 00010010 18.75149 00010010

18

50

0.382683432 00010011 19.13417 00010011

19

51

0.382683432 00010011 19.51686 00010011

19

52

0.382683432 00010011 19.89954 00010011

19

53

0.382683432 00010100 20.28222 00010100

20

54

0.382683432 00010100 20.66491 00010100

20

55

0.382683432 00010101 21.04759 00010101

21

56

0.382683432 00010101 21.43027 00010101

21

57

0.382683432 00010101 21.81296 00010101

21

58

0.382683432 00010110 22.19564 00010110

22

59

0.382683432 00010110 22.57832 00010110

22

60

0.382683432 00010110 22.96101 00010110

22

61

0.382683432 00010111 23.34369 00010111

23

62

0.382683432 00010111 23.72637 00010111

23

63

0.382683432 00011000 24.10906 00011000

24

64

0.382683432 00011000 24.49174 00011000

24

65

0.382683432 00011000 24.87442 00011000

24

66

0.382683432 00011001 25.25711 00011001

25

67

0.382683432 00011001 25.63979 00011001

25

68

0.382683432 00011010 26.02247 00011010

26

69

0.382683432 00011010 26.40516 00011010

26

70

0.382683432 00011010 26.78784 00011010

26

18.3688

0.84

4.98

0.22

1.28

0.60

3.43

0.99

5.48

0.37

2.01

0.75

4.01

0.13

0.70

0.52

2.65

0.90

4.52

0.28

1.39

0.66

3.22

0.05

0.23

0.43

2.01

0.81

3.73

0.20

0.88

0.58

2.56

0.96

4.19

0.34

1.47

0.73

3.06

0.11

0.45

0.49

2.01

0.87

3.52

0.26

1.02

0.64

2.50

0.02

0.09

0.41

1.53

0.79

2.94

60

71

0.382683432 00011011 27.17052 00011011

27

72

0.382683432 00011011 27.55321 00011011

27

73

0.382683432 00011011 27.93589 00011011

27

74

0.382683432 00011100 28.31857 00011100

28

75

0.382683432 00011100 28.70126 00011100

28

76

0.382683432 00011101 29.08394 00011101

29

77

0.382683432 00011101 29.46662 00011101

29

78

0.382683432 00011101 29.84931 00011101

29

79

0.382683432 00011110 30.23199 00011110

30

80

0.382683432 00011110 30.61467 00011110

30

81

0.382683432 00011111 30.99736 00011111

31

82

0.382683432 00011111 31.38004 00011111

31

83

0.382683432 00011111 31.76272 00011111

31

84

0.382683432 00100000 32.14541 00100000

32

85

0.382683432 00100000 32.52809 00100000

32

86

0.382683432 00100000 32.91078 00100000

32

87

0.382683432 00100001 33.29346 00100001

33

88

0.382683432 00100001 33.67614 00100001

33

89

0.382683432 00100010 34.05883 00100010

34

90

0.382683432 00100010 34.44151 00100010

34

91

0.382683432 00100010 34.82419 00100010

34

92

0.382683432 00100011 35.20688 00100011

35

93

0.382683432 00100011 35.58956 00100011

35

94

0.382683432 00100011 35.97224 00100011

35

95

0.382683432 00100100 36.35493 00100100

36

96

0.382683432 00100100 36.73761 00100100

36

97

0.382683432 00100101 37.12029 00100101

37

0.17

0.63

0.55

2.01

0.94

3.35

0.32

1.12

0.70

2.44

0.08

0.29

0.47

1.58

0.85

2.85

0.23

0.77

0.61

2.01

0.00

-0.01

0.38

1.21

0.76

2.40

0.15

0.45

0.53

1.62

0.91

2.77

0.29

0.88

0.68

2.01

0.06

0.17

0.44

1.28

0.82

2.37

0.21

0.59

0.59

1.66

0.97

2.70

0.35

0.98

0.74

2.01

0.12

0.32

61

98

0.382683432 00100101 37.50298 00100101

37

99

0.382683432 00100101 37.88566 00100101

37

100

0.382683432 00100110 38.26834 00100110

38

101

0.382683432 00100110 38.65103 00100110

38

102

0.382683432 00100111 39.03371 00100111

39

103

0.382683432 00100111 39.41639 00100111

39

104

0.382683432 00100111 39.79908 00100111

39

105

0.382683432 00101000 40.18176 00101000

40

106

0.382683432 00101000 40.56444 00101000

40

107

0.382683432 00101000 40.94713 00101000

40

108

0.382683432 00101001 41.32981 00101001

41

109

0.382683432 00101001 41.71249 00101001

41

110

0.382683432 00101010 42.09518 00101010

42

111

0.382683432 00101010 42.47786 00101010

42

112

0.382683432 00101010 42.86054 00101010

42

113

0.382683432 00101011 43.24323 00101011

43

114

0.382683432 00101011 43.62591 00101011

43

115

0.382683432 00101100 44.00859 00101100

44

116

0.382683432 00101100 44.39128 00101100

44

117

0.382683432 00101100 44.77396 00101100

44

118

0.382683432 00101101 45.15665 00101101

45

119

0.382683432 00101101 45.53933 00101101

45

120

0.382683432 00101101 45.92201 00101101

45

121

0.382683432 00101110

00101110

46

122

0.382683432 00101110 46.68738 00101110

46

123

0.382683432 00101111 47.07006 00101111

47

124

0.382683432 00101111 47.45275 00101111

47

46.3047

0.50

1.34

0.89

2.34

0.27

0.70

0.65

1.68

0.03

0.09

0.42

1.06

0.80

2.01

0.18

0.45

0.56

1.39

0.95

2.31

0.33

0.80

0.71

1.71

0.10

0.23

0.48

1.12

0.86

2.01

0.24

0.56

0.63

1.43

0.01

0.02

0.39

0.88

0.77

1.73

0.16

0.35

0.54

1.18

0.92

2.01

0.30

0.66

0.69

1.47

0.07

0.15

0.45

0.95

62

125

0.382683432 00101111 47.83543 00101111

47

126

0.382683432 00110000 48.21811 00110000

48

127

0.382683432 00110000

00110000

48

128

0.382683432 00110001 48.98348 00110001

49

129

0.382683432 00110001 49.36616 00110001

49

130

0.382683432 00110001 49.74885 00110001

49

131

0.382683432 00110010 50.13153 00110010

50

132

0.382683432 00110010 50.51421 00110010

50

133

0.382683432 00110010

00110010

50

134

0.382683432 00110011 51.27958 00110011

51

135

0.382683432 00110011 51.66226 00110011

51

136

0.382683432 00110100 52.04495 00110100

52

137

0.382683432 00110100 52.42763 00110100

52

138

0.382683432 00110100 52.81031 00110100

52

139

0.382683432 00110101

00110101

53

140

0.382683432 00110101 53.57568 00110101

53

141

0.382683432 00110101 53.95836 00110101

53

142

0.382683432 00110110 54.34105 00110110

54

143

0.382683432 00110110 54.72373 00110110

54

144

0.382683432 00110111 55.10641 00110111

55

145

0.382683432 00110111

00110111

55

146

0.382683432 00110111 55.87178 00110111

55

147

0.382683432 00111000 56.25446 00111000

56

148

0.382683432 00111000 56.63715 00111000

56

149

0.382683432 00111001 57.01983 00111001

57

150

0.382683432 00111001 57.40251 00111001

57

151

0.382683432 00111001

57

48.6008

50.8969

53.193

55.4891

57.7852

00111001

0.84

1.75

0.22

0.45

0.60

1.24

-0.02

-0.03

0.37

0.74

0.75

1.51

0.13

0.26

0.51

1.02

0.90

1.76

0.28

0.55

0.66

1.28

0.04

0.09

0.43

0.82

0.81

1.53

0.19

0.36

0.58

1.07

0.96

1.78

0.34

0.63

0.72

1.32

0.11

0.19

0.49

0.88

0.87

1.56

0.25

0.45

0.64

1.12

0.02

0.03

0.40

0.70

0.79

1.36

63

152

0.382683432 00111010 58.16788 00111010

58

153

0.382683432 00111010 58.55057 00111010

58

154

0.382683432 00111010 58.93325 00111010

58

155

0.382683432 00111011 59.31593 00111011

59

156

0.382683432 00111011 59.69862 00111011

59

157

0.382683432 00111100

00111100

60

158

0.382683432 00111100 60.46398 00111100

60

159

0.382683432 00111100 60.84667 00111100

60

160

0.382683432 00111101 61.22935 00111101

61

161

0.382683432 00111101 61.61203 00111101

61

162

0.382683432 00111110 61.99472 00111110

62

163

0.382683432 00111110

00111110

62

164

0.382683432 00111110 62.76008 00111110

62

165

0.382683432 00111111 63.14277 00111111

63

166

0.382683432 00111111 63.52545 00111111

63

167

0.382683432 00111111 63.90813 00111111

63

168

0.382683432 01000000 64.29082 01000000

64

169

0.382683432 01000000

01000000

64

170

0.382683432 01000001 65.05618 01000001

65

171

0.382683432 01000001 65.43887 01000001

65

172

0.382683432 01000001 65.82155 01000001

65

173

0.382683432 01000010 66.20423 01000010

66

174

0.382683432 01000010 66.58692 01000010

66

175

0.382683432 01000010

01000010

66

176

0.382683432 01000011 67.35228 01000011

67

177

0.382683432 01000011 67.73497 01000011

67

178

0.382683432 01000100 68.11765 01000100

68

60.0813

62.3774

64.6735

66.9696

0.17

0.29

0.55

0.94

0.93

1.58

0.32

0.53

0.70

1.17

0.08

0.14

0.46

0.77

0.85

1.39

0.23

0.37

0.61

0.99

-0.01

-0.01

0.38

0.61

0.76

1.21

0.14

0.23

0.53

0.83

0.91

1.42

0.29

0.45

0.67

1.04

0.06

0.09

0.44

0.67

0.82

1.25

0.20

0.31

0.59

0.88

0.97

1.45

0.35

0.52

0.73

1.09

0.12

0.17

64

179

0.382683432 01000100 68.50033 01000100

68

180

0.382683432 01000100 68.88302 01000100

68

181

0.382683432 01000101

01000101

69

182

0.382683432 01000101 69.64838 01000101

69

183

0.382683432 01000110 70.03107 01000110

70

184

0.382683432 01000110 70.41375 01000110

70

185

0.382683432 01000110 70.79643 01000110

70

186

0.382683432 01000111 71.17912 01000111

71

187

0.382683432 01000111

01000111

71

188

0.382683432 01000111 71.94449 01000111

71

189

0.382683432 01001000 72.32717 01001000

72

190

0.382683432 01001000 72.70985 01001000

72

191

0.382683432 01001001 73.09254 01001001

73

192

0.382683432 01001001 73.47522 01001001

73

193

0.382683432 01001001

01001001

73

194

0.382683432 01001010 74.24059 01001010

74

195

0.382683432 01001010 74.62327 01001010

74

196

0.382683432 01001011 75.00595 01001011

75

197

0.382683432 01001011 75.38864 01001011

75

198

0.382683432 01001011 75.77132 01001011

75

199

0.382683432 01001100

01001100

76

200

0.382683432 01001100 76.53669 01001100

76

201

0.382683432 01001100 76.91937 01001100

76

202

0.382683432 01001101 77.30205 01001101

77

203

0.382683432 01001101 77.68474 01001101

77

204

0.382683432 01001110 78.06742 01001110

78

205

0.382683432 01001110

78

69.2657

71.5618

73.8579

76.154

78.4501

01001110

0.50

0.73

0.88

1.28

0.27

0.38

0.65

0.93

0.03

0.04

0.41

0.59

0.80

1.12

0.18

0.25

0.56

0.79

0.94

1.31

0.33

0.45

0.71

0.98

0.09

0.13

0.48

0.65

0.86

1.16

0.24

0.32

0.62

0.84

0.01

0.01

0.39

0.52

0.77

1.02

0.15

0.20

0.54

0.70

0.92

1.20

0.30

0.39

0.68

0.88

0.07

0.09

0.45

0.57

65

206

0.382683432 01001110 78.83279 01001110

78

207

0.382683432 01001111 79.21547 01001111

79

208

0.382683432 01001111 79.59815 01001111

79

209

0.382683432 01010000 79.98084 01010000

80

210

0.382683432 01010000 80.36352 01010000

80

211

0.382683432 01010000

01010000

80

212

0.382683432 01010001 81.12889 01010001

81

213

0.382683432 01010001 81.51157 01010001

81

214

0.382683432 01010001 81.89425 01010001

81

215

0.382683432 01010010 82.27694 01010010

82

216

0.382683432 01010010 82.65962 01010010

82

217

0.382683432 01010011

01010011

83

218

0.382683432 01010011 83.42499 01010011

83

219

0.382683432 01010011 83.80767 01010011

83

220

0.382683432 01010100 84.19036 01010100

84

221

0.382683432 01010100 84.57304 01010100

84

222

0.382683432 01010100 84.95572 01010100

84

223

0.382683432 01010101 85.33841 01010101

85

224

0.382683432 01010101 85.72109 01010101

85

225

0.382683432 01010110 86.10377 01010110

86

226

0.382683432 01010110 86.48646 01010110

86

227

0.382683432 01010110 86.86914 01010110

86

228

0.382683432 01010111 87.25182 01010111

87

229

0.382683432 01010111 87.63451 01010111

87

230

0.382683432 01011000 88.01719 01011000

88

231

0.382683432 01011000 88.39987 01011000

88

232

0.382683432 01011000 88.78256 01011000

88

80.7462

83.0423

0.83

1.06

0.22

0.27

0.60

0.75

-0.02

-0.02

0.36

0.45

0.75

0.92

0.13

0.16

0.51

0.63

0.89

1.09

0.28

0.34

0.66

0.80

0.04

0.05

0.42

0.51

0.81

0.96

0.19

0.23

0.57

0.68

0.96

1.12

0.34

0.40

0.72

0.84

0.10

0.12

0.49

0.56

0.87

1.00

0.25

0.29

0.63

0.72

0.02

0.02

0.40

0.45

0.78

0.88

66

233

0.382683432 01011001 89.16524 01011001

89

234

0.382683432 01011001 89.54792 01011001

89

235

0.382683432 01011001 89.93061 01011001

89

236

0.382683432 01011010 90.31329 01011010

90

237

0.382683432 01011010 90.69597 01011010

90

238

0.382683432 01011011 91.07866 01011011

91

239

0.382683432 01011011 91.46134 01011011

91

240

0.382683432 01011011 91.84402 01011011

91

241

0.382683432 01011100 92.22671 01011100

92

242

0.382683432 01011100 92.60939 01011100

92

243

0.382683432 01011101 92.99207 01011101

93

244

0.382683432 01011101 93.37476 01011101

93

245

0.382683432 01011101 93.75744 01011101

93

246

0.382683432 01011110 94.14012 01011110

94

247

0.382683432 01011110 94.52281 01011110

94

248

0.382683432 01011110 94.90549 01011110

94

249

0.382683432 01011111 95.28817 01011111

95

250

0.382683432 01011111 95.67086 01011111

95

251

0.382683432 01100000 96.05354 01100000

96

252

0.382683432 01100000 96.43622 01100000

96

253

0.382683432 01100000 96.81891 01100000

96

254

0.382683432 01100001 97.20159 01100001

97

255

0.382683432 01100001 97.58428 01100001

97

0.17

0.19

0.55

0.61

0.93

1.03

0.31

0.35

0.70

0.77

0.08

0.09

0.46

0.50

0.84

0.92

0.23

0.25

0.61

0.66

-0.01

-0.01

0.37

0.40

0.76

0.81

0.14

0.15

0.52

0.55

0.91

0.95

0.29

0.30

0.67

0.70

0.05

0.06

0.44

0.45

0.82

0.85

0.20

0.21

0.58

0.60

Berikut adalah tabel hasil perbandingan antara hasil teori dengan hasil simulasi multipier B8. Hasil di
bawah ini diperoleh dari perhitungan bilangan multiplicand yang dikalikan dengan multiplier dimana pada hasil
teori diperoleh bilangan decimal yang berupa pecahan. Hasil teori in merupakan hasil yang sesungguhnya.
Sedangkan pada hasil simulasi diperoleh bilangan decimal berupa bilangan bulat. Hal ini dikarenakan hasil
simulasi pada program VHDL berupa bilangan biner, bukan bilangan pecahan.
67

Tabel 1.52 Hasil perhitungan dan Simulasi Multiplier B8

Hasil Simulasi
Biner
Desimal
1
x 1.30664063 00000001 1.30664063 00000001

x 1.30664063 00000010 2.61328125 00000010

x 1.30664063 00000011 3.91992188 00000011

x 1.30664063 00000101

x 1.30664063 00000110 6.53320313 00000110

x 1.30664063 00000111 7.83984375 00000111

x 1.30664063 00001001 9.14648438 00001001

x 1.30664063 00001010

x 1.30664063 00001011 11.7597656 00001011

10

x 1.30664063 00001101 13.0664063 00001101

11

x 1.30664063 00001110 14.3730469 00001110

12

x 1.30664063 00001111 15.6796875 00001111

13

x 1.30664063 00010000 16.9863281 00010000

14

x 1.30664063 00010010 18.2929688 00010010

15

x 1.30664063 00010011 19.5996094 00010011

16

x 1.30664063 00010100

17

x 1.30664063 00010110 22.2128906 00010110

18

x 1.30664063 00010111 23.5195313 00010111

19

x 1.30664063 00011000 24.8261719 00011000

20

x 1.30664063 00011010 26.1328125 00011010

21

x 1.30664063 00011011 27.4394531 00011011

22

x 1.30664063 00011100 28.7460938 00011100

23

x 1.30664063 00011110 30.0527344 00011110

24

x 1.30664063 00011111

25

x 1.30664063 00100000 32.6660156 00100000

Multiflicand

Multiflier

Hasil Simulasi
Biner
Desimal

5.2265625

10.453125

20.90625

31.359375

00000101

00001010

00010100

00011111

Ralat

% Ralat

0.31

23.47

0.61

23.47

0.92

23.47

0.23

4.33

0.53

8.16

0.84

10.71

0.15

1.60

10

0.45

4.33

11

0.76

6.46

13

0.07

0.51

14

0.37

2.60

15

0.68

4.33

16

0.99

5.81

18

0.29

1.60

19

0.60

3.06

20

0.91

4.33

22

0.21

0.96

23

0.52

2.21

24

0.83

3.33

26

0.13

0.51

27

0.44

1.60

28

0.75

2.60

30

0.05

0.18

31

0.36

1.15

32

0.67

2.04

68

26

x 1.30664063 00100001 33.9726563 00100001

27

x 1.30664063 00100011 35.2792969 00100011

28

x 1.30664063 00100100 36.5859375 00100100

29

x 1.30664063 00100101 37.8925781 00100101

30

x 1.30664063 00100111 39.1992188 00100111

31

x 1.30664063 00101000 40.5058594 00101000

32

x 1.30664063 00101001

33

x 1.30664063 00101011 43.1191406 00101011

34

x 1.30664063 00101100 44.4257813 00101100

35

x 1.30664063 00101101 45.7324219 00101101

36

x 1.30664063 00101111 47.0390625 00101111

37

x 1.30664063 00110000 48.3457031 00110000

38

x 1.30664063 00110001 49.6523438 00110001

39

x 1.30664063 00110010 50.9589844 00110010

40

x 1.30664063 00110100

41

x 1.30664063 00110101 53.5722656 00110101

42

x 1.30664063 00110110 54.8789063 00110110

43

x 1.30664063 00111000 56.1855469 00111000

44

x 1.30664063 00111001 57.4921875 00111001

45

x 1.30664063 00111010 58.7988281 00111010

46

x 1.30664063 00111100 60.1054688 00111100

47

x 1.30664063 00111101 61.4121094 00111101

48

x 1.30664063 00111110

49

x 1.30664063 01000000 64.0253906 01000000

50

x 1.30664063 01000001 65.3320313 01000001

51

x 1.30664063 01000010 66.6386719 01000010

52

x 1.30664063 01000011 67.9453125 01000011

41.8125

52.265625

62.71875

00101001

00110100

00111110

33

0.97

2.86

35

0.28

0.79

36

0.59

1.60

37

0.89

2.36

39

0.20

0.51

40

0.51

1.25

41

0.81

1.94

43

0.12

0.28

44

0.43

0.96

45

0.73

1.60

47

0.04

0.08

48

0.35

0.72

49

0.65

1.31

50

0.96

1.88

52

0.27

0.51

53

0.57

1.07

54

0.88

1.60

56

0.19

0.33

57

0.49

0.86

58

0.80

1.36

60

0.11

0.18

61

0.41

0.67

62

0.72

1.15

64

0.03

0.04

65

0.33

0.51

66

0.64

0.96

67

0.95

1.39

69

53

x 1.30664063 01000101 69.2519531 01000101

54

x 1.30664063 01000110 70.5585938 01000110

55

x 1.30664063 01000111 71.8652344 01000111

56

x 1.30664063 01001001

57

x 1.30664063 01001010 74.4785156 01001010

58

x 1.30664063 01001011 75.7851563 01001011

59

x 1.30664063 01001101 77.0917969 01001101

60

x 1.30664063 01001110 78.3984375 01001110

61

x 1.30664063 01001111 79.7050781 01001111

62

x 1.30664063 01010001 81.0117188 01010001

63

x 1.30664063 01010010 82.3183594 01010010

64

x 1.30664063 01010011

65

x 1.30664063 01010100 84.9316406 01010100

66

x 1.30664063 01010110 86.2382813 01010110

67

x 1.30664063 01010111 87.5449219 01010111

68

x 1.30664063 01011000 88.8515625 01011000

69

x 1.30664063 01011010 90.1582031 01011010

70

x 1.30664063 01011011 91.4648438 01011011

71

x 1.30664063 01011100 92.7714844 01011100

72

x 1.30664063 01011110

73

x 1.30664063 01011111 95.3847656 01011111

74

x 1.30664063 01100000 96.6914063 01100000

75

x 1.30664063 01100001 97.9980469 01100001

76

x 1.30664063 01100011 99.3046875 01100011

77

x 1.30664063 01100100 100.611328 01100100

78

x 1.30664063 01100101 101.917969 01100101

79

x 1.30664063 01100111 103.224609 01100111

73.171875

83.625

94.078125

01001001

01010011

01011110

69

0.25

0.36

70

0.56

0.79

71

0.87

1.20

73

0.17

0.23

74

0.48

0.64

75

0.79

1.04

77

0.09

0.12

78

0.40

0.51

79

0.71

0.88

81

0.01

0.01

82

0.32

0.39

83

0.63

0.75

84

0.93

1.10

86

0.24

0.28

87

0.54

0.62

88

0.85

0.96

90

0.16

0.18

91

0.46

0.51

92

0.77

0.83

94

0.08

0.08

95

0.38

0.40

96

0.69

0.72

97

1.00

1.02

99

0.30

0.31

100

0.61

0.61

101

0.92

0.90

103

0.22

0.22

70

80

x 1.30664063 01101000

104.53125

81

x 1.30664063 01101001 105.837891 01101001

82

x 1.30664063 01101011 107.144531 01101011

83

x 1.30664063 01101100 108.451172 01101100

84

x 1.30664063 01101101 109.757813 01101101

85

x 1.30664063 01101111 111.064453 01101111

86

x 1.30664063 01110000 112.371094 01110000

87

x 1.30664063 01110001 113.677734 01110001

88

x 1.30664063 01110010 114.984375 01110010

89

x 1.30664063 01110100 116.291016 01110100

90

x 1.30664063 01110101 117.597656 01110101

91

x 1.30664063 01110110 118.904297 01110110

92

x 1.30664063 01111000 120.210938 01111000

93

x 1.30664063 01111001 121.517578 01111001

94

x 1.30664063 01111010 122.824219 01111010

95

x 1.30664063 01111100 124.130859 01111100

96

x 1.30664063 01111101

97

x 1.30664063 01111110 126.744141 01111110

98

x 1.30664063 10000000 128.050781 10000000

99

x 1.30664063 10000001 129.357422 10000001

100

x 1.30664063 10000010 130.664063 10000010

101

x 1.30664063 10000011 131.970703 10000011

102

x 1.30664063 10000101 133.277344 10000101

103

x 1.30664063 10000110 134.583984 10000110

104

x 1.30664063 10000111 135.890625 10000111

105

x 1.30664063 10001001 137.197266 10001001

106

x 1.30664063 10001010 138.503906 10001010

125.4375

01101000

01111101

104

0.53

0.51

105

0.84

0.79

107

0.14

0.13

108

0.45

0.42

109

0.76

0.69

111

0.06

0.06

112

0.37

0.33

113

0.68

0.60

114

0.98

0.86

116

0.29

0.25

117

0.60

0.51

118

0.90

0.76

120

0.21

0.18

121

0.52

0.43

122

0.82

0.67

124

0.13

0.11

125

0.44

0.35

126

0.74

0.59

128

0.05

0.04

129

0.36

0.28

130

0.66

0.51

131

0.97

0.74

133

0.28

0.21

134

0.58

0.43

135

0.89

0.66

137

0.20

0.14

138

0.50

0.36

71

107

x 1.30664063 10001011 139.810547 10001011

108

x 1.30664063 10001101 141.117188 10001101

109

x 1.30664063 10001110 142.423828 10001110

110

x 1.30664063 10001111 143.730469 10001111

111

x 1.30664063 10010001 145.037109 10010001

112

x 1.30664063 10010010

113

x 1.30664063 10010011 147.650391 10010011

114

x 1.30664063 10010100 148.957031 10010100

115

x 1.30664063 10010110 150.263672 10010110

116

x 1.30664063 10010111 151.570313 10010111

117

x 1.30664063 10011000 152.876953 10011000

118

x 1.30664063 10011010 154.183594 10011010

119

x 1.30664063 10011011 155.490234 10011011

120

x 1.30664063 10011100 156.796875 10011100

121

x 1.30664063 10011110 158.103516 10011110

122

x 1.30664063 10011111 159.410156 10011111

123

x 1.30664063 10100000 160.716797 10100000

124

x 1.30664063 10100010 162.023438 10100010

125

x 1.30664063 10100011 163.330078 10100011

126

x 1.30664063 10100100 164.636719 10100100

127

x 1.30664063 10100101 165.943359 10100101

128

x 1.30664063 10100111

167.25

10100111

129

x 1.30664063 10101000

168.55661

10101000

130

x 1.30664063 10101001 169.863281 10101001

131

x 1.30664063 10101011 171.169922 10101011

132

x 1.30664063 10101100 172.476563 10101100

133

x 1.30664063 10101101 173.783203 10101101

146.34375

10010010

139

0.81

0.58

141

0.12

0.08

142

0.42

0.30

143

0.73

0.51

145

0.04

0.03

146

0.34

0.23

147

0.65

0.44

148

0.96

0.64

150

0.26

0.18

151

0.57

0.38

152

0.88

0.57

154

0.18

0.12

155

0.49

0.32

156

0.80

0.51

158

0.10

0.07

159

0.41

0.26

160

0.72

0.45

162

0.02

0.01

163

0.33

0.20

164

0.64

0.39

165

0.94

0.57

167

0.25

0.15

168

0.56

0.33

169

0.86

0.51

171

0.17

0.10

172

0.48

0.28

173

0.78

0.45

72

134

x 1.30664063 10101111 175.089844 10101111

135

x 1.30664063 10110000 176.396484 10110000

136

x 1.30664063 10110001 177.703125 10110001

137

x 1.30664063 10110011 179.009766 10110011

138

x 1.30664063 10110100 180.316406 10110100

139

x 1.30664063 10110101 181.623047 10110101

140

x 1.30664063 10110110 182.929688 10110110

141

x 1.30664063 10111000 184.236328 10111000

142

x 1.30664063 10111001 185.542969 10111001

143

x 1.30664063 10111010 186.849609 10111010

144

x 1.30664063 10111100

145

x 1.30664063 10111101 189.462891 10111101

146

x 1.30664063 10111110 190.769531 10111110

147

x 1.30664063 11000000 192.076172 11000000

148

x 1.30664063 11000001 193.382813 11000001

149

x 1.30664063 11000010 194.689453 11000010

150

x 1.30664063 11000011 195.996094 11000011

151

x 1.30664063 11000101 197.302734 11000101

152

x 1.30664063 11000110 198.609375 11000110

153

x 1.30664063 11000111 199.916016 11000111

154

x 1.30664063 11001001 201.222656 11001001

155

x 1.30664063 11001010 202.529297 11001010

156

x 1.30664063 11001011 203.835938 11001011

157

x 1.30664063 11001101 205.142578 11001101

158

x 1.30664063 11001110 206.449219 11001110

159

x 1.30664063 11001111 207.755859 11001111

160

x 1.30664063 11010001

188.15625

209.0625

10111100

11010001

175

0.09

0.05

176

0.40

0.22

177

0.70

0.40

179

0.01

0.01

180

0.32

0.18

181

0.62

0.34

182

0.93

0.51

184

0.24

0.13

185

0.54

0.29

186

0.85

0.45

188

0.16

0.08

189

0.46

0.24

190

0.77

0.40

192

0.08

0.04

193

0.38

0.20

194

0.69

0.35

195

1.00

0.51

197

0.30

0.15

198

0.61

0.31

199

0.92

0.46

201

0.22

0.11

202

0.53

0.26

203

0.84

0.41

205

0.14

0.07

206

0.45

0.22

207

0.76

0.36

209

0.06

0.03

73

161

x 1.30664063 11010010 210.369141 11010010

162

x 1.30664063 11010011 211.675781 11010011

163

x 1.30664063 11010100 212.982422 11010100

164

x 1.30664063 11010110 214.289063 11010110

165

x 1.30664063 11010111 215.595703 11010111

166

x 1.30664063 11011000 216.902344 11011000

167

x 1.30664063 11011010 218.208984 11011010

168

x 1.30664063 11011011 219.515625 11011011

169

x 1.30664063 11011100 220.822266 11011100

170

x 1.30664063 11011110 222.128906 11011110

171

x 1.30664063 11011111 223.435547 11011111

172

x 1.30664063 11100000 224.742188 11100000

173

x 1.30664063 11100010 226.048828 11100010

174

x 1.30664063 11100011 227.355469 11100011

175

x 1.30664063 11100100 228.662109 11100100

176

x 1.30664063 11100101

177

x 1.30664063 11100111 231.275391 11100111

178

x 1.30664063 11101000 232.582031 11101000

179

x 1.30664063 11101001 233.888672 11101001

180

x 1.30664063 11101011 235.195313 11101011

181

x 1.30664063 11101100 236.501953 11101100

182

x 1.30664063 11101101 237.808594 11101101

183

x 1.30664063 11101111 239.115234 11101111

184

x 1.30664063 11110000 240.421875 11110000

185

x 1.30664063 11110001 241.728516 11110001

186

x 1.30664063 11110011 243.035156 11110011

187

x 1.30664063 11110100 244.341797 11110100

229.96875

11100101

210

0.37

0.18

211

0.68

0.32

212

0.98

0.46

214

0.29

0.13

215

0.60

0.28

216

0.90

0.42

218

0.21

0.10

219

0.52

0.23

220

0.82

0.37

222

0.13

0.06

223

0.44

0.19

224

0.74

0.33

226

0.05

0.02

227

0.36

0.16

228

0.66

0.29

229

0.97

0.42

231

0.28

0.12

232

0.58

0.25

233

0.89

0.38

235

0.20

0.08

236

0.50

0.21

237

0.81

0.34

239

0.12

0.05

240

0.42

0.18

241

0.73

0.30

243

0.04

0.01

244

0.34

0.14

74

188

x 1.30664063 11110101 245.648438 11110101

189

x 1.30664063 11110110 246.955078 11110110

190

x 1.30664063 11111000 248.261719 11111000

191

x 1.30664063 11111001 249.568359 11111001

192

x 1.30664063 11111010

193

x 1.30664063 11111100 252.181641 11111100

194

x 1.30664063 11111101 253.488281 11111101

195

x 1.30664063 11111110 254.794922 11111110

196

x 1.30664063 00000000 256.101563 00000000

197

x 1.30664063 00000001 257.408203 00000001

198

x 1.30664063 00000010 258.714844 00000010

199

x 1.30664063 00000011 260.021484 00000011

200

x 1.30664063 00000101 261.328125 00000101

201

x 1.30664063 00000110 262.634766 00000110

202

x 1.30664063 00000111 263.941406 00000111

203

x 1.30664063 00001001 265.248047 00001001

204

x 1.30664063 00001010 266.554688 00001010

205

x 1.30664063 00001011 267.861328 00001011

206

x 1.30664063 00001101 269.167969 00001101

207

x 1.30664063 00001110 270.474609 00001110

208

x 1.30664063 00001111

209

x 1.30664063 00010000 273.087891 00010000

210

x 1.30664063 00010010 274.394531 00010010

211

x 1.30664063 00010011 275.701172 00010011

212

x 1.30664063 00010100 277.007813 00010100

213

x 1.30664063 00010110 278.314453 00010110

214

x 1.30664063 00010111 279.621094 00010111

250.875

271.78125

11111010

00001111

245

0.65

0.26

246

0.96

0.39

248

0.26

0.11

249

0.57

0.23

250

0.88

0.35

252

0.18

0.07

253

0.49

0.19

254

0.79

0.31

256.10

100.00

256.41

99.61

256.71

99.23

257.02

98.85

256.33

98.09

256.63

97.72

256.94

97.35

256.25

96.61

10

256.55

96.25

11

256.86

95.89

13

256.17

95.17

14

256.47

94.82

15

256.78

94.48

16

257.09

94.14

18

256.39

93.44

19

256.70

93.11

20

257.01

92.78

22

256.31

92.10

23

256.62

91.77

75

215

x 1.30664063 00011000 280.927734 00011000

216

x 1.30664063 00011010 282.234375 00011010

217

x 1.30664063 00011011 283.541016 00011011

218

x 1.30664063 00011100 284.847656 00011100

219

x 1.30664063 00011110 286.154297 00011110

220

x 1.30664063 00011111 287.460938 00011111

221

x 1.30664063 00100000 288.767578 00100000

222

x 1.30664063 00100001 290.074219 00100001

223

x 1.30664063 00100011 291.380859 00100011

224

x 1.30664063 00100100

225

x 1.30664063 00100101 293.994141 00100101

226

x 1.30664063 00100111 295.300781 00100111

227

x 1.30664063 00101000 296.607422 00101000

228

x 1.30664063 00101001 297.914063 00101001

229

x 1.30664063 00101011 299.220703 00101011

230

x 1.30664063 00101100 300.527344 00101100

231

x 1.30664063 00101101 301.833984 00101101

232

x 1.30664063 00101111 303.140625 00101111

233

x 1.30664063 00110000 304.447266 00110000

234

x 1.30664063 00110001 305.753906 00110001

235

x 1.30664063 00110010 307.060547 00110010

236

x 1.30664063 00110100 308.367188 00110100

237

x 1.30664063 00110101 309.673828 00110101

238

x 1.30664063 00110110 310.980469 00110110

239

x 1.30664063 00111000 312.287109 00111000

240

x 1.30664063 00111001

241

x 1.30664063 00111010 314.900391 00111010

292.6875

313.59375

00100100

00111001

24

256.93

91.46

26

256.23

90.79

27

256.54

90.48

28

256.85

90.17

30

256.15

89.52

31

256.46

89.22

32

256.77

88.92

33

257.07

88.62

35

256.38

87.99

36

256.69

87.70

37

256.99

87.41

39

256.30

86.79

40

256.61

86.51

41

256.91

86.24

43

256.22

85.63

44

256.53

85.36

45

256.83

85.09

47

256.14

84.50

48

256.45

84.23

49

256.75

83.97

50

257.06

83.72

52

256.37

83.14

53

256.67

82.89

54

256.98

82.64

56

256.29

82.07

57

256.59

81.82

58

256.90

81.58

76

242

x 1.30664063 00111100 316.207031 00111100

243

x 1.30664063 00111101 317.513672 00111101

244

x 1.30664063 00111110 318.820313 00111110

245

x 1.30664063 01000000 320.126953 01000000

246

x 1.30664063 01000001 321.433594 01000001

247

x 1.30664063 01000010 322.740234 01000010

248

x 1.30664063 01000011 324.046875 01000011

249

x 1.30664063 01000101 325.353516 01000101

250

x 1.30664063 01000110 326.660156 01000110

251

x 1.30664063 01000111 327.966797 01000111

252

x 1.30664063 01001001 329.273438 01001001

253

x 1.30664063 01001010 330.580078 01001010

254

x 1.30664063 01001011 331.886719 01001011

255

x 1.30664063 01001101 333.193359 01001101

60

256.21

81.03

61

256.51

80.79

62

256.82

80.55

64

256.13

80.01

65

256.43

79.78

66

256.74

79.55

67

257.05

79.32

69

256.35

78.79

70

256.66

78.57

71

256.97

78.35

73

256.27

77.83

74

256.58

77.62

75

256.89

77.40

77

256.19

76.89

Berikut adalah tabel hasil perbandingan antara hasil teori dengan hasil simulasi multipier B9. Hasil di
bawah ini diperoleh dari perhitungan bilangan multiplicand yang dikalikan dengan multiplier dimana pada hasil
teori diperoleh bilangan decimal yang berupa pecahan. Hasil teori in merupakan hasil yang sesungguhnya.
Sedangkan pada hasil simulasi diperoleh bilangan decimal berupa bilangan bulat. Hal ini dikarenakan hasil
simulasi pada program VHDL berupa bilangan biner, bukan bilangan pecahan.
Tabel 1.53 Hasil Perhitungan dan simulasi Muptiplier B9

Hasil Simulasi
Biner
Desimal
-1
X -0.54101563 11111111 -0.54102 11111111

X -0.54101563 11111110 -1.08203 11111110

X -0.54101563 11111110 -1.62305 11111110

X -0.54101563 11111101 -2.16406 11111101

X -0.54101563 11111101 -2.70508 11111101

X -0.54101563 11111100 -3.24609 11111100

Multiflicand

Multiflier

Hasil Simulasi
Biner
Desimal

Ralat

% Ralat

0.46

84.84

-2

0.92

84.84

-2

0.38

23.22

-3

0.84

38.63

-3

0.29

10.90

-4

0.75

23.23

77

X -0.54101563 11111100 -3.78711 11111100

X -0.54101563 11111011 -4.32813 11111011

X -0.54101563 11111011 -4.86914 11111011

10

X -0.54101563 11111010 -5.41016 11111010

11

X -0.54101563 11111010 -5.95117 11111010

12

X -0.54101563 11111001 -6.49219 11111001

13

X -0.54101563 11111000

14

X -0.54101563 11111000 -7.57422 11111000

15

X -0.54101563 11110111 -8.11523 11110111

16

X -0.54101563 11110111 -8.65625 11110111

17

X -0.54101563 11110110 -9.19727 11110110

18

X -0.54101563 11110110 -9.73828 11110110

19

X -0.54101563 11110101 -10.2793 11110101

20

X -0.54101563 11110101 -10.8203 11110101

21

X -0.54101563 11110100 -11.3613 11110100

22

X -0.54101563 11110100 -11.9023 11110100

23

X -0.54101563 11110011 -12.4434 11110011

24

X -0.54101563 11110011 -12.9844 11110011

25

X -0.54101563 11110010 -13.5254 11110010

26

X -0.54101563 11110001 -14.0664 11110001

27

X -0.54101563 11110001 -14.6074 11110001

28

X -0.54101563 11110000 -15.1484 11110000

29

X -0.54101563 11110000 -15.6895 11110000

30

X -0.54101563 11101111 -16.2305 11101111

31

X -0.54101563 11101111 -16.7715 11101111

32

X -0.54101563 11101110 -17.3125 11101110

33

X -0.54101563 11101110 -17.8535 11101110

-7.0332

11111000

-4

0.21

5.62

-5

0.67

15.52

-5

0.13

2.69

-6

0.59

10.90

-6

0.05

0.82

-7

0.51

7.82

-8

0.97

13.75

-8

0.43

5.62

-9

0.88

10.90

-9

0.34

3.97

-10

0.80

8.73

-10

0.26

2.69

-11

0.72

7.01

-11

0.18

1.66

-12

0.64

5.62

-12

0.10

0.82

-13

0.56

4.47

-13

0.02

0.12

-14

0.47

3.51

-15

0.93

6.64

-15

0.39

2.69

-16

0.85

5.62

-16

0.31

1.98

-17

0.77

4.74

-17

0.23

1.36

-18

0.69

3.97

-18

0.15

0.82

78

34

X -0.54101563 11101101 -18.3945 11101101

35

X -0.54101563 11101101 -18.9355 11101101

36

X -0.54101563 11101100 -19.4766 11101100

37

X -0.54101563 11101011 -20.0176 11101011

38

X -0.54101563 11101011 -20.5586 11101011

39

X -0.54101563 11101010 -21.0996 11101010

40

X -0.54101563 11101010 -21.6406 11101010

41

X -0.54101563 11101001 -22.1816 11101001

42

X -0.54101563 11101001 -22.7227 11101001

43

X -0.54101563 11101000 -23.2637 11101000

44

X -0.54101563 11101000 -23.8047 11101000

45

X -0.54101563 11100111 -24.3457 11100111

46

X -0.54101563 11100111 -24.8867 11100111

47

X -0.54101563 11100110 -25.4277 11100110

48

X -0.54101563 11100110 -25.9688 11100110

49

X -0.54101563 11100101 -26.5098 11100101

50

X -0.54101563 11100100 -27.0508 11100100

51

X -0.54101563 11100100 -27.5918 11100100

52

X -0.54101563 11100011 -28.1328 11100011

53

X -0.54101563 11100011 -28.6738 11100011

54

X -0.54101563 11100010 -29.2148 11100010

55

X -0.54101563 11100010 -29.7559 11100010

56

X -0.54101563 11100001 -30.2969 11100001

57

X -0.54101563 11100001 -30.8379 11100001

58

X -0.54101563 11100000 -31.3789 11100000

59

X -0.54101563 11100000 -31.9199 11100000

60

X -0.54101563 11011111 -32.4609 11011111

-19

0.61

3.29

-19

0.06

0.34

-20

0.52

2.69

-20

-0.02

0.09

-21

0.44

2.15

-22

0.90

4.27

-22

0.36

1.66

-23

0.82

3.69

-23

0.28

1.22

-24

0.74

3.17

-24

0.20

0.82

-25

0.65

2.69

-25

0.11

0.46

-26

0.57

2.25

-26

0.03

0.12

-27

0.49

1.85

-28

0.95

3.51

-28

0.41

1.48

-29

0.87

3.08

-29

0.33

1.14

-30

0.79

2.69

-30

0.24

0.82

-31

0.70

2.32

-31

0.16

0.53

-32

0.62

1.98

-32

0.08

0.25

-33

0.54

1.66

79

61

X -0.54101563 11011110

-33.002

11011110

62

X -0.54101563 11011110

-33.543

11011110

63

X -0.54101563 11011101

-34.084

11011101

64

X -0.54101563 11011101

-34.625

11011101

65

X -0.54101563 11011100

-35.166

11011100

66

X -0.54101563 11011100

-35.707

11011100

67

X -0.54101563 11011011

-36.248

11011011

68

X -0.54101563 11011011 -36.7891 11011011

69

X -0.54101563 11011010 -37.3301 11011010

70

X -0.54101563 11011010 -37.8711 11011010

71

X -0.54101563 11011001 -38.4121 11011001

72

X -0.54101563 11011001 -38.9531 11011001

73

X -0.54101563 11011000 -39.4941 11011000

74

X -0.54101563 11010111 -40.0352 11010111

75

X -0.54101563 11010111 -40.5762 11010111

76

X -0.54101563 11010110 -41.1172 11010110

77

X -0.54101563 11010110 -41.6582 11010110

78

X -0.54101563 11010101 -42.1992 11010101

79

X -0.54101563 11010101 -42.7402 11010101

80

X -0.54101563 11010100 -43.2813 11010100

81

X -0.54101563 11010100 -43.8223 11010100

82

X -0.54101563 11010011 -44.3633 11010011

83

X -0.54101563 11010011 -44.9043 11010011

84

X -0.54101563 11010010 -45.4453 11010010

85

X -0.54101563 11010010 -45.9863 11010010

86

X -0.54101563 11010001 -46.5273 11010001

87

X -0.54101563 11010000 -47.0684 11010000

-33

0.00

0.01

-34

0.46

1.36

-35

0.92

2.69

-35

0.38

1.08

-36

0.83

2.37

-36

0.29

0.82

-37

0.75

2.07

-37

0.21

0.57

-38

0.67

1.79

-38

0.13

0.34

-39

0.59

1.53

-39

0.05

0.12

-40

0.51

1.28

-40

-0.04

0.09

-41

0.42

1.04

-42

0.88

2.15

-42

0.34

0.82

-43

0.80

1.90

-43

0.26

0.61

-44

0.72

1.66

-44

0.18

0.41

-45

0.64

1.44

-45

0.10

0.21

-46

0.55

1.22

-46

0.01

0.03

-47

0.47

1.02

-47

-0.07

0.15

80

88

X -0.54101563 11010000 -47.6094 11010000

89

X -0.54101563 11001111 -48.1504 11001111

90

X -0.54101563 11001111 -48.6914 11001111

91

X -0.54101563 11001110 -49.2324 11001110

92

X -0.54101563 11001110 -49.7734 11001110

93

X -0.54101563 11001101 -50.3145 11001101

94

X -0.54101563 11001101 -50.8555 11001101

95

X -0.54101563 11001100 -51.3965 11001100

96

X -0.54101563 11001100 -51.9375 11001100

97

X -0.54101563 11001011 -52.4785 11001011

98

X -0.54101563 11001010 -53.0195 11001010

99

X -0.54101563 11001010 -53.5605 11001010

100

X -0.54101563 11001001 -54.1016 11001001

101

X -0.54101563 11001001 -54.6426 11001001

102

X -0.54101563 11001000 -55.1836 11001000

103

X -0.54101563 11001000 -55.7246 11001000

104

X -0.54101563 11000111 -56.2656 11000111

105

X -0.54101563 11000111 -56.8066 11000111

106

X -0.54101563 11000110 -57.3477 11000110

107

X -0.54101563 11000110 -57.8887 11000110

108

X -0.54101563 11000101 -58.4297 11000101

109

X -0.54101563 11000101 -58.9707 11000101

110

X -0.54101563 11000100 -59.5117 11000100

111

X -0.54101563 11000011 -60.0527 11000011

112

X -0.54101563 11000011 -60.5938 11000011

113

X -0.54101563 11000010 -61.1348 11000010

114

X -0.54101563 11000010 -61.6758 11000010

-48

0.39

0.82

-49

0.85

1.76

-49

0.31

0.63

-50

0.77

1.56

-50

0.23

0.46

-51

0.69

1.36

-51

0.14

0.28

-52

0.60

1.17

-52

0.06

0.12

-53

0.52

0.99

-53

-0.02

0.04

-54

0.44

0.82

-55

0.90

1.66

-55

0.36

0.65

-56

0.82

1.48

-56

0.28

0.49

-57

0.73

1.31

-57

0.19

0.34

-58

0.65

1.14

-58

0.11

0.19

-59

0.57

0.98

-59

0.03

0.05

-60

0.49

0.82

-60

-0.05

0.09

-61

0.41

0.67

-62

0.87

1.42

-62

0.32

0.53

81

115

X -0.54101563 11000001 -62.2168 11000001

116

X -0.54101563 11000001 -62.7578 11000001

117

X -0.54101563 11000000 -63.2988 11000000

118

X -0.54101563 11000000 -63.8398 11000000

119

X -0.54101563 10111111 -64.3809 10111111

120

X -0.54101563 10111111 -64.9219 10111111

121

X -0.54101563 10111110 -65.4629 10111110

122

X -0.54101563 10111101 -66.0039 10111101

123

X -0.54101563 10111101 -66.5449 10111101

124

X -0.54101563 10111100 -67.0859 10111100

125

X -0.54101563 10111100

-67.627

10111100

126

X -0.54101563 10111011

-68.168

10111011

127

X -0.54101563 10111011

-68.709

10111011

128

X -0.54101563 10111010

-69.25

10111010

129

X -0.54101563 10111010

-69.791

10111010

130

X -0.54101563 10111001

-70.332

10111001

131

X -0.54101563 10111001

-70.873

10111001

132

X -0.54101563 10111000 -71.4141 10111000

133

X -0.54101563 10111000 -71.9551 10111000

134

X -0.54101563 10110111 -72.4961 10110111

135

X -0.54101563 10110110 -73.0371 10110110

136

X -0.54101563 10110110 -73.5781 10110110

137

X -0.54101563 10110101 -74.1191 10110101

138

X -0.54101563 10110101 -74.6602 10110101

139

X -0.54101563 10110100 -75.2012 10110100

140

X -0.54101563 10110100 -75.7422 10110100

141

X -0.54101563 10110011 -76.2832 10110011

-63

0.78

1.26

-63

0.24

0.39

-64

0.70

1.11

-64

0.16

0.25

-65

0.62

0.96

-65

0.08

0.12

-66

0.54

0.82

-66

0.00

0.01

-67

0.46

0.68

-67

-0.09

0.13

-68

0.37

0.55

-69

0.83

1.22

-69

0.29

0.42

-70

0.75

1.08

-70

0.21

0.30

-71

0.67

0.95

-71

0.13

0.18

-72

0.59

0.82

-72

0.04

0.06

-73

0.50

0.70

-73

-0.04

0.05

-74

0.42

0.57

-74

-0.12

0.16

-75

0.34

0.46

-76

0.80

1.06

-76

0.26

0.34

-77

0.72

0.94

82

142

X -0.54101563 10110011 -76.8242 10110011

143

X -0.54101563 10110010 -77.3652 10110010

144

X -0.54101563 10110010 -77.9063 10110010

145

X -0.54101563 10110001 -78.4473 10110001

146

X -0.54101563 10110001 -78.9883 10110001

147

X -0.54101563 10110000 -79.5293 10110000

148

X -0.54101563 10101111 -80.0703 10101111

149

X -0.54101563 10101111 -80.6113 10101111

150

X -0.54101563 10101110 -81.1523 10101110

151

X -0.54101563 10101110 -81.6934 10101110

152

X -0.54101563 10101101 -82.2344 10101101

153

X -0.54101563 10101101 -82.7754 10101101

154

X -0.54101563 10101100 -83.3164 10101100

155

X -0.54101563 10101100 -83.8574 10101100

156

X -0.54101563 10101011 -84.3984 10101011

157

X -0.54101563 10101011 -84.9395 10101011

158

X -0.54101563 10101010 -85.4805 10101010

159

X -0.54101563 10101001 -86.0215 10101001

160

X -0.54101563 10101001 -86.5625 10101001

161

X -0.54101563 10101000 -87.1035 10101000

162

X -0.54101563 10101000 -87.6445 10101000

163

X -0.54101563 10100111 -88.1855 10100111

164

X -0.54101563 10100111 -88.7266 10100111

165

X -0.54101563 10100110 -89.2676 10100110

166

X -0.54101563 10100110 -89.8086 10100110

167

X -0.54101563 10100101 -90.3496 10100101

168

X -0.54101563 10100101 -90.8906 10100101

-77

0.18

0.23

-78

0.63

0.82

-78

0.09

0.12

-79

0.55

0.70

-79

0.01

0.01

-80

0.47

0.59

-80

-0.07

0.09

-81

0.39

0.48

-82

0.85

1.04

-82

0.31

0.38

-83

0.77

0.93

-83

0.22

0.27

-84

0.68

0.82

-84

0.14

0.17

-85

0.60

0.71

-85

0.06

0.07

-86

0.52

0.61

-86

-0.02

-0.02

-87

0.44

0.51

-87

-0.10

0.12

-88

0.36

0.41

-89

0.81

0.92

-89

0.27

0.31

-90

0.73

0.82

-90

0.19

0.21

-91

0.65

0.72

-91

0.11

0.12

83

169

X -0.54101563 10100100 -91.4316 10100100

170

X -0.54101563 10100100 -91.9727 10100100

171

X -0.54101563 10100011 -92.5137 10100011

172

X -0.54101563 10100010 -93.0547 10100010

173

X -0.54101563 10100010 -93.5957 10100010

174

X -0.54101563 10100001 -94.1367 10100001

175

X -0.54101563 10100001 -94.6777 10100001

176

X -0.54101563 10100000 -95.2188 10100000

177

X -0.54101563 10100000 -95.7598 10100000

178

X -0.54101563 10011111 -96.3008 10011111

179

X -0.54101563 10011111 -96.8418 10011111

180

X -0.54101563 10011110 -97.3828 10011110

181

X -0.54101563 10011110 -97.9238 10011110

182

X -0.54101563 10011101 -98.4648 10011101

183

X -0.54101563 10011100 -99.0059 10011100

184

X -0.54101563 10011100 -99.5469 10011100

185

X -0.54101563 10011011 -100.088 10011011

186

X -0.54101563 10011011 -100.629 10011011

187

X -0.54101563 10011010

188

X -0.54101563 10011010 -101.711 10011010

189

X -0.54101563 10011001 -102.252 10011001

190

X -0.54101563 10011001 -102.793 10011001

191

X -0.54101563 10011000 -103.334 10011000

192

X -0.54101563 10011000 -103.875 10011000

193

X -0.54101563 10010111 -104.416 10010111

194

X -0.54101563 10010111 -104.957 10010111

195

X -0.54101563 10010110 -105.498 10010110

-101.17

10011010

-92

0.57

0.62

-92

0.03

0.03

-93

0.49

0.53

-93

-0.05

0.06

-94

0.40

0.43

-94

-0.14

0.15

-95

0.32

0.34

-96

0.78

0.82

-96

0.24

0.25

-97

0.70

0.73

-97

0.16

0.16

-98

0.62

0.63

-98

0.08

0.08

-99

0.54

0.54

-99

-0.01

0.01

-100

0.45

0.46

-100

-0.09

0.09

-101

0.37

0.37

-101

-0.17

0.17

-102

0.29

0.28

-103

0.75

0.73

-103

0.21

0.20

-104

0.67

0.64

-104

0.13

0.12

-105

0.58

0.56

-105

0.04

0.04

-106

0.50

0.48

84

196

X -0.54101563 10010101 -106.039 10010101

197

X -0.54101563 10010101

198

X -0.54101563 10010100 -107.121 10010100

199

X -0.54101563 10010100 -107.662 10010100

200

X -0.54101563 10010011 -108.203 10010011

201

X -0.54101563 10010011 -108.744 10010011

202

X -0.54101563 10010010 -109.285 10010010

203

X -0.54101563 10010010 -109.826 10010010

204

X -0.54101563 10010001 -110.367 10010001

205

X -0.54101563 10010001 -110.908 10010001

206

X -0.54101563 10010000 -111.449 10010000

207

X -0.54101563 10010000

208

X -0.54101563 10001111 -112.531 10001111

209

X -0.54101563 10001110 -113.072 10001110

210

X -0.54101563 10001110 -113.613 10001110

211

X -0.54101563 10001101 -114.154 10001101

212

X -0.54101563 10001101 -114.695 10001101

213

X -0.54101563 10001100 -115.236 10001100

214

X -0.54101563 10001100 -115.777 10001100

215

X -0.54101563 10001011 -116.318 10001011

216

X -0.54101563 10001011 -116.859 10001011

217

X -0.54101563 10001010

218

X -0.54101563 10001010 -117.941 10001010

219

X -0.54101563 10001001 -118.482 10001001

220

X -0.54101563 10001000 -119.023 10001000

221

X -0.54101563 10001000 -119.564 10001000

222

X -0.54101563 10000111 -120.105 10000111

-106.58

-111.99

-117.4

10010101

10010000

10001010

-106

-0.04

0.04

-107

0.42

0.39

-107

-0.12

0.11

-108

0.34

0.31

-109

0.80

0.74

-109

0.26

0.24

-110

0.72

0.65

-110

0.17

0.16

-111

0.63

0.57

-111

0.09

0.08

-112

0.55

0.49

-112

0.01

0.01

-113

0.47

0.42

-113

-0.07

0.06

-114

0.39

0.34

-114

-0.15

0.13

-115

0.31

0.27

-116

0.76

0.66

-116

0.22

0.19

-117

0.68

0.59

-117

0.14

0.12

-118

0.60

0.51

-118

0.06

0.05

-119

0.52

0.44

-119

-0.02

0.02

-120

0.44

0.36

-120

-0.11

0.09

85

223

X -0.54101563 10000111 -120.646 10000111

224

X -0.54101563 10000110 -121.188 10000110

225

X -0.54101563 10000110 -121.729 10000110

226

X -0.54101563 10000101

227

X -0.54101563 10000101 -122.811 10000101

228

X -0.54101563 10000100 -123.352 10000100

229

X -0.54101563 10000100 -123.893 10000100

230

X -0.54101563 10000011 -124.434 10000011

231

X -0.54101563 10000011 -124.975 10000011

232

X -0.54101563 10000010 -125.516 10000010

233

X -0.54101563 10000001 -126.057 10000001

234

X -0.54101563 10000001 -126.598 10000001

235

X -0.54101563 10000000 -127.139 10000000

236

X -0.54101563 10000000

237

X -0.54101563 10000000 -128.221 10000000

238

X -0.54101563 01111111 -128.762 01111111

239

X -0.54101563 01111110 -129.303 01111110

240

X -0.54101563 01111110 -129.844 01111110

241

X -0.54101563 01111101 -130.385 01111101

242

X -0.54101563 01111101 -130.926 01111101

243

X -0.54101563 01111100 -131.467 01111100

244

X -0.54101563 01111100 -132.008 01111100

245

X -0.54101563 01111011 -132.549 01111011

246

X -0.54101563 01111011

247

X -0.54101563 01111010 -133.631 01111010

248

X -0.54101563 01111010 -134.172 01111010

249

X -0.54101563 01111001 -134.713 01111001

-122.27

-127.68

-133.09

10000101

10000000

01111011

-121

0.35

0.29

-121

-0.19

0.16

-122

0.27

0.22

-123

0.73

0.60

-123

0.19

0.15

-124

0.65

0.53

-124

0.11

0.09

-125

0.57

0.45

-125

0.03

0.02

-126

0.48

0.39

-126

-0.06

0.05

-127

0.40

0.32

-127

-0.14

0.11

-128

0.32

0.25

-128

-0.22

0.17

127

-255.76

198.63

126

-255.30

197.45

126

-255.84

197.04

125

-255.39

195.87

125

-255.93

195.47

124

-255.47

194.32

124

-256.01

193.93

123

-255.55

192.80

123

-256.09

192.42

122

-255.63

191.30

122

-256.17

190.93

121

-255.71

189.82

86

250

X -0.54101563 01111000 -135.254 01111000

251

X -0.54101563 01111000 -135.795 01111000

252

X -0.54101563 01110111 -136.336 01110111

253

X -0.54101563 01110111 -136.877 01110111

254

X -0.54101563 01110110 -137.418 01110110

255

X -0.54101563 01110110 -137.959 01110110

120

-255.25

188.72

120

-255.80

188.37

119

-255.34

187.28

119

-255.88

186.94

118

-255.42

185.87

118

-255.96

185.53

Berikut adalah tabel hasil perbandingan antara hasil teori dengan hasil simulasi multipier B13. Hasil di
bawah ini diperoleh dari perhitungan bilangan multiplicand yang dikalikan dengan multiplier dimana pada hasil
teori diperoleh bilangan decimal yang berupa pecahan. Hasil teori in merupakan hasil yang sesungguhnya.
Sedangkan pada hasil simulasi diperoleh bilangan decimal berupa bilangan bulat. Hal ini dikarenakan hasil
simulasi pada program VHDL berupa bilangan biner, bukan bilangan pecahan.
Tabel 1.54 Hasil perhitungan dan Simulasi Multiplier B13

Hasil Simulasi
Biner
Desimal
-1
X -0.70717106 11111111 -0.70717 11111111

X -0.70717107 11111110 -1.41434 11111110

X -0.70717108 11111101 -2.12151 11111101

X -0.70717109 11111101 -2.82868 11111101

X -0.70717110 11111100 -3.53586 11111100

X -0.70717111 11111011 -4.24303 11111011

X -0.70717112 11111011

X -0.70717113 11111010 -5.65737 11111010

X -0.70717114 11111001 -6.36454 11111001

10

X -0.70717115 11111000 -7.07171 11111000

11

X -0.70717116 11111000 -7.77888 11111000

12

X -0.70717117 11110111 -8.48605 11110111

13

X -0.70717118 11110110 -9.19323 11110110

14

X -0.70717119 11110110

Multiflicand

Multiflier

Hasil Simulasi
Biner
Desimal

-4.9502

-9.9004

11111011

11110110

Ralat

% Ralat

0.29

41.41

-2

0.59

41.41

-3

0.88

41.41

-3

0.17

6.06

-4

0.46

13.13

-5

0.76

17.84

-5

0.05

1.01

-6

0.34

6.06

-7

0.64

9.98

-8

0.93

13.13

-8

0.22

2.84

-9

0.51

6.06

-10

0.81

8.78

-10

0.10

1.01

87

15

X -0.70717120 11110101 -10.6076 11110101

16

X -0.70717121 11110100 -11.3147 11110100

17

X -0.70717122 11110011 -12.0219 11110011

18

X -0.70717123 11110011 -12.7291 11110011

19

X -0.70717124 11110010 -13.4363 11110010

20

X -0.70717125 11110001 -14.1434 11110001

21

X -0.70717126 11110001 -14.8506 11110001

22

X -0.70717127 11110000 -15.5578 11110000

23

X -0.70717128 11101111 -16.2649 11101111

24

X -0.70717129 11101111 -16.9721 11101111

25

X -0.70717130 11101110 -17.6793 11101110

26

X -0.70717131 11101101 -18.3865 11101101

27

X -0.70717132 11101100 -19.0936 11101100

28

X -0.70717133 11101100 -19.8008 11101100

29

X -0.70717134 11101011

30

X -0.70717135 11101010 -21.2151 11101010

31

X -0.70717136 11101010 -21.9223 11101010

32

X -0.70717137 11101001 -22.6295 11101001

33

X -0.70717138 11101000 -23.3367 11101000

34

X -0.70717139 11100111 -24.0438 11100111

35

X -0.70717140 11100111

36

X -0.70717141 11100110 -25.4582 11100110

37

X -0.70717142 11100101 -26.1653 11100101

38

X -0.70717143 11100101 -26.8725 11100101

39

X -0.70717144 11100100 -27.5797 11100100

40

X -0.70717145 11100011 -28.2869 11100011

41

X -0.70717146 11100011

-20.508

-24.751

-28.994

11101011

11100111

11100011

-11

0.39

3.70

-12

0.69

6.06

-13

0.98

8.14

-13

0.27

2.13

-14

0.56

4.20

-15

0.86

6.06

-15

0.15

1.01

-16

0.44

2.84

-17

0.74

4.52

-17

0.03

0.16

-18

0.32

1.81

-19

0.61

3.34

-20

0.91

4.75

-20

0.20

1.01

-21

0.49

2.40

-22

0.78

3.70

-22

0.08

0.35

-23

0.37

1.64

-24

0.66

2.84

-25

0.96

3.98

-25

0.25

1.01

-26

0.54

2.13

-27

0.83

3.19

-27

0.13

0.47

-28

0.42

1.52

-29

0.71

2.52

-29

0.01

0.02

88

42

X -0.70717147 11100010 -29.7012 11100010

43

X -0.70717148 11100001 -30.4084 11100001

44

X -0.70717149 11100000 -31.1155 11100000

45

X -0.70717150 11100000 -31.8227 11100000

46

X -0.70717151 11011111 -32.5299 11011111

47

X -0.70717152 11011110 -33.2371 11011110

48

X -0.70717153 11011110 -33.9442 11011110

49

X -0.70717154 11011101 -34.6514 11011101

50

X -0.70717155 11011100 -35.3586 11011100

51

X -0.70717156 11011011 -36.0657 11011011

52

X -0.70717157 11011011 -36.7729 11011011

53

X -0.70717158 11011010 -37.4801 11011010

54

X -0.70717159 11011001 -38.1873 11011001

55

X -0.70717160 11011001 -38.8944 11011001

56

X -0.70717161 11011000 -39.6016 11011000

57

X -0.70717162 11010111 -40.3088 11010111

58

X -0.70717163 11010110

59

X -0.70717164 11010110 -41.7231 11010110

60

X -0.70717165 11010101 -42.4303 11010101

61

X -0.70717166 11010100 -43.1375 11010100

62

X -0.70717167 11010100 -43.8446 11010100

63

X -0.70717168 11010011 -44.5518 11010011

64

X -0.70717169 11010010

65

X -0.70717170 11010010 -45.9662 11010010

66

X -0.70717171 11010001 -46.6733 11010001

67

X -0.70717172 11010000 -47.3805 11010000

68

X -0.70717173 11001111 -48.0877 11001111

-41.016

-45.259

11010110

11010010

-30

0.30

1.01

-31

0.59

1.95

-32

0.88

2.84

-32

0.18

0.56

-33

0.47

1.45

-34

0.76

2.30

-34

0.06

0.16

-35

0.35

1.01

-36

0.64

1.81

-37

0.93

2.59

-37

0.23

0.62

-38

0.52

1.39

-39

0.81

2.13

-39

0.11

0.27

-40

0.40

1.01

-41

0.69

1.71

-42

0.98

2.40

-42

0.28

0.66

-43

0.57

1.34

-44

0.86

2.00

-44

0.16

0.35

-45

0.45

1.01

-46

0.74

1.64

-46

0.03

0.07

-47

0.33

0.70

-48

0.62

1.31

-49

0.91

1.90

89

69

X -0.70717174 11001111 -48.7949 11001111

70

X -0.70717175 11001110

71

X -0.70717176 11001101 -50.2092 11001101

72

X -0.70717177 11001101 -50.9164 11001101

73

X -0.70717178 11001100 -51.6235 11001100

74

X -0.70717179 11001011 -52.3307 11001011

75

X -0.70717180 11001010 -53.0379 11001010

76

X -0.70717181 11001010 -53.7451 11001010

77

X -0.70717182 11001001 -54.4522 11001001

78

X -0.70717183 11001000 -55.1594 11001000

79

X -0.70717184 11001000 -55.8666 11001000

80

X -0.70717185 11000111 -56.5737 11000111

81

X -0.70717186 11000110 -57.2809 11000110

82

X -0.70717187 11000110 -57.9881 11000110

83

X -0.70717188 11000101 -58.6953 11000101

84

X -0.70717189 11000100 -59.4024 11000100

85

X -0.70717190 11000011 -60.1096 11000011

86

X -0.70717191 11000011 -60.8168 11000011

87

X -0.70717192 11000010

88

X -0.70717193 11000001 -62.2311 11000001

89

X -0.70717194 11000001 -62.9383 11000001

90

X -0.70717195 11000000 -63.6455 11000000

91

X -0.70717196 10111111 -64.3526 10111111

92

X -0.70717197 10111110 -65.0598 10111110

93

X -0.70717198 10111110

94

X -0.70717199 10111101 -66.4742 10111101

95

X -0.70717200 10111100 -67.1813 10111100

-49.502

-61.524

-65.767

11001110

11000010

10111110

-49

0.21

0.42

-50

0.50

1.01

-51

0.79

1.58

-51

0.08

0.16

-52

0.38

0.73

-53

0.67

1.28

-54

0.96

1.81

-54

0.25

0.47

-55

0.55

1.01

-56

0.84

1.52

-56

0.13

0.24

-57

0.43

0.75

-58

0.72

1.26

-58

0.01

0.02

-59

0.30

0.52

-60

0.60

1.01

-61

0.89

1.48

-61

0.18

0.30

-62

0.48

0.77

-63

0.77

1.24

-63

0.06

0.10

-64

0.35

0.56

-65

0.65

1.01

-66

0.94

1.45

-66

0.23

0.35

-67

0.53

0.79

-68

0.82

1.22

90

96

X -0.70717201 10111100 -67.8885 10111100

97

X -0.70717202 10111011 -68.5957 10111011

98

X -0.70717203 10111010 -69.3029 10111010

99

X -0.70717204 10111010

100

X -0.70717205 10111001 -70.7172 10111001

101

X -0.70717206 10111000 -71.4244 10111000

102

X -0.70717207 10110111 -72.1316 10110111

103

X -0.70717208 10110111 -72.8387 10110111

104

X -0.70717209 10110110 -73.5459 10110110

105

X -0.70717210 10110101 -74.2531 10110101

106

X -0.70717211 10110101 -74.9602 10110101

107

X -0.70717212 10110100 -75.6674 10110100

108

X -0.70717213 10110011 -76.3746 10110011

109

X -0.70717214 10110010 -77.0818 10110010

110

X -0.70717215 10110010 -77.7889 10110010

111

X -0.70717216 10110001 -78.4961 10110001

112

X -0.70717217 10110000 -79.2033 10110000

113

X -0.70717218 10110000 -79.9105 10110000

114

X -0.70717219 10101111 -80.6176 10101111

115

X -0.70717220 10101110 -81.3248 10101110

116

X -0.70717221 10101101

117

X -0.70717222 10101101 -82.7391 10101101

118

X -0.70717223 10101100 -83.4463 10101100

119

X -0.70717224 10101011 -84.1535 10101011

120

X -0.70717225 10101011 -84.8607 10101011

121

X -0.70717226 10101010 -85.5678 10101010

122

X -0.70717227 10101001

-70.01

-82.032

-86.275

10111010

10101101

10101001

-68

0.11

0.16

-69

0.40

0.59

-70

0.70

1.01

-70

-0.01

-0.01

-71

0.28

0.40

-72

0.58

0.81

-73

0.87

1.20

-73

0.16

0.22

-74

0.45

0.62

-75

0.75

1.01

-75

0.04

0.05

-76

0.33

0.44

-77

0.63

0.82

-78

0.92

1.19

-78

0.21

0.27

-79

0.50

0.64

-80

0.80

1.01

-80

0.09

0.11

-81

0.38

0.47

-82

0.68

0.83

-83

0.97

1.18

-83

0.26

0.32

-84

0.55

0.66

-85

0.85

1.01

-85

0.14

0.16

-86

0.43

0.51

-87

0.72

0.84

91

123

X -0.70717228 10101001 -86.9822 10101001

124

X -0.70717229 10101000 -87.6894 10101000

125

X -0.70717230 10100111 -88.3965 10100111

126

X -0.70717231 10100110 -89.1037 10100110

127

X -0.70717232 10100110 -89.8109 10100110

128

X -0.70717233 10100101 -90.5181 10100101

129

X -0.70717234 10100100 -91.2252 10100100

130

X -0.70717235 10100100 -91.9324 10100100

131

X -0.70717236 10100011 -92.6396 10100011

132

X -0.70717237 10100010 -93.3468 10100010

133

X -0.70717238 10100001 -94.0539 10100001

134

X -0.70717239 10100001 -94.7611 10100001

135

X -0.70717240 10100000 -95.4683 10100000

136

X -0.70717241 10011111 -96.1754 10011111

137

X -0.70717242 10011111 -96.8826 10011111

138

X -0.70717243 10011110 -97.5898 10011110

139

X -0.70717244 10011101

140

X -0.70717245 10011101 -99.0041 10011101

141

X -0.70717246 10011100 -99.7113 10011100

142

X -0.70717247 10011011 -100.418 10011011

143

X -0.70717248 10011010 -101.126 10011010

144

X -0.70717249 10011010 -101.833 10011010

145

X -0.70717250 10011001

146

X -0.70717251 10011000 -103.247 10011000

147

X -0.70717252 10011000 -103.954 10011000

148

X -0.70717253 10010111 -104.662 10010111

149

X -0.70717254 10010110 -105.369 10010110

-98.297

-102.54

10011101

10011001

-87

0.02

0.02

-88

0.31

0.35

-89

0.60

0.68

-90

0.90

1.01

-90

0.19

0.21

-91

0.48

0.53

-92

0.77

0.85

-92

0.07

0.07

-93

0.36

0.39

-94

0.65

0.70

-95

0.95

1.01

-95

0.24

0.25

-96

0.53

0.56

-97

0.82

0.86

-97

0.12

0.12

-98

0.41

0.42

-99

0.70

0.72

-99

0.00

0.00

-100

0.29

0.29

-101

0.58

0.58

-102

0.87

0.86

-102

0.17

0.16

-103

0.46

0.45

-104

0.75

0.73

-104

0.05

0.04

-105

0.34

0.32

-106

0.63

0.60

92

150

X -0.70717255 10010101 -106.076 10010101

151

X -0.70717256 10010101 -106.783 10010101

152

X -0.70717257 10010100

153

X -0.70717258 10010011 -108.197 10010011

154

X -0.70717259 10010011 -108.905 10010011

155

X -0.70717260 10010010 -109.612 10010010

156

X -0.70717261 10010001 -110.319 10010001

157

X -0.70717262 10010000 -111.026 10010000

158

X -0.70717263 10010000 -111.733 10010000

159

X -0.70717264 10001111

160

X -0.70717265 10001110 -113.148 10001110

161

X -0.70717266 10001110 -113.855 10001110

162

X -0.70717267 10001101 -114.562 10001101

163

X -0.70717268 10001100 -115.269 10001100

164

X -0.70717269 10001100 -115.976 10001100

165

X -0.70717270 10001011 -116.683 10001011

166

X -0.70717271 10001010 -117.391 10001010

167

X -0.70717272 10001001 -118.098 10001001

168

X -0.70717273 10001001 -118.805 10001001

169

X -0.70717274 10001000 -119.512 10001000

170

X -0.70717275 10000111 -120.219 10000111

171

X -0.70717276 10000111 -120.927 10000111

172

X -0.70717277 10000110 -121.634 10000110

173

X -0.70717278 10000101 -122.341 10000101

174

X -0.70717279 10000100 -123.048 10000100

175

X -0.70717280 10000100 -123.755 10000100

176

X -0.70717281 10000011 -124.462 10000011

-107.49

-112.44

10010100

10001111

-107

0.92

0.87

-107

0.22

0.20

-108

0.51

0.47

-109

0.80

0.74

-109

0.09

0.09

-110

0.39

0.35

-111

0.68

0.62

-112

0.97

0.88

-112

0.27

0.24

-113

0.56

0.50

-114

0.85

0.75

-114

0.14

0.13

-115

0.44

0.38

-116

0.73

0.63

-116

0.02

0.02

-117

0.32

0.27

-118

0.61

0.52

-119

0.90

0.76

-119

0.19

0.16

-120

0.49

0.41

-121

0.78

0.65

-121

0.07

0.06

-122

0.37

0.30

-123

0.66

0.54

-124

0.95

0.77

-124

0.25

0.20

-125

0.54

0.43

93

177

X -0.70717282 10000010

-125.17

178

X -0.70717283 10000010 -125.877 10000010

179

X -0.70717284 10000001 -126.584 10000001

180

X -0.70717285 10000000 -127.291 10000000

181

X -0.70717286 10000000 -127.998 10000000

182

X -0.70717287 01111111 -128.705 01111111

183

X -0.70717288 01111110 -129.413 01111110

184

X -0.70717289 01111110

185

X -0.70717290 01111101 -130.827 01111101

186

X -0.70717291 01111100 -131.534 01111100

187

X -0.70717292 01111011 -132.241 01111011

188

X -0.70717293 01111011 -132.949 01111011

189

X -0.70717294 01111010 -133.656 01111010

190

X -0.70717295 01111001 -134.363 01111001

191

X -0.70717296 01111001

192

X -0.70717297 01111000 -135.777 01111000

193

X -0.70717298 01110111 -136.484 01110111

194

X -0.70717299 01110111 -137.192 01110111

195

X -0.70717300 01110110 -137.899 01110110

196

X -0.70717301 01110101 -138.606 01110101

197

X -0.70717302 01110100 -139.313 01110100

198

X -0.70717303 01110100

199

X -0.70717304 01110011 -140.727 01110011

200

X -0.70717305 01110010 -141.435 01110010

201

X -0.70717306 01110010 -142.142 01110010

202

X -0.70717307 01110001 -142.849 01110001

203

X -0.70717308 01110000 -143.556 01110000

-130.12

-135.07

-140.02

10000010

01111110

01111001

01110100

-126

0.83

0.66

-126

0.12

0.10

-127

0.42

0.33

-128

0.71

0.56

-128

0.00

0.00

127

-255.71

198.68

126

-255.41

197.36

126

-256.12

196.83

125

-255.83

195.55

124

-255.53

194.27

123

-255.24

193.01

123

-255.95

192.52

122

-255.66

191.28

121

-255.36

190.05

121

-256.07

189.58

120

-255.78

188.38

119

-255.48

187.19

119

-256.19

186.74

118

-255.90

185.57

117

-255.61

184.41

116

-255.31

183.27

116

-256.02

182.85

115

-255.73

181.72

114

-255.44

180.60

114

-256.14

180.20

113

-255.85

179.10

112

-255.56

178.02

94

204

X -0.70717309 01101111 -144.263 01101111

205

X -0.70717310 01101111

206

X -0.70717311 01101110 -145.678 01101110

207

X -0.70717312 01101101 -146.385 01101101

208

X -0.70717313 01101101 -147.092 01101101

209

X -0.70717314 01101100 -147.799 01101100

210

X -0.70717315 01101011 -148.506 01101011

211

X -0.70717316 01101011 -149.214 01101011

212

X -0.70717317 01101010 -149.921 01101010

213

X -0.70717318 01101001 -150.628 01101001

214

X -0.70717319 01101000 -151.335 01101000

215

X -0.70717320 01101000 -152.042 01101000

216

X -0.70717321 01100111 -152.749 01100111

217

X -0.70717322 01100110 -153.457 01100110

218

X -0.70717323 01100110 -154.164 01100110

219

X -0.70717324 01100101 -154.871 01100101

220

X -0.70717325 01100100 -155.578 01100100

221

X -0.70717326 01100011 -156.285 01100011

222

X -0.70717327 01100011 -156.992 01100011

223

X -0.70717328 01100010

224

X -0.70717329 01100001 -158.407 01100001

225

X -0.70717330 01100001 -159.114 01100001

226

X -0.70717331 01100000 -159.821 01100000

227

X -0.70717332 01011111 -160.528 01011111

228

X -0.70717333 01011111 -161.236 01011111

229

X -0.70717334 01011110 -161.943 01011110

230

X -0.70717335 01011101

-144.97

-157.7

-162.65

01101111

01100010

01011101

111

-255.26

176.94

111

-255.97

176.57

110

-255.68

175.51

109

-255.39

174.46

109

-256.09

174.10

108

-255.80

173.07

107

-255.51

172.05

107

-256.21

171.71

106

-255.92

170.70

105

-255.63

169.71

104

-255.34

168.72

104

-256.04

168.40

103

-255.75

167.43

102

-255.46

166.47

102

-256.16

166.16

101

-255.87

165.22

100

-255.58

164.28

99

-255.29

163.35

99

-255.99

163.06

98

-255.70

162.14

97

-255.41

161.23

97

-256.11

160.96

96

-255.82

160.07

95

-255.53

159.18

95

-256.24

158.92

94

-255.94

158.05

93

-255.65

157.18

95

231

X -0.70717336 01011100 -163.357 01011100

232

X -0.70717337 01011100 -164.064 01011100

233

X -0.70717338 01011011 -164.771 01011011

234

X -0.70717339 01011010 -165.479 01011010

235

X -0.70717340 01011010 -166.186 01011010

236

X -0.70717341 01011011 -166.893 01011011

237

X -0.70717342 01011010

238

X -0.70717343 01010111 -168.307 01010111

239

X -0.70717344 01010111 -169.014 01010111

240

X -0.70717345 01010110 -169.722 01010110

241

X -0.70717346 01010101 -170.429 01010101

242

X -0.70717347 01010101 -171.136 01010101

243

X -0.70717348 01010100 -171.843 01010100

244

X -0.70717349 01010011

245

X -0.70717350 01010011 -173.258 01010011

246

X -0.70717351 01010010 -173.965 01010010

247

X -0.70717352 01010001 -174.672 01010001

248

X -0.70717353 01010000 -175.379 01010000

249

X -0.70717354 01010000 -176.086 01010000

250

X -0.70717355 01001111 -176.793 01001111

251

X -0.70717356 01001110 -177.501 01001110

252

X -0.70717357 01001110 -178.208 01001110

253

X -0.70717358 01001101 -178.915 01001101

254

X -0.70717359 01001100 -179.622 01001100

255

X -0.70717360 01001011 -180.329 01001011

-167.6

-172.55

01011010

01010011

92

-255.36

156.32

92

-256.06

156.08

91

-255.77

155.23

90

-255.48

154.39

90

-256.19

154.16

89

-255.89

153.33

88

-255.60

152.51

87

-255.31

151.69

87

-256.01

151.48

86

-255.72

150.67

85

-255.43

149.87

85

-256.14

149.67

84

-255.84

148.88

83

-255.55

148.10

83

-256.26

147.91

82

-255.97

147.14

81

-255.67

146.37

80

-255.38

145.62

80

-256.09

145.43

79

-255.79

144.69

78

-255.50

143.94

78

-256.21

143.77

77

-255.92

143.04

76

-255.62

142.31

75

-255.33

141.59

Berikut adalah tabel hasil perbandingan antara hasil teori dengan hasil simulasi multipier B15. Hasil di
bawah ini diperoleh dari perhitungan bilangan multiplicand yang dikalikan dengan multiplier dimana pada hasil

96

teori diperoleh bilangan decimal yang berupa pecahan. Hasil teori in merupakan hasil yang sesungguhnya.
Sedangkan pada hasil simulasi diperoleh bilangan decimal berupa bilangan bulat. Hal ini dikarenakan hasil
simulasi pada program VHDL berupa bilangan biner, bukan bilangan pecahan.
Tabel 1.55 Hasil perhitungan dan Simulasi Multiplier B15
Multiflicand

Multiflier

Hasil Simulasi
Biner

Desimal

-0.92388

0000000000

-0.92388

-0.92388

1111111111

-1.847759

-0.92388

1111111110

-2.771639

-0.92388

1111111101

-3.695518

-0.92388

1111111100

-4.619398

-0.92388

1111111011

-5.543277

-0.92388

1111111010

-6.467157

-0.92388

1111111001

-7.391036

-0.92388

1111111000

-8.314916

10

-0.92388

1111110111

-9.238795

11

-0.92388

1111110110

-10.16267

12

-0.92388

1111110101

-11.08655

13

-0.92388

1111110100

-12.01043

14

-0.92388

1111110100

-12.93431

15

-0.92388

1111110011

-13.85819

16

-0.92388

1111110010

-14.78207

17

-0.92388

1111110001

-15.70595

18

-0.92388

1111110000

-16.62983

19

-0.92388

1111101111

-17.55371

20

-0.92388

1111101110

-18.47759

21

-0.92388

1111101101

-19.40147

22

-0.92388

1111101100

-20.32535

23

-0.92388

1111101011

-21.24923

24

-0.92388

1111101010

-22.17311

Hasil Simulasi
Biner
11111111
11111110
11111101
11111100
11111011
11111010
11111001
11111000
11110111
11110110
11110101
11110100
11110011
11110011
11110010
11110001
11110000
11101111
11101110
11101101
11101100
11101011
11101010
11101001

Desimal
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23

Ralat

% Ralat

0.08

8.24

0.15

8.24

0.23

8.24

0.30

8.24

0.38

8.24

0.46

8.24

0.53

8.24

0.61

8.24

0.69

8.24

0.76

8.24

0.84

8.24

0.91

8.24

0.99

8.24

0.07

0.51

0.14

1.02

0.22

1.47

0.29

1.87

0.37

2.23

0.45

2.54

0.52

2.83

0.60

3.08

0.67

3.32

0.75

3.53

0.83

3.73

97

25

-0.92388

1111101001

-23.09699

26

-0.92388

1111101000

-24.02087

27

-0.92388

1111101000

-24.94475

28

-0.92388

1111100111

-25.86863

29

-0.92388

1111100110

-26.79251

30

-0.92388

1111100101

-27.71639

31

-0.92388

1111100100

-28.64027

32

-0.92388

1111100011

-29.56415

33

-0.92388

1111100010

-30.48802

34

-0.92388

1111100001

-31.4119

35

-0.92388

1111100000

-32.33578

36

-0.92388

1111011111

-33.25966

37

-0.92388

1111011110

-34.18354

38

-0.92388

1111011101

-35.10742

39

-0.92388

1111011100

-36.0313

40

-0.92388

1111011100

-36.95518

41

-0.92388

1111011011

-37.87906

42

-0.92388

1111011010

-38.80294

43

-0.92388

1111011001

-39.72682

44

-0.92388

1111011000

-40.6507

45

-0.92388

1111010111

-41.57458

46

-0.92388

1111010110

-42.49846

47

-0.92388

1111010101

-43.42234

48

-0.92388

1111010100

-44.34622

49

-0.92388

1111010011

-45.2701

50

-0.92388

1111010010

-46.19398

51

-0.92388

1111010001

-47.11786

52

-0.92388

1111010000

-48.04174

53

-0.92388

1111010000

-48.96562

11101000
11100111
11100111
11100110
11100101
11100100
11100011
11100010
11100001
11100000
11011111
11011110
11011101
11011100
111011011
11011011
11011010
11011001
11011000
11010111
11010110
11010101
11010100
11010011
11010010
11010001
11010000
11001111
11001111

-24
-25
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-49

0.90

3.91

0.98

4.08

0.06

0.22

0.13

0.51

0.21

0.77

0.28

1.02

0.36

1.26

0.44

1.47

0.51

1.68

0.59

1.87

0.66

2.05

0.74

2.23

0.82

2.39

0.89

2.54

0.97

2.69

0.04

0.12

0.12

0.32

0.20

0.51

0.27

0.69

0.35

0.86

0.43

1.02

0.50

1.18

0.58

1.33

0.65

1.47

0.73

1.61

0.81

1.74

0.88

1.87

0.96

1.99

0.03

0.07

98

54

-0.92388

1111001111

-49.88949

55

-0.92388

1111001110

-50.81337

56

-0.92388

1111001101

-51.73725

57

-0.92388

1111001100

-52.66113

58

-0.92388

1111001011

-53.58501

59

-0.92388

1111001010

-54.50889

60

-0.92388

1111001001

-55.43277

61

-0.92388

1111001000

-56.35665

62

-0.92388

1111000111

-57.28053

63

-0.92388

1111000110

-58.20441

64

-0.92388

1111000101

-59.12829

65

-0.92388

1111000100

-60.05217

66

-0.92388

1111000100

-60.97605

67

-0.92388

1111000011

-61.89993

68

-0.92388

1111000010

-62.82381

69

-0.92388

1111000001

-63.74769

70

-0.92388

1111000000

-64.67157

71

-0.92388

1110111111

-65.59545

72

-0.92388

1110111110

-66.51933

73

-0.92388

1110111101

-67.44321

74

-0.92388

1110111100

-68.36709

75

-0.92388

1110111011

-69.29096

76

-0.92388

1110111010

-70.21484

77

-0.92388

1110111001

-71.13872

78

-0.92388

1110111000

-72.0626

79

-0.92388

1110111000

-72.98648

80

-0.92388

1110110111

-73.91036

81

-0.92388

1110110110

-74.83424

82

-0.92388

1110110101

-75.75812

11001110
11001101
11001100
11001011
11001010
11001001
11001000
11000111
11000110
11000101
11000100
11000011
11000011
11000010
11000001
11000000
10111111
10111110
10111101
10111100
10111011
10111010
10111001
10111000
10110111
10110111
10110110
10110101
10110100

-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-73
-74
-75
-76

0.11

0.22

0.19

0.37

0.26

0.51

0.34

0.64

0.41

0.77

0.49

0.90

0.57

1.02

0.64

1.14

0.72

1.26

0.80

1.37

0.87

1.47

0.95

1.58

0.02

0.04

0.10

0.16

0.18

0.28

0.25

0.40

0.33

0.51

0.40

0.62

0.48

0.72

0.56

0.83

0.63

0.93

0.71

1.02

0.79

1.12

0.86

1.21

0.94

1.30

0.01

0.02

0.09

0.12

0.17

0.22

0.24

0.32

99

83

-0.92388

1110110100

-76.682

84

-0.92388

1110110011

-77.60588

85

-0.92388

1110110010

-78.52976

86

-0.92388

1110110001

-79.45364

87

-0.92388

1110110000

-80.37752

88

-0.92388

1110101111

-81.3014

89

-0.92388

1110101110

-82.22528

90

-0.92388

1110101101

-83.14916

91

-0.92388

1110101100

-84.07304

92

-0.92388

1110101100

-84.99692

93

-0.92388

1110101011

-85.9208

94

-0.92388

1110101010

-86.84468

95

-0.92388

1110101001

-87.76856

96

-0.92388

1110101000

-88.69244

97

-0.92388

1110100111

-89.61631

98

-0.92388

1110100110

-90.54019

99

-0.92388

1110100101

-91.46407

100

-0.92388

1110100100

-92.38795

101

-0.92388

1110100011

-93.31183

102

-0.92388

1110100010

-94.23571

103

-0.92388

1110100001

-95.15959

104

-0.92388

1110100000

-96.08347

105

-0.92388

1110011111

-97.00735

106

-0.92388

1110011111

-97.93123

107

-0.92388

1110011110

-98.85511

108

-0.92388

1110011101

-99.77899

109

-0.92388

1110011100

-100.7029

110

-0.92388

1110011011

-101.6267

111

-0.92388

1110011010

-102.5506

10110011
10110010
10110001
10110000
10101111
10101110
10101101
10101100
10101011
10101011
10101010
10101001
10101000
10100111
10100110
10100101
10100100
10100011
10100010
10100001
10100000
10011111
10011110
10011110
10011101
10011100
10011011
10011010
10011001

-77
-78
-79
-80
-81
-82
-83
-84
-85
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-98
-99
-100
-101
-102
-103

0.32

0.41

0.39

0.51

0.47

0.60

0.55

0.69

0.62

0.77

0.70

0.86

0.77

0.94

0.85

1.02

0.93

1.10

0.00

0.00

0.08

0.09

0.16

0.18

0.23

0.26

0.31

0.35

0.38

0.43

0.46

0.51

0.54

0.59

0.61

0.66

0.69

0.74

0.76

0.81

0.84

0.88

0.92

0.95

0.99

1.02

0.07

0.07

0.14

0.15

0.22

0.22

0.30

0.30

0.37

0.37

0.45

0.44

100

112

-0.92388

1110011001

-103.4745

113

-0.92388

1110011000

-104.3984

114

-0.92388

1110010111

-105.3223

115

-0.92388

1110010110

-106.2461

116

-0.92388

1110010101

-107.17

117

-0.92388

1110010100

-108.0939

118

-0.92388

1110010011

-109.0178

119

-0.92388

1110010011

-109.9417

120

-0.92388

1110010010

-110.8655

121

-0.92388

1110010001

-111.7894

122

-0.92388

1110010000

-112.7133

123

-0.92388

1110001111

-113.6372

124

-0.92388

1110001110

-114.5611

125

-0.92388

1110001101

-115.4849

126

-0.92388

1110001100

-116.4088

127

-0.92388

1110001011

-117.3327

128

-0.92388

1110001010

-118.2566

129

-0.92388

1110001001

-119.1805

130

-0.92388

1110001000

-120.1043

131

-0.92388

1110000111

-121.0282

132

-0.92388

1110000111

-121.9521

133

-0.92388

1110000110

-122.876

134

-0.92388

1110000101

-123.7999

135

-0.92388

1110000100

-124.7237

136

-0.92388

1110000011

-125.6476

137

-0.92388

1110000010

-126.5715

138

-0.92388

1110000001

-127.4954

139

-0.92388

1110000000

-128.4193

140

-0.92388

1101111111

-129.3431

0011000
10010111
10010110
10010101
10010100
10010011
10010010
10010010
10010001
10010000
10001111
10001110
10001101
10001100
10001011
10001010
10001001
10001000
10000111
0000110
10000110
10000101
10000100
10000011
10000010
10000001
10000000
01111111
01111110

-104
-105
-106
-107
-108
-109
-110
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-122
-123
-124
-125
-126
-127
-128
127
126

0.53

0.51

0.60

0.58

0.68

0.64

0.75

0.71

0.83

0.77

0.91

0.84

0.98

0.90

0.06

0.05

0.13

0.12

0.21

0.19

0.29

0.25

0.36

0.32

0.44

0.38

0.52

0.45

0.59

0.51

0.67

0.57

0.74

0.63

0.82

0.69

0.90

0.75

0.97

0.80

0.05

0.04

0.12

0.10

0.20

0.16

0.28

0.22

0.35

0.28

0.43

0.34

0.50

0.40

-255.42

198.89

-255.34

197.42

101

141

-0.92388

1101111110

-130.267

142

-0.92388

1101111101

-131.1909

143

-0.92388

1101111100

-132.1148

144

-0.92388

1101111011

-133.0387

145

-0.92388

1101111011

-133.9625

146

-0.92388

1101111010

-134.8864

147

-0.92388

1101111001

-135.8103

148

-0.92388

1101111000

-136.7342

149

-0.92388

1101110111

-137.6581

150

-0.92388

1101110110

-138.5819

151

-0.92388

1101110101

-139.5058

152

-0.92388

1101110100

-140.4297

153

-0.92388

1101110011

-141.3536

154

-0.92388

1101110010

-142.2774

155

-0.92388

1101110001

-143.2013

156

-0.92388

1101110000

-144.1252

157

-0.92388

1101101111

-145.0491

158

-0.92388

1101101111

-145.973

159

-0.92388

1101101110

-146.8968

160

-0.92388

1101101101

-147.8207

161

-0.92388

1101101100

-148.7446

162

-0.92388

1101101011

-149.6685

163

-0.92388

1101101010

-150.5924

164

-0.92388

1101101001

-151.5162

165

-0.92388

1101101000

-152.4401

166

-0.92388

1101100111

-153.364

167

-0.92388

1101100110

-154.2879

168

-0.92388

1101100101

-155.2118

169

-0.92388

1101100100

-156.1356

01111101
01111100
01111100
01111011
01111010
01111001
01111000
01110111
01110110
01110101
01110100
01110011
01110010
01110001
01110000
01110000
01101111
01101110
01101101
01101100
01101011
01101010
01101001
01101000
01100111
01100110
01100101
01100100
01100100

125
124
124
123
122
121
120
119
118
117
116
115
114
113
112
112
111
110
109
108
107
106
105
104
103
102
101
100
100

-255.27

195.96

-255.19

194.52

-256.11

193.86

-256.04

192.45

-255.96

191.07

-255.89

189.71

-255.81

188.36

-255.73

187.03

-255.66

185.72

-255.58

184.43

-255.51

183.15

-255.43

181.89

-255.35

180.65

-255.28

179.42

-255.20

178.21

-256.13

177.71

-256.05

176.53

-255.97

175.36

-255.90

174.20

-255.82

173.06

-255.74

171.94

-255.67

170.82

-255.59

169.72

-255.52

168.64

-255.44

167.57

-255.36

166.51

-255.29

165.46

-255.21

164.43

-256.14

164.05

102

170

-0.92388

1101100011

-157.0595

171

-0.92388

1101100011

-157.9834

172

-0.92388

1101100010

-158.9073

173

-0.92388

1101100001

-159.8312

174

-0.92388

1101100000

-160.755

175

-0.92388

1101011111

-161.6789

176

-0.92388

1101011110

-162.6028

177

-0.92388

1101011101

-163.5267

178

-0.92388

1101011100

-164.4506

179

-0.92388

1101011011

-165.3744

180

-0.92388

1101011010

-166.2983

181

-0.92388

1101011001

-167.2222

182

-0.92388

1101011000

-168.1461

183

-0.92388

1101010111

-169.07

184

-0.92388

1101010111

-169.9938

185

-0.92388

1101010110

-170.9177

186

-0.92388

1101010101

-171.8416

187

-0.92388

1101010100

-172.7655

188

-0.92388

1101010011

-173.6894

189

-0.92388

1101010010

-174.6132

190

-0.92388

1101010001

-175.5371

191

-0.92388

1101010000

-176.461

192

-0.92388

1101001111

-177.3849

193

-0.92388

1101001110

-178.3087

194

-0.92388

1101001101

-179.2326

195

-0.92388

1101001100

-180.1565

196

-0.92388

1101001011

-181.0804

197

-0.92388

1101001010

-182.0043

198

-0.92388

1101001010

-182.9281

01100011
01100010
01100001
01100000
01011111
01011110
01011101
01011100
01011011
01011010
01011001
01011000
01011000
01010111
01010110
01010101
01010100
01010011
01010010
01010001
01010000
01001111
01001110
01001101
01001100
01001100
01001011
01001010
01001001

99
98
97
96
95
94
93
92
91
90
89
88
88
87
86
85
84
83
82
81
80
79
78
77
76
76
75
74
73

-256.06

163.03

-255.98

162.03

-255.91

161.04

-255.83

160.06

-255.76

159.10

-255.68

158.14

-255.60

157.19

-255.53

156.26

-255.45

155.34

-255.37

154.42

-255.30

153.52

-255.22

152.62

-256.15

152.34

-256.07

151.46

-255.99

150.59

-255.92

149.73

-255.84

148.88

-255.77

148.04

-255.69

147.21

-255.61

146.39

-255.54

145.57

-255.46

144.77

-255.38

143.97

-255.31

143.18

-255.23

142.40

-256.16

142.19

-256.08

141.42

-256.00

140.66

-255.93

139.91

103

199

-0.92388

1101001001

-183.852

200

-0.92388

1101001000

-184.7759

201

-0.92388

1101000111

-185.6998

202

-0.92388

1101000110

-186.6237

203

-0.92388

1101000101

-187.5475

204

-0.92388

1101000100

-188.4714

205

-0.92388

1101000011

-189.3953

206

-0.92388

1101000010

-190.3192

207

-0.92388

1101000001

-191.2431

208

-0.92388

1101000000

-192.1669

209

-0.92388

1100111111

-193.0908

210

-0.92388

1100111110

-194.0147

211

-0.92388

1100111110

-194.9386

212

-0.92388

1100111101

-195.8625

213

-0.92388

1100111100

-196.7863

214

-0.92388

1100111011

-197.7102

215

-0.92388

1100111010

-198.6341

216

-0.92388

1100111001

-199.558

217

-0.92388

1100111000

-200.4819

218

-0.92388

1100110111

-201.4057

219

-0.92388

1100110110

-202.3296

220

-0.92388

1100110101

-203.2535

221

-0.92388

1100110100

-204.1774

222

-0.92388

1100110011

-205.1013

223

-0.92388

1100110010

-206.0251

224

-0.92388

1100110010

-206.949

225

-0.92388

1100110001

-207.8729

226

-0.92388

1100110000

-208.7968

227

-0.92388

1100101111

-209.7207

01001000
01000111
01000110
01000101
01000100
01000011
01000010
01000001
01000000
01000000
00111111
00111110
00111101
00111100
00111011
00111010
00111001
00111000
00110111
00110110
00110101
00110100
00110100
00110011
00110010
00110001
00110000
00101111
00101110

72
71
70
69
68
67
66
65
64
64
63
62
61
60
59
58
57
56
55
54
53
52
52
51
50
49
48
47
46

-255.85

139.16

-255.78

138.42

-255.70

137.70

-255.62

136.97

-255.55

136.26

-255.47

135.55

-255.40

134.85

-255.32

134.15

-255.24

133.47

-256.17

133.30

-256.09

132.63

-256.01

131.96

-255.94

131.29

-255.86

130.63

-255.79

129.98

-255.71

129.34

-255.63

128.70

-255.56

128.06

-255.48

127.43

-255.41

126.81

-255.33

126.19

-255.25

125.58

-256.18

125.47

-256.10

124.87

-256.03

124.27

-255.95

123.68

-255.87

123.09

-255.80

122.51

-255.72

121.93

104

228

-0.92388

1100101110

-210.6445

229

-0.92388

1100101101

-211.5684

230

-0.92388

1100101100

-212.4923

231

-0.92388

1100101011

-213.4162

232

-0.92388

1100101010

-214.3401

233

-0.92388

1100101001

-215.2639

234

-0.92388

1100101000

-216.1878

235

-0.92388

1100100111

-217.1117

236

-0.92388

1100100110

-218.0356

237

-0.92388

1100100110

-218.9594

238

-0.92388

1100100101

-219.8833

239

-0.92388

1100100100

-220.8072

240

-0.92388

1100100011

-221.7311

241

-0.92388

1100100010

-222.655

242

-0.92388

1100100001

-223.5788

243

-0.92388

1100100000

-224.5027

244

-0.92388

1100011111

-225.4266

245

-0.92388

1100011110

-226.3505

246

-0.92388

1100011101

-227.2744

247

-0.92388

1100011100

-228.1982

248

-0.92388

1100011011

-229.1221

249

-0.92388

1100011010

-230.046

250

-0.92388

1100011010

-230.9699

251

-0.92388

1100011001

-231.8938

252

-0.92388

1100011000

-232.8176

253

-0.92388

1100010111

-233.7415

254

-0.92388

1100010110

-234.6654

255

-0.92388

1100010101

-235.5893

00101101
00101100
00101011
00101010
00101001
00101000
00101000
00100111
00100110
00100101
00100100
00100011
00100010
00100001
00100000
00011111
00011110
00011101
00011100
00011100
00011011
00011010
00011001
00011000
00010111
00010110
00010101
00010100

45
44
43
42
41
40
40
39
38
37
36
35
34
33
32
31
30
29
28
28
27
26
25
24
23
22
21
20

-255.64

121.36

-255.57

120.80

-255.49

120.24

-255.42

119.68

-255.34

119.13

-255.26

118.58

-256.19

118.50

-256.11

117.96

-256.04

117.43

-255.96

116.90

-255.88

116.37

-255.81

115.85

-255.73

115.33

-255.66

114.82

-255.58

114.31

-255.50

113.81

-255.43

113.31

-255.35

112.81

-255.27

112.32

-256.20

112.27

-256.12

111.78

-256.05

111.30

-255.97

110.82

-255.89

110.35

-255.82

109.88

-255.74

109.41

-255.67

108.95

-255.59

108.49

105

Berikut adalah tabel hasil perbandingan antara hasil teori dengan hasil simulasi multipier B16. Hasil di
bawah ini diperoleh dari perhitungan bilangan multiplicand yang dikalikan dengan multiplier dimana pada hasil
teori diperoleh bilangan decimal yang berupa pecahan. Hasil teori in merupakan hasil yang sesungguhnya.
Sedangkan pada hasil simulasi diperoleh bilangan decimal berupa bilangan bulat. Hal ini dikarenakan hasil
simulasi pada program VHDL berupa bilangan biner, bukan bilangan pecahan.
Tabel 1.56 Hasil perhitungan dan Simulasi Multiplier B16
Multiflicand

Multiflier

Hasil Simulasi
Biner
Desimal

Hasil Simulasi
Biner
Desimal

X 0.541016 00000000 0.541016 00000000

X 0.541016 00000001 1.082031 00000001

X 0.541016 00000001 1.623047 00000001

X 0.541016 00000010 2.164063 00000010

X 0.541016 00000010 2.705078 00000010

X 0.541016 00000011 3.246094 00000011

X 0.541016 00000011 3.787109 00000011

X 0.541016 00000100 4.328125 00000100

X 0.541016 00000100 4.869141 00000100

10

X 0.541016 00000101 5.410156 00000101

11

X 0.541016 00000101 5.951172 00000101

12

X 0.541016 00000110 6.492188 00000110

13

X 0.541016 00000111 7.033203 00000111

14

X 0.541016 00000111 7.574219 00000111

15

X 0.541016 00001000 8.115234 00001000

16

X 0.541016 00001000

00001000

17

X 0.541016 00001001 9.197266 00001001

18

X 0.541016 00001001 9.738281 00001001

19

X 0.541016 00001010

00001010

10

20

X 0.541016 00001010 10.82031 00001010

10

21

X 0.541016 00001011 11.36133 00001011

11

8.65625

10.2793

Ralat

% Ralat

0.54

100.00

0.08

7.58

0.62

38.39

0.16

7.58

0.71

26.06

0.25

7.58

0.79

20.78

0.33

7.58

0.87

17.85

0.41

7.58

0.95

15.98

0.49

7.58

0.03

0.47

0.57

7.58

0.12

1.42

0.66

7.58

0.20

2.14

0.74

7.58

0.28

2.72

0.82

7.58

0.36

3.18

106

22

X 0.541016 00001011 11.90234 00001011

11

23

X 0.541016 00001100 12.44336 00001100

12

24

X 0.541016 00001100 12.98438 00001100

12

25

X 0.541016 00001101 13.52539 00001101

13

26

X 0.541016 00001110 14.06641 00001110

14

27

X 0.541016 00001110 14.60742 00001110

14

28

X 0.541016 00001111 15.14844 00001111

15

29

X 0.541016 00001111 15.68945 00001111

15

30

X 0.541016 00010000 16.23047 00010000

16

31

X 0.541016 00010000 16.77148 00010000

16

32

X 0.541016 00010001

00010001

17

33

X 0.541016 00010001 17.85352 00010001

17

34

X 0.541016 00010010 18.39453 00010010

18

35

X 0.541016 00010010 18.93555 00010010

18

36

X 0.541016 00010011 19.47656 00010011

19

37

X 0.541016 00010100 20.01758 00010100

20

38

X 0.541016 00010100 20.55859 00010100

20

39

X 0.541016 00010101 21.09961 00010101

21

40

X 0.541016 00010101 21.64063 00010101

21

41

X 0.541016 00010110 22.18164 00010110

22

42

X 0.541016 00010110 22.72266 00010110

22

43

X 0.541016 00010111 23.26367 00010111

23

44

X 0.541016 00010111 23.80469 00010111

23

45

X 0.541016 00011000

00011000

24

46

X 0.541016 00011000 24.88672 00011000

24

47

X 0.541016 00011001 25.42773 00011001

25

48

X 0.541016 00011001 25.96875 00011001

25

17.3125

24.3457

0.90

7.58

0.44

3.56

0.98

7.58

0.53

3.88

0.07

0.47

0.61

4.16

0.15

0.98

0.69

4.39

0.23

1.42

0.77

4.60

0.31

1.81

0.85

4.78

0.39

2.14

0.94

4.94

0.48

2.45

0.02

0.09

0.56

2.72

0.10

0.47

0.64

2.96

0.18

0.82

0.72

3.18

0.26

1.13

0.80

3.38

0.35

1.42

0.89

3.56

0.43

1.68

0.97

3.73

107

49

X 0.541016 00011010 26.50977 00011010

26

50

X 0.541016 00011011 27.05078 00011011

27

51

X 0.541016 00011011

00011011

27

52

X 0.541016 00011100 28.13281 00011100

28

53

X 0.541016 00011100 28.67383 00011100

28

54

X 0.541016 00011101 29.21484 00011101

29

55

X 0.541016 00011101 29.75586 00011101

29

56

X 0.541016 00011110 30.29688 00011110

30

57

X 0.541016 00011110 30.83789 00011110

30

58

X 0.541016 00011111 31.37891 00011111

31

59

X 0.541016 00011111 31.91992 00011111

31

60

X 0.541016 00100000 32.46094 00100000

32

61

X 0.541016 00100001 33.00195 00100001

33

62

X 0.541016 00100001 33.54297 00100001

33

63

X 0.541016 00100010 34.08398 00100010

34

64

X 0.541016 00100010

00100010

34

65

X 0.541016 00100011 35.16602 00100011

35

66

X 0.541016 00100011 35.70703 00100011

35

67

X 0.541016 00100100 36.24805 00100100

36

68

X 0.541016 00100100 36.78906 00100100

36

69

X 0.541016 00100101 37.33008 00100101

37

70

X 0.541016 00100101 37.87109 00100101

37

71

X 0.541016 00100110 38.41211 00100110

38

72

X 0.541016 00100110 38.95313 00100110

38

73

X 0.541016 00100111 39.49414 00100111

39

74

X 0.541016 00101000 40.03516 00101000

40

75

X 0.541016 00101000 40.57617 00101000

40

27.5918

34.625

0.51

1.92

0.05

0.19

0.59

2.14

0.13

0.47

0.67

2.35

0.21

0.74

0.76

2.54

0.30

0.98

0.84

2.72

0.38

1.21

0.92

2.88

0.46

1.42

0.00

0.01

0.54

1.62

0.08

0.25

0.63

1.81

0.17

0.47

0.71

1.98

0.25

0.68

0.79

2.14

0.33

0.88

0.87

2.30

0.41

1.07

0.95

2.45

0.49

1.25

0.04

0.09

0.58

1.42

108

76

X 0.541016 00101001 41.11719 00101001

41

77

X 0.541016 00101001

00101001

41

78

X 0.541016 00101010 42.19922 00101010

42

79

X 0.541016 00101010 42.74023 00101010

42

80

X 0.541016 00101011 43.28125 00101011

43

81

X 0.541016 00101011 43.82227 00101011

43

82

X 0.541016 00101100 44.36328 00101100

44

83

X 0.541016 00101100

00101100

44

84

X 0.541016 00101101 45.44531 00101101

45

85

X 0.541016 00101101 45.98633 00101101

45

86

X 0.541016 00101110 46.52734 00101110

46

87

X 0.541016 00101111 47.06836 00101111

47

88

X 0.541016 00101111 47.60938 00101111

47

89

X 0.541016 00110000 48.15039 00110000

48

90

X 0.541016 00110000 48.69141 00110000

48

91

X 0.541016 00110001 49.23242 00110001

49

92

X 0.541016 00110001 49.77344 00110001

49

93

X 0.541016 00110010 50.31445 00110010

50

94

X 0.541016 00110010 50.85547 00110010

50

95

X 0.541016 00110011 51.39648 00110011

51

96

X 0.541016 00110011

00110011

51

97

X 0.541016 00110100 52.47852 00110100

52

98

X 0.541016 00110101 53.01953 00110101

53

99

X 0.541016 00110101 53.56055 00110101

53

100

X 0.541016 00110110 54.10156 00110110

54

101

X 0.541016 00110110 54.64258 00110110

54

102

X 0.541016 00110111 55.18359 00110111

55

41.6582

44.9043

51.9375

0.12

0.29

0.66

1.58

0.20

0.47

0.74

1.73

0.28

0.65

0.82

1.88

0.36

0.82

0.90

2.01

0.45

0.98

0.99

2.14

0.53

1.13

0.07

0.15

0.61

1.28

0.15

0.31

0.69

1.42

0.23

0.47

0.77

1.55

0.31

0.62

0.86

1.68

0.40

0.77

0.94

1.81

0.48

0.91

0.02

0.04

0.56

1.05

0.10

0.19

0.64

1.18

0.18

0.33

109

103

X 0.541016 00110111 55.72461 00110111

55

104

X 0.541016 00111000 56.26563 00111000

56

105

X 0.541016 00111000 56.80664 00111000

56

106

X 0.541016 00111001 57.34766 00111001

57

107

X 0.541016 00111001 57.88867 00111001

57

108

X 0.541016 00111010 58.42969 00111010

58

109

X 0.541016 00111010

00111010

58

110

X 0.541016 00111011 59.51172 00111011

59

111

X 0.541016 00111100 60.05273 00111100

60

112

X 0.541016 00111100 60.59375 00111100

60

113

X 0.541016 00111101 61.13477 00111101

61

114

X 0.541016 00111101 61.67578 00111101

61

115

X 0.541016 00111110

00111110

62

116

X 0.541016 00111110 62.75781 00111110

62

117

X 0.541016 00111111 63.29883 00111111

63

118

X 0.541016 00111111 63.83984 00111111

63

119

X 0.541016 01000000 64.38086 01000000

64

120

X 0.541016 01000000 64.92188 01000000

64

121

X 0.541016 01000001 65.46289 01000001

65

122

X 0.541016 01000010 66.00391 01000010

66

123

X 0.541016 01000010 66.54492 01000010

66

124

X 0.541016 01000011 67.08594 01000011

67

125

X 0.541016 01000011 67.62695 01000011

67

126

X 0.541016 01000100 68.16797 01000100

68

127

X 0.541016 01000100 68.70898 01000100

68

128

X 0.541016 01000101

01000101

69

129

X 0.541016 01000101 69.79102 01000101

69

58.9707

62.2168

69.25

0.72

1.30

0.27

0.47

0.81

1.42

0.35

0.61

0.89

1.54

0.43

0.74

0.97

1.65

0.51

0.86

0.05

0.09

0.59

0.98

0.13

0.22

0.68

1.10

0.22

0.35

0.76

1.21

0.30

0.47

0.84

1.32

0.38

0.59

0.92

1.42

0.46

0.71

0.00

0.01

0.54

0.82

0.09

0.13

0.63

0.93

0.17

0.25

0.71

1.03

0.25

0.36

0.79

1.13

110

130

X 0.541016 01000110 70.33203 01000110

70

131

X 0.541016 01000110 70.87305 01000110

70

132

X 0.541016 01000111 71.41406 01000111

71

133

X 0.541016 01000111 71.95508 01000111

71

134

X 0.541016 01001000 72.49609 01001000

72

135

X 0.541016 01001001 73.03711 01001001

73

136

X 0.541016 01001001 73.57813 01001001

73

137

X 0.541016 01001010 74.11914 01001010

74

138

X 0.541016 01001010 74.66016 01001010

74

139

X 0.541016 01001011 75.20117 01001011

75

140

X 0.541016 01001011 75.74219 01001011

75

141

X 0.541016 01001100

01001100

76

142

X 0.541016 01001100 76.82422 01001100

76

143

X 0.541016 01001101 77.36523 01001101

77

144

X 0.541016 01001101 77.90625 01001101

77

145

X 0.541016 01001110 78.44727 01001110

78

146

X 0.541016 01001110 78.98828 01001110

78

147

X 0.541016 01001111

01001111

79

148

X 0.541016 01010000 80.07031 01010000

80

149

X 0.541016 01010000 80.61133 01010000

80

150

X 0.541016 01010001 81.15234 01010001

81

151

X 0.541016 01010001 81.69336 01010001

81

152

X 0.541016 01010010 82.23438 01010010

82

153

X 0.541016 01010010 82.77539 01010010

82

154

X 0.541016 01010011 83.31641 01010011

83

155

X 0.541016 01010011 83.85742 01010011

83

156

X 0.541016 01010100 84.39844 01010100

84

76.2832

79.5293

0.33

0.47

0.87

1.23

0.41

0.58

0.96

1.33

0.50

0.68

0.04

0.05

0.58

0.79

0.12

0.16

0.66

0.88

0.20

0.27

0.74

0.98

0.28

0.37

0.82

1.07

0.37

0.47

0.91

1.16

0.45

0.57

0.99

1.25

0.53

0.67

0.07

0.09

0.61

0.76

0.15

0.19

0.69

0.85

0.23

0.29

0.78

0.94

0.32

0.38

0.86

1.02

0.40

0.47

111

157

X 0.541016 01010100 84.93945 01010100

84

158

X 0.541016 01010101 85.48047 01010101

85

159

X 0.541016 01010110 86.02148 01010110

86

160

X 0.541016 01010110

01010110

86

161

X 0.541016 01010111 87.10352 01010111

87

162

X 0.541016 01010111 87.64453 01010111

87

163

X 0.541016 01011000 88.18555 01011000

88

164

X 0.541016 01011000 88.72656 01011000

88

165

X 0.541016 01011001 89.26758 01011001

89

166

X 0.541016 01011001 89.80859 01011001

89

167

X 0.541016 01011010 90.34961 01011010

90

168

X 0.541016 01011010 90.89063 01011010

90

169

X 0.541016 01011011 91.43164 01011011

91

170

X 0.541016 01011011 91.97266 01011011

91

171

X 0.541016 01011100 92.51367 01011100

92

172

X 0.541016 01011101 93.05469 01011101

93

173

X 0.541016 01011101

01011101

93

174

X 0.541016 01011110 94.13672 01011110

94

175

X 0.541016 01011110 94.67773 01011110

94

176

X 0.541016 01011111 95.21875 01011111

95

177

X 0.541016 01011111 95.75977 01011111

95

178

X 0.541016 01100000 96.30078 01100000

96

179

X 0.541016 01100000

01100000

96

180

X 0.541016 01100001 97.38281 01100001

97

181

X 0.541016 01100001 97.92383 01100001

97

182

X 0.541016 01100010 98.46484 01100010

98

183

X 0.541016 01100011 99.00586 01100011

99

86.5625

93.5957

96.8418

0.94

1.11

0.48

0.56

0.02

0.02

0.56

0.65

0.10

0.12

0.64

0.74

0.19

0.21

0.73

0.82

0.27

0.30

0.81

0.90

0.35

0.39

0.89

0.98

0.43

0.47

0.97

1.06

0.51

0.56

0.05

0.06

0.60

0.64

0.14

0.15

0.68

0.72

0.22

0.23

0.76

0.79

0.30

0.31

0.84

0.87

0.38

0.39

0.92

0.94

0.46

0.47

0.01

0.01

112

184

X 0.541016 01100011 99.54688 01100011

99

185

X 0.541016 01100100 100.0879 01100100

100

186

X 0.541016 01100100 100.6289 01100100

100

187

X 0.541016 01100101 101.1699 01100101

101

188

X 0.541016 01100101 101.7109 01100101

101

189

X 0.541016 01100110

102.252

01100110

102

190

X 0.541016 01100110

102.793

01100110

102

191

X 0.541016 01100111

103.334

01100111

103

192

X 0.541016 01100111

103.875

01100111

103

193

X 0.541016 01101000

104.416

01101000

104

194

X 0.541016 01101000

104.957

01101000

104

195

X 0.541016 01101001

105.498

01101001

105

196

X 0.541016 01101010 106.0391 01101010

106

197

X 0.541016 01101010 106.5801 01101010

106

198

X 0.541016 01101011 107.1211 01101011

107

199

X 0.541016 01101011 107.6621 01101011

107

200

X 0.541016 01101100 108.2031 01101100

108

201

X 0.541016 01101100 108.7441 01101100

108

202

X 0.541016 01101101 109.2852 01101101

109

203

X 0.541016 01101101 109.8262 01101101

109

204

X 0.541016 01101110 110.3672 01101110

110

205

X 0.541016 01101110 110.9082 01101110

110

206

X 0.541016 01101111 111.4492 01101111

111

207

X 0.541016 01101111 111.9902 01101111

111

208

X 0.541016 01110000 112.5313 01110000

112

209

X 0.541016 01110001 113.0723 01110001

113

210

X 0.541016 01110001 113.6133 01110001

113

0.55

0.55

0.09

0.09

0.63

0.62

0.17

0.17

0.71

0.70

0.25

0.25

0.79

0.77

0.33

0.32

0.88

0.84

0.42

0.40

0.96

0.91

0.50

0.47

0.04

0.04

0.58

0.54

0.12

0.11

0.66

0.61

0.20

0.19

0.74

0.68

0.29

0.26

0.83

0.75

0.37

0.33

0.91

0.82

0.45

0.40

0.99

0.88

0.53

0.47

0.07

0.06

0.61

0.54

113

211

X 0.541016 01110010 114.1543 01110010

114

212

X 0.541016 01110010 114.6953 01110010

114

213

X 0.541016 01110011 115.2363 01110011

115

214

X 0.541016 01110011 115.7773 01110011

115

215

X 0.541016 01110100 116.3184 01110100

116

216

X 0.541016 01110100 116.8594 01110100

116

217

X 0.541016 01110101 117.4004 01110101

117

218

X 0.541016 01110101 117.9414 01110101

117

219

X 0.541016 01110110 118.4824 01110110

118

220

X 0.541016 01110111 119.0234 01110111

119

221

X 0.541016 01110111 119.5645 01110111

119

222

X 0.541016 01111000 120.1055 01111000

120

223

X 0.541016 01111000 120.6465 01111000

120

224

X 0.541016 01111001 121.1875 01111001

121

225

X 0.541016 01111001 121.7285 01111001

121

226

X 0.541016 01111010 122.2695 01111010

122

227

X 0.541016 01111010 122.8105 01111010

122

228

X 0.541016 01111011 123.3516 01111011

123

229

X 0.541016 01111011 123.8926 01111011

123

230

X 0.541016 01111100 124.4336 01111100

124

231

X 0.541016 01111100 124.9746 01111100

124

232

X 0.541016 01111101 125.5156 01111101

125

233

X 0.541016 01111110 126.0566 01111110

126

234

X 0.541016 01111110 126.5977 01111110

126

235

X 0.541016 01111111 127.1387 01111111

127

236

X 0.541016 01111111 127.6797 01111111

127

237

X 0.541016 10000000 128.2207 10000000

-128

0.15

0.14

0.70

0.61

0.24

0.21

0.78

0.67

0.32

0.27

0.86

0.74

0.40

0.34

0.94

0.80

0.48

0.41

0.02

0.02

0.56

0.47

0.11

0.09

0.65

0.54

0.19

0.15

0.73

0.60

0.27

0.22

0.81

0.66

0.35

0.29

0.89

0.72

0.43

0.35

0.97

0.78

0.52

0.41

0.06

0.04

0.60

0.47

0.14

0.11

0.68

0.53

256.22

199.83

114

238

X 0.541016 10000000 128.7617 10000000

239

X 0.541016 10000001 129.3027 10000001

240

X 0.541016 10000001 129.8438 10000001

241

X 0.541016 10000010 130.3848 10000010

242

X 0.541016 10000010 130.9258 10000010

243

X 0.541016 10000011 131.4668 10000011

244

X 0.541016 10000010 132.0078 10000010

245

X 0.541016 10000010 132.5488 10000010

246

X 0.541016 10000101 133.0898 10000101

247

X 0.541016 10000101 133.6309 10000101

248

X 0.541016 10000110 134.1719 10000110

249

X 0.541016 10000110 134.7129 10000110

250

X 0.541016 10000111 135.2539 10000111

251

X 0.541016 10000111 135.7949 10000111

252

X 0.541016 10000110 136.3359 10000110

253

X 0.541016 10000110

136.877

10000110

254

X 0.541016 10000111

137.418

10000111

255

X 0.541016 10000111

137.959

10000111

-128

256.76

199.41

-127

256.30

198.22

-127

256.84

197.81

-126

256.38

196.64

-126

256.93

196.24

-125

256.47

195.08

-124

256.01

193.93

-124

256.55

193.55

-123

256.09

192.42

-123

256.63

192.04

-122

256.17

190.93

-122

256.71

190.56

-121

256.25

189.46

-121

256.79

189.10

-120

256.34

188.02

-120

256.88

187.67

-119

256.42

186.60

-119

256.96

186.26

Berikut adalah tabel hasil perbandingan antara hasil teori dengan hasil simulasi multipier B17. Hasil di
bawah ini diperoleh dari perhitungan bilangan multiplicand yang dikalikan dengan multiplier dimana pada hasil
teori diperoleh bilangan decimal yang berupa pecahan. Hasil teori in merupakan hasil yang sesungguhnya.
Sedangkan pada hasil simulasi diperoleh bilangan decimal berupa bilangan bulat. Hal ini dikarenakan hasil
simulasi pada program VHDL berupa bilangan biner, bukan bilangan pecahan.
Tabel 1.57 Hasil perhitungan dan Simulasi Multiplier B17
Multiflicand

Multiflier

Hasil Simulasi

Hasil Simulasi

Biner

Desimal

Biner

Desimal

-1.30566

1111111111

-1.305664

11111110

-2

-1.30566

1111111110

-2.611328

11111101

-3

Ralat

% Ralat

0.69

53.18

0.39

14.88

115

-1.30566

1111111101

-3.916992

11111100

-4

-1.30566

1111111011

-5.222656

11111010

-6

-1.30566

1111111010

-6.52832

11111001

-7

-1.30566

1111111001

-7.833984

11111000

-8

-1.30566

1111110111

-9.139648

11110110

-10

-1.30566

1111110110

-10.44531

11110101

-11

-1.30566

1111110101

-11.75098

11110100

-12

10

-1.30566

1111110011

-13.05664

11110010

-14

11

-1.30566

1111110010

-14.3623

11110001

-15

12

-1.30566

1111110001

-15.66797

11110000

-16

13

-1.30566

1111110000

-16.97363

11101111

-17

14

-1.30566

1111101110

-18.2793

11101101

-19

15

-1.30566

1111101101

-19.58496

11101100

-20

16

-1.30566

1111101100

-20.89062

11101011

-21

17

-1.30566

1111101010

-22.19629

11101001

-23

18

-1.30566

1111101001

-23.50195

11101000

-24

19

-1.30566

1111101000

-24.80762

11100111

-25

20

-1.30566

1111100110

-26.11328

11100101

-27

21

-1.30566

1111100101

-27.41895

11100100

-28

22

-1.30566

1111100100

-28.72461

11100011

-29

23

-1.30566

1111100010

-30.03027

11100001

-31

24

-1.30566

1111100001

-31.33594

11100000

-32

25

-1.30566

1111100000

-32.6416

11011111

-33

26

-1.30566

1111011111

-33.94727

11011110

-34

27

-1.30566

1111011101

-35.25293

11011100

-36

28

-1.30566

1111011100

-36.55859

11011011

-37

29

-1.30566

1111011011

-37.86426

11011010

-38

30

-1.30566

1111011001

-39.16992

11011000

-40

31

-1.30566

1111011000

-40.47559

11010111

-41

32

-1.30566

1111010111

-41.78125

11010110

-42

33

-1.30566

1111010101

-43.08691

11010100

-44

0.08

2.12

0.78

14.88

0.47

7.23

0.17

2.12

0.86

9.41

0.55

5.31

0.25

2.12

0.94

7.23

0.64

4.44

0.33

2.12

0.03

0.16

0.72

3.94

0.42

2.12

0.11

0.52

0.80

3.62

0.50

2.12

0.19

0.78

0.89

3.40

0.58

2.12

0.28

0.96

0.97

3.23

0.66

2.12

0.36

1.10

0.05

0.16

0.75

2.12

0.44

1.21

0.14

0.36

0.83

2.12

0.52

1.30

0.22

0.52

0.91

2.12

116

34

-1.30566

1111010100

-44.39258

11010011

-45

35

-1.30566

1111010011

-45.69824

11010010

-46

36

-1.30566

1111010001

-47.00391

11010000

-48

37

-1.30566

1111010000

-48.30957

11001111

-49

38

-1.30566

1111001111

-49.61523

11001110

-50

39

-1.30566

1111001110

-50.9209

11001101

-51

40

-1.30566

1111001100

-52.22656

11001011

-53

41

-1.30566

1111001011

-53.53223

11001010

-54

42

-1.30566

1111001010

-54.83789

11001001

-55

43

-1.30566

1111001000

-56.14355

11000111

-57

44

-1.30566

1111000111

-57.44922

11000110

-58

45

-1.30566

1111000110

-58.75488

11000101

-59

46

-1.30566

1111000100

-60.06055

11000011

-61

47

-1.30566

1111000011

-61.36621

11000010

-62

48

-1.30566

1111000010

-62.67187

11000001

-63

49

-1.30566

1111000001

-63.97754

11000000

-64

50

-1.30566

1110111111

-65.2832

10111110

-66

51

-1.30566

1110111110

-66.58887

10111101

-67

52

-1.30566

1110111101

-67.89453

10111100

-68

53

-1.30566

1110111011

-69.2002

10111010

-70

54

-1.30566

1110111010

-70.50586

10111001

-71

55

-1.30566

1110111001

-71.81152

10111000

-72

56

-1.30566

1110110111

-73.11719

10110110

-74

57

-1.30566

1110110110

-74.42285

10110101

-75

58

-1.30566

1110110101

-75.72852

10110100

-76

59

-1.30566

1110110011

-77.03418

10110010

-78

60

-1.30566

1110110010

-78.33984

10110001

-79

61

-1.30566

1110110001

-79.64551

10110000

-80

62

-1.30566

1110110000

-80.95117

10101111

-81

63

-1.30566

1110101110

-82.25684

10101101

-83

64

-1.30566

1110101101

-83.5625

10101100

-84

0.61

1.37

0.30

0.66

1.00

2.12

0.69

1.43

0.38

0.78

0.08

0.16

0.77

1.48

0.47

0.87

0.16

0.30

0.86

1.53

0.55

0.96

0.25

0.42

0.94

1.56

0.63

1.03

0.33

0.52

0.02

0.04

0.72

1.10

0.41

0.62

0.11

0.16

0.80

1.16

0.49

0.70

0.19

0.26

0.88

1.21

0.58

0.78

0.27

0.36

0.97

1.25

0.66

0.84

0.35

0.45

0.05

0.06

0.74

0.90

0.44

0.52

117

65

-1.30566

1110101100

-84.86816

10101011

-85

66

-1.30566

1110101010

-86.17383

10101001

-87

67

-1.30566

1110101001

-87.47949

10101000

-88

68

-1.30566

1110101000

-88.78516

10100111

-89

69

-1.30566

1110100110

-90.09082

10100101

-91

70

-1.30566

1110100101

-91.39648

10100100

-92

71

-1.30566

1110100100

-92.70215

10100011

-93

72

-1.30566

1110100010

-94.00781

10100001

-95

73

-1.30566

1110100001

-95.31348

10100000

-96

74

-1.30566

1110100000

-96.61914

10011111

-97

75

-1.30566

1110011111

-97.9248

10011110

-98

76

-1.30566

1110011101

-99.23047

10011100

-100

77

-1.30566

1110011100

-100.5361

10011011

-101

78

-1.30566

1110011011

-101.8418

10011010

-102

79

-1.30566

1110011001

-103.1475

10011000

-104

80

-1.30566

1110011000

-104.4531

10010111

-105

81

-1.30566

1110010111

-105.7588

10010110

-106

82

-1.30566

1110010101

-107.0645

10010100

-108

83

-1.30566

1110010100

-108.3701

10010011

-109

84

-1.30566

1110010011

-109.6758

10010010

-110

85

-1.30566

1110010010

-110.9814

10010001

-111

86

-1.30566

1110010000

-112.2871

10001111

-113

87

-1.30566

1110001111

-113.5928

10001110

-114

88

-1.30566

1110001110

-114.8984

10001101

-115

89

-1.30566

1110001100

-116.2041

10001011

-117

90

-1.30566

1110001011

-117.5098

10001010

-118

91

-1.30566

1110001010

-118.8154

10001001

-119

92

-1.30566

1110001000

-120.1211

10000111

-121

93

-1.30566

1110000111

-121.4268

10000110

-122

94

-1.30566

1110000110

-122.7324

10000101

-123

95

-1.30566

1110000100

-124.0381

10000011

-125

0.13

0.16

0.83

0.96

0.52

0.60

0.21

0.24

0.91

1.01

0.60

0.66

0.30

0.32

0.99

1.06

0.69

0.72

0.38

0.39

0.08

0.08

0.77

0.78

0.46

0.46

0.16

0.16

0.85

0.83

0.55

0.52

0.24

0.23

0.94

0.87

0.63

0.58

0.32

0.30

0.02

0.02

0.71

0.63

0.41

0.36

0.10

0.09

0.80

0.68

0.49

0.42

0.18

0.16

0.88

0.73

0.57

0.47

0.27

0.22

0.96

0.78

118

96

-1.30566

1110000011

-125.3437

10000010

-126

97

-1.30566

1110000010

-126.6494

10000001

-127

98

-1.30566

1110000001

-127.9551

10000000

-128

99

-1.30566

1101111111

-129.2607

01111110

126

100

-1.30566

1101111110

-130.5664

01111101

125

101

-1.30566

1101111101

-131.8721

01111100

124

102

-1.30566

1101111011

-133.1777

01111010

122

103

-1.30566

1101111010

-134.4834

01111001

121

104

-1.30566

1101111001

-135.7891

01111000

120

105

-1.30566

1101110111

-137.0947

01110110

118

106

-1.30566

1101110110

-138.4004

01110101

117

107

-1.30566

1101110101

-139.7061

01110100

116

108

-1.30566

1101110011

-141.0117

01110010

114

109

-1.30566

1101110010

-142.3174

01110001

113

110

-1.30566

1101110001

-143.623

01110000

112

111

-1.30566

1101110000

-144.9287

01101111

111

112

-1.30566

1101101110

-146.2344

01101101

109

113

-1.30566

1101101101

-147.54

01101100

108

114

-1.30566

1101101100

-148.8457

01101011

107

115

-1.30566

1101101010

-150.1514

01101001

105

116

-1.30566

1101101001

-151.457

01101000

104

117

-1.30566

1101101000

-152.7627

01100111

103

118

-1.30566

1101100110

-154.0684

01100101

101

119

-1.30566

1101100101

-155.374

01100100

100

120

-1.30566

1101100100

-156.6797

01100011

99

121

-1.30566

1101100011

-157.9854

01100010

98

122

-1.30566

1101100001

-159.291

01100000

96

123

-1.30566

1101100000

-160.5967

01011111

95

124

-1.30566

1101011111

-161.9023

01011110

94

125

-1.30566

1101011101

-163.208

01011100

92

126

-1.30566

1101011100

-164.5137

01011011

91

0.66

0.52

0.35

0.28

0.04

0.04

-255.26

197.48

-255.57

195.74

-255.87

194.03

-255.18

191.61

-255.48

189.97

-255.79

188.37

-255.09

186.07

-255.40

184.54

-255.71

183.03

-255.01

180.84

-255.32

179.40

-255.62

177.98

-255.93

176.59

-255.23

174.54

-255.54

173.20

-255.85

171.89

-255.15

169.93

-255.46

168.67

-255.76

167.42

-255.07

165.56

-255.37

164.36

-255.68

163.19

-255.99

162.03

-255.29

160.27

-255.60

159.15

-255.90

158.06

-255.21

156.37

-255.51

155.31

119

127

-1.30566

1101011011

-165.8193

01011010

90

128

-1.30566

1101011001

-167.125

01011000

88

129

-1.30566

1101011000

-168.4307

01010111

87

130

-1.30566

1101010111

-169.7363

01010110

86

131

-1.30566

1101010101

-171.042

01010100

84

132

-1.30566

1101010100

-172.3477

01010011

83

133

-1.30566

1101010011

-173.6533

01010010

82

134

-1.30566

1101010010

-174.959

01010001

81

135

-1.30566

1101010000

-176.2646

01001111

79

136

-1.30566

1101001111

-177.5703

01001110

78

137

-1.30566

1101001110

-178.876

01001101

77

138

-1.30566

1101001100

-180.1816

01001011

75

139

-1.30566

1101001011

-181.4873

01001010

74

140

-1.30566

1101001010

-182.793

01001001

73

141

-1.30566

1101001000

-184.0986

01000111

71

142

-1.30566

1101000111

-185.4043

01000110

70

143

-1.30566

1101000110

-186.71

01000101

69

144

-1.30566

1101000100

-188.0156

01000011

67

145

-1.30566

1101000011

-189.3213

01000010

66

146

-1.30566

1101000010

-190.627

01000001

65

147

-1.30566

1101000001

-191.9326

01000000

64

148

-1.30566

1100111111

-193.2383

00111110

62

149

-1.30566

1100111110

-194.5439

00111101

61

150

-1.30566

1100111101

-195.8496

00111100

60

151

-1.30566

1100111011

-197.1553

00111010

58

152

-1.30566

1100111010

-198.4609

00111001

57

153

-1.30566

1100111001

-199.7666

00111000

56

154

-1.30566

1100110111

-201.0723

00110110

54

155

-1.30566

1100110110

-202.3779

156

-1.30566

1100110101

-203.6836

157

-1.30566

1100110100

-204.9893

00110101
00110100
00110011

53
52
51

-255.82

154.28

-255.13

152.66

-255.43

151.65

-255.74

150.67

-255.04

149.11

-255.35

148.16

-255.65

147.22

-255.96

146.30

-255.26

144.82

-255.57

143.93

-255.88

143.05

-255.18

141.62

-255.49

140.77

-255.79

139.94

-255.10

138.57

-255.40

137.76

-255.71

136.96

-255.02

135.64

-255.32

134.86

-255.63

134.10

-255.93

133.35

-255.24

132.08

-255.54

131.36

-255.85

130.64

-255.16

129.42

-255.46

128.72

-255.77

128.03

-255.07

126.86

-255.38

126.19

-255.68

125.53

-255.99

124.88

120

158

-1.30566

1100110010

-206.2949

159

-1.30566

1100110001

-207.6006

160

-1.30566

1100110000

-208.9062

161

-1.30566

1100101110

-210.2119

162

-1.30566

1100101101

-211.5176

163

-1.30566

1100101100

-212.8232

164

-1.30566

1100101010

-214.1289

165

-1.30566

1100101001

-215.4346

166

-1.30566

1100101000

-216.7402

167

-1.30566

1100100110

-218.0459

168

-1.30566

1100100101

-219.3516

169

-1.30566

1100100100

-220.6572

170

-1.30566

1100100011

-221.9629

171

-1.30566

1100100001

-223.2686

172

-1.30566

1100100000

-224.5742

173

-1.30566

1100011111

-225.8799

174

-1.30566

1100011101

-227.1855

175

-1.30566

1100011100

-228.4912

176

-1.30566

1100011011

-229.7969

177

-1.30566

1100011001

-231.1025

178

-1.30566

1100011000

-232.4082

179

-1.30566

1100010111

-233.7139

180

-1.30566

1100010101

-235.0195

181

-1.30566

1100010100

-236.3252

182

-1.30566

1100010011

-237.6309

183

-1.30566

1100010010

-238.9365

184

-1.30566

1100010000

-240.2422

185

-1.30566

1100001111

-241.5479

186

-1.30566

1100001110

-242.8535

187

-1.30566

1100001100

-244.1592

188

-1.30566

1100001011

-245.4648

00110001
00110000
00101111
00101101
00101100
00101011
00101001
00101000
00100111
00100101
00100100
00100011
00100010
00100000
00011111
00011110
00011100
00011011
00011010
00011000
00010111
00010110
00010100
00010011
00010010
00010001
00001111
00001110
00001101
00001011
00001010

49
48
47
45
44
43
41
40
39
37
36
35
34
32
31
30
28
27
26
24
23
22
20
19
18
17
15
14
13
11
10

-255.29

123.75

-255.60

123.12

-255.91

122.50

-255.21

121.41

-255.52

120.80

-255.82

120.20

-255.13

119.15

-255.43

118.57

-255.74

117.99

-255.05

116.97

-255.35

116.41

-255.66

115.86

-255.96

115.32

-255.27

114.33

-255.57

113.80

-255.88

113.28

-255.19

112.32

-255.49

111.82

-255.80

111.31

-255.10

110.39

-255.41

109.90

-255.71

109.41

-255.02

108.51

-255.33

108.04

-255.63

107.57

-255.94

107.11

-255.24

106.24

-255.55

105.80

-255.85

105.35

-255.16

104.51

-255.46

104.07

121

189

-1.30566

1100001010

-246.7705

190

-1.30566

1100001000

-248.0762

191

-1.30566

1100000111

-249.3818

192

-1.30566

1100000110

-250.6875

193

-1.30566

1100000101

-251.9932

194

-1.30566

1100000011

-253.2988

195

-1.30566

1100000010

-254.6045

196

-1.30566

1100000001

-255.9102

197

-1.30566

1011111111

-257.2158

198

-1.30566

1011111110

-258.5215

199

-1.30566

1011111101

-259.8271

200

-1.30566

1011111011

-261.1328

201

-1.30566

1011111010

-262.4385

202

-1.30566

1011111001

-263.7441

203

-1.30566

1011110111

-265.0498

204

-1.30566

1011110110

-266.3555

205

-1.30566

1011110101

-267.6611

206

-1.30566

1011110100

-268.9668

207

-1.30566

1011110010

-270.2725

208

-1.30566

1011110001

-271.5781

209

-1.30566

1011110000

-272.8838

210

-1.30566

1011101110

-274.1895

211

-1.30566

1011101101

-275.4951

212

-1.30566

1011101100

-276.8008

213

-1.30566

1011101010

-278.1064

214

-1.30566

1011101001

-279.4121

215

-1.30566

1011101000

-280.7178

216

-1.30566

1011100110

-282.0234

217

-1.30566

1011100101

-283.3291

218

-1.30566

1011100100

-284.6348

219

-1.30566

1011100011

-285.9404

00001001
00000111
00000110
00000101
00000100
00000010
00000001
00000000
11111110
11111101
11111100
11111010
11111001
11111000
11110110
11110101
11110100
11110011
11110001
11110000
11101111
11101101
11101100
11101011
11101001
11101000
11100111
11100101
11100100
11100011
11100010

9
7
6
5
4
2
1
0
-2
-3
-4
-6
-7
-8
-10
-11
-12
-13
-15
-16
-17
-19
-20
-21
-23
-24
-25
-27
-28
-29
-30

-255.77

103.65

-255.08

102.82

-255.38

102.41

-255.69

101.99

-255.99

101.59

-255.30

100.79

-255.60

100.39

-255.91

100.00

-255.22

99.22

-255.52

98.84

-255.83

98.46

-255.13

97.70

-255.44

97.33

-255.74

96.97

-255.05

96.23

-255.36

95.87

-255.66

95.52

-255.97

95.17

-255.27

94.45

-255.58

94.11

-255.88

93.77

-255.19

93.07

-255.50

92.74

-255.80

92.41

-255.11

91.73

-255.41

91.41

-255.72

91.09

-255.02

90.43

-255.33

90.12

-255.63

89.81

-255.94

89.51

122

220

-1.30566

1011100001

-287.2461

221

-1.30566

1011100000

-288.5518

222

-1.30566

1011011111

-289.8574

223

-1.30566

1011011101

-291.1631

224

-1.30566

1011011100

-292.4687

225

-1.30566

1011011011

-293.7744

226

-1.30566

1011011001

-295.0801

227

-1.30566

1011011000

-296.3857

228

-1.30566

1011010111

-297.6914

229

-1.30566

1011010110

-298.9971

230

-1.30566

1011010100

-300.3027

231

-1.30566

1011010011

-301.6084

232

-1.30566

1011010010

-302.9141

233

-1.30566

1011010000

-304.2197

234

-1.30566

1011001111

-305.5254

235

-1.30566

1011001110

-306.8311

236

-1.30566

1011001100

-308.1367

237

-1.30566

1011001011

-309.4424

238

-1.30566

1011001010

-310.748

239

-1.30566

1011001000

-312.0537

240

-1.30566

1011000111

-313.3594

241

-1.30566

1011000110

-314.665

242

-1.30566

1011000101

-315.9707

243

-1.30566

1011000011

-317.2764

244

-1.30566

1011000010

-318.582

245

-1.30566

1011000001

-319.8877

246

-1.30566

1010111111

-321.1934

247

-1.30566

1010111110

-322.499

248

-1.30566

1010111101

-323.8047

249

-1.30566

1010111011

-325.1104

250

-1.30566

1010111010

-326.416

11100000
11011111
11011110
11011100
11011011
11011010
11011000
11010111
11010110
11010100
11010011
11010010
11010000
11001111
11001110
11001101
11001011
11001010
11001001
11000111
11000110
11000101
11000100
11000010
11000001
11000000
10111110
10111101
10111100
10111010
10111001

-32
-33
-34
-36
-37
-38
-40
-41
-42
-44
-45
-46
-48
-49
-50
-51
-53
-54
-55
-57
-58
-59
-60
-62
-63
-64
-66
-67
-68
-70
-71

-255.25

88.86

-255.55

88.56

-255.86

88.27

-255.16

87.64

-255.47

87.35

-255.77

87.06

-255.08

86.44

-255.39

86.17

-255.69

85.89

-255.00

85.28

-255.30

85.02

-255.61

84.75

-254.91

84.15

-255.22

83.89

-255.53

83.63

-255.83

83.38

-255.14

82.80

-255.44

82.55

-255.75

82.30

-255.05

81.73

-255.36

81.49

-255.67

81.25

-255.97

81.01

-255.28

80.46

-255.58

80.22

-255.89

79.99

-255.19

79.45

-255.50

79.22

-255.80

79.00

-255.11

78.47

-255.42

78.25

123

251

-1.30566

1010111001

-327.7217

252

-1.30566

1010110111

-329.0273

253

-1.30566

1010110110

-330.333

254

-1.30566

1010110101

-331.6387

255

-1.30566

1010110100

-332.9443

10111000
10110110
10110101
10110100
10110011

-72
-74
-75
-76
-77

-255.72

78.03

-255.03

77.51

-255.33

77.30

-255.64

77.08

-255.94

76.87

124

LAMPIRAN

125

GAMBAR HASIL SIMULASI

Gambar hasil simulasi program 1

Gambar hasil simulasi program 2

126