You can edit almost every page by Creating an account and confirming your email.

Bit-Vector Matrix: Difference between revisions

From EverybodyWiki Bios & Wiki
Koroshkabir1400 (talk | contribs)
WikiMaster (talk | contribs)
m Reverted edits by Koroshkabir1400 (talk) to last revision by WikiMasterBot2
Tag: Rollback
 
Line 344: Line 344:


==External links==
==External links==
* [https://takhfifhot.com/ 1 doctor]
* [https://www.sciencedirect.com/science/article/pii/S2090447918300480?via%3Dihub] Modifying the logic gate symbols to enrich the designing of the computer systems by 3-D bit-matrices
* [https://www.sciencedirect.com/science/article/pii/S2090447918300480?via%3Dihub] Modifying the logic gate symbols to enrich the designing of the computer systems by 3-D bit-matrices
{{Source Wikipedia}}
{{Source Wikipedia}}

Latest revision as of 09:56, 20 October 2020



In mathematics and computer science, the Bit-Vector Matrix [1] (or Bit-Array Matrix) is two-dimension mathematical matrix of Bit arrays (or Bit vectors). Each Bit-Vector has one-dimension array of Boolean elements ('0' or '1'). Therefore, the Bit-Vector Matrix consider as 3D Bit-Matrix with three parameters (i, j and k). The two parameters “i x j” define the 2D matrix that include i-rows and j-columns of Bit Vectors. Besides, the parameter “k” indicates the total number of Boolean elements (Bits) in each Bit Vector. Therefore, the Bit-Vector Matrix consider as 3D dimension matrix of Bits. The Bit-Vector Matrix is more effectively during exploiting the bit-level parallelism in the hardware designing, testing and implementation. The formula (1) is 2D matrix "Qij" includes "ixj" Bit-Vectors. The formula (2) is Bit-Vector includes k-number of bits.

𝐐𝐢𝐣=[(BitVector)11⋯(BitVector)1j⋮⋱⋮(BitVector)i1⋯(BitVector)ij](1)  where  BitVector=[Bit1Bit2⋯Bitk] (2)

By composing the formula (2) into the formula (1), will get the formula (3) of mathematical three-dimensional Bit-Matrix (3-D Bit-Matrix) with three parameters (i,j and k). This type of matrix can be used to analysis the different electronic digital circuits mathematically. In addition, it can be utilized in synthesizing process from mathematical models to real electronic module.

𝐐𝐢𝐣𝐤=[[Bit111Bit112⋯Bit11k]⋯[Bit1j1Bit1j2⋯Bit1jk]⋮⋱⋮[Biti11Biti12⋯Biti1k]⋯[Bitij1Bitij2⋯Bitijk]] (3)

The suffix number that attended with each bit has 3 parameters. The left hand side parameter represent its row number in the 3D matrix, the middle parameter represents its column number. Besides, the right hand side parameter (the third dimension) represents its depth in the 3D Bit-Matrix.

The Boolean algebra [2] [3] based on the Bit-Vector Matrix

Assume three Bit-Vector-Matrices (A, B and C) have similar dimensions (same 3 parameters) as illustrate in the formulas (4), (5) and (6).

𝐀𝐢𝐣𝐤=[Va11⋯Va1j⋮⋱⋮Vai1⋯Vaij] (4) 𝐁𝐢𝐣𝐤=[Vb11⋯Vb1j⋮⋱⋮Vbi1⋯Vbij] (5) 𝐂𝐢𝐣𝐤=[Vc11⋯Vc1j⋮⋱⋮Vci1⋯Vcij] (6)

Whereas "Vaij", "Vbij", "Vcij" are bit-vectors. They include “k” number of bits as following formulas (7), (8) and (9).

𝐕𝐚=[a1a2⋯ak] (7) 𝐕𝐛=[b1b2⋯bk] (8) 𝐕𝐜=[c1c2⋯ck] (9)

The Commutative property based on the Bit-Vector Matrix

Assume conjunction operation (˄) between the two mentioned bit-vectors "Vaij" and "Vbij", so all bits in the first bit-vector will conjunct individually with their corresponding bits in the second bit-vector as formula (10).

[Va]ij ˄ [Vb]ij = [a1∧b1a2∧b2...ak∧bk]ij = [Va ˄ Vb]ij (10)

By applying the standard commutative algebra Boolean expression {a ˄ b = b ˄ a} for all the corresponding bits of the formula (10), will get formula (11).

[Va ˄ Vb]ij = [b1∧a1b2∧a2...bk∧ak]ij = [Vb ˄ Va]ij (11)

After applying the exclusive operation between the two equal terms of formula (11), will get the formula (12).

[Va ˄ Vb]ij ⊕ [Vb ˄ Va]ij = [0]ij (12)

By composing ij-number of the bit-vectors of the formula (12) in the general Bit-Vector Matrix (Q) of formula (1), will get the formula (13).

[(𝐕𝐚∧𝐕𝐛)𝟏𝟏⋯(𝐕𝐚∧𝐕𝐛)𝟏𝐣⋮⋱⋮(𝐕𝐚∧𝐕𝐛)𝐢𝟏⋯(𝐕𝐚∧𝐕𝐛)𝐢𝐣]⊕[(Vb∧Va)11⋯(Vb∧Va)1j⋮⋱⋮(Vb∧Va)i1⋯(Vb∧Va)ij]=[(0)11⋯(0)1j⋮⋱⋮(0)i1⋯(0)ij]=[0]ijk (13)

By reducing the formula (13) using the two formulas (4) and (5), will get the Boolean algebra commutative conjunction expression for the two mentioned Bit-Vector-Matrices “A” and “B” in the formula (14).

[A ˄ B]ijk ⊕ [B ˄ A]ijk = [0]ijk (14)

Similarly, the modified Boolean algebra commutative disjunction expression as the formula (15)

[A ˅ B]ijk ⊕ [B ˅ A]ijk = [0]ijk (15)

The Associative property based on the Bit-Vector Matrix

Assume the conjunction operation (˄) among the three mentioned bit-vectors "Vaij", "Vbij" and "Vcij" as illustrate in formula (16).

[Va ˄ Vb]ij ˄ [Vc]ij = [(a1∧b1)∧c1(a2∧b2)∧c2...(ak∧bk)∧ck]ij (16)

By applying the basic associative Boolean algebra expression {(a ˄ b)˄c = a˄(b ˄ c)} for all corresponding bits of the expression (16), will get formula (17).

[Va ˄ Vb]ij ˄ [Vc]ij = [a1∧(b1∧c1)a2∧(b2∧c2)...ak∧(bk∧ck)]ij = [Va ]ij ˄ [Vb ˄ Vc]ij (17)

By applying the exclusive operation between the two equal terms of formula (17), will get the formula (18).

( [Va ˄ Vb]ij ˄ [Vc] )ij ⊕ ( [Va]ij ˄ [Vb ˄ Vc] )ij = [0]ij (18)

By composing ij-number of bit-vectors of the formula (18) in the bit-vector matrix (Q) of formula (1), will get the formulas (19).

[(𝐕𝐚∧𝐕𝐛)𝟏𝟏⋯(𝐕𝐚∧𝐕𝐛)𝟏𝐣⋮⋱⋮(𝐕𝐚∧𝐕𝐛)𝐢𝟏⋯(𝐕𝐚∧𝐕𝐛)𝐢𝐣]∧[(Vc)11⋯(Vc)1j⋮⋱⋮(Vc)i1⋯(Vc)ij]⊕[(Va)11⋯(Va)1j⋮⋱⋮(Va)i1⋯(Va)ij]∧[(Vb∧Vc)11⋯(Vb∧Vc)1j⋮⋱⋮(Vb∧Vc)i1⋯(Vb∧Vc)ij]=[0]ijk (19)

By reducing the formula (19) using the formulas (4), (5) and (6), will get the Boolean algebra associative conjunction expression as in the formula (20).

( [A ˄ B]ijk ˄ Cijk ) ⊕ ( Aijk ˄ [B ˄ C]ijk) = [0]ijk (20)

Similarly, the general associative disjunction expression can be reduced as the modified Boolean expression as in formula (21).

( [A ˅ B]ijk ˅ Cijk ) ⊕ ( Aijk ˅ [B ˅ C]ijk) = [0]ijk (21)

The Distributive property based on the Bit-Vector Matrix

Assume disjunction operation (˅) between the two mentioned bit-vectors "Vbij" and "Vcij" besides conjunction operation (˄) with the third bit-vector"Vaij" as shown in the formula (22).

[Va]ij ˄ [Vb ˅ Vc]ij = [a1∧(b1∨c1)a2∧(b2∧c2)...ak∧(bk∧ck)]ij (22)

By applying the distributed property of the Boolean expression {a ˄(b ˅ c) = (a ˄ b)˅(a ˄ c)}, Will get the formula (23).

[Va]ij ˄ [Vb ˄ Vc]ij = [(a1∧b1)∨(a1∧c1)(a2∧b2)∨(a2∧c2)...(ak∧bk)∨(ak∧ck)]ij = [Va ˄ Vb]ij ˄ [Va ˄ Vc]ij (23)

By applying exclusive operation between the two equal terms of formula (23), will get the formula (24).

( [Va]ij ˄ [Vb ˅ Vc] )ij ⊕ ( [Va ˄ Vb]ij ˅ [Va ˄ Vc] )ij = [0]ij (24)

By composing ij-number of bit-vectors of the formula (24) into the bit-vector matrix (Q), will get the formulas (25).

[(𝐕𝐚)𝟏𝟏⋯(𝐕𝐚)𝟏𝐣⋮⋱⋮(𝐕𝐚)𝐢𝟏⋯(𝐕𝐚)𝐢𝐣]∧[(Vb∨Vc)11⋯(Vb∨Vc)1j⋮⋱⋮(Vb∨Vc)i1⋯(Vb∨Vc)ij]⊕[(Va∧Vb)11⋯(Va∧Vb)1j⋮⋱⋮(Va∧Vb)i1⋯(Va∧Vb)ij]∨[(Va∧Vc)11⋯(Va∧Vc)1j⋮⋱⋮(Va∧Vc)i1⋯(Va∧Vc)ij]=[0]ijk (25)

The formula (25) can be simplified in the modified Boolean distributive expression as formula (26).

( Aijk ˄ [B ˅ C]ijk ) ⊕ ( [A ˄ B]ijk ˅ [A ˄ C]ijk) = [0]ijk (26)

Similarly, the modified Boolean distributive expression illustrates as in the formula (27).

( Aijk ˅ [B ˄ C]ijk ) ⊕ ( [A ˅ B]ijk ˄ [A ˅ C]ijk) = [0]ijk (27)

The De-Morgan theorem based on the Bit-Vector Matrix

Assume the disjunction (˅) operation between the two complement bit-vectors "Vaij" and "Vbij" as shown in the formula (28).

¬[Va]ij ˅ ¬[Vb]ij = [¬a1∨¬b1¬a2∨¬b2...¬ak∨¬bk]ij (28)

By Applying the De-Morgan's theorem ¬a ˅ ¬b = ¬(a˄b) on formula (28), will get the formula (29).

¬[Va]ij ˅ ¬[Vb]ij = [¬a1∨¬b1¬a2∨¬b2...¬ak∨¬bk]ij = ¬( [Va]ij ˄ [Vb] )ij (29)

After making the exclusive operation between the two equal terms of formula (29), will get the formula (30).

( [¬Va]ij ˅ [¬Vb]ij ) ⊕ ¬([Va]ij ˄ [Vb]ij) = [0]ij (30)

By composing "ixj" of bit-vectors of the formula (30) in the general formula of the bit-vector matrix (Q), will get the formula (31).

[(¬𝐕𝐚)𝟏𝟏⋯(¬𝐕𝐚)𝟏𝐣⋮⋱⋮(¬𝐕𝐚)𝐢𝟏⋯(¬𝐕𝐚)𝐢𝐣]∨[(¬Vb)11⋯(¬Vb)1j⋮⋱⋮(¬Vb)i1⋯(¬Vb)ij]⊕[¬(Va∧Vb)11⋯¬(Va∧Vb)1j⋮⋱⋮¬(Va∧Vb)i1⋯¬(Va∧Vb)ij]=[0]ijk (31)

The modified expression of the De-Morgan's theorem for two Bit-Vector-Matrices in formula (31) can be reduced as the formula (32).

( ¬Aijk ˅ ¬Bijk ) ⊕ ¬[A ˄ B]ijk = [0]ijk (32)

Similarly, the modified expression of the De-Morgan's theorem for three Bit-Vector-Matrices shows in the formula (33).

( ¬Aijk ˅ ¬Bijk ˅ ¬Cijk ) ⊕ ¬[A ˄ B ˄ C]ijk = [0]ijk (33)

Verifying the De-Morgan of 3D Bit-matrices by VHDL

The attached VHDL code for realizing the De-Morgan theory based on the Bit-Vector Matrices (3-bit matrices). The VHDL code built using Xilinx editor ISE. It declares the Bit-Vector Matrix as "Bit_V_Matrix". It has 3 input Bit-Vector-Matrices (Matrix1, Matrix2 and Matrix3) besides the output matrix (Matrix_OUT). All matrices in the code have three dimensions "i", "j" and "k". This meaning that each bit in any mentioned matrix has 3D location in its Bit-Vector Matrix. The code has 2 main paths for handling the logical data in the 3 Bit-Vector-Matrices. The first path performs the "AND" and "NOT" operations for the Bit-Vector-Matrices. In addition, the second path carry out the "NOT" and "OR" operations. The results of the 2 paths are performing by "XOR" operation. All logical operations are carried out concurrently. The code can be modified easily to increasing or decreasing the number of rows, columns, bits for the manipulated Bit-Vector-Matrices. Moreover, the code can modify to either increasing or decreasing the number of input Bit-Vector-Matrices related to the capacity of bits in the different applications.

File:Assem De-Morgan Bit-Vector matrix based on VHDL code.png
Assem De-Morgan of Bit-Vector_matrices in VHDL code

According to the attached formulas of the Bit-Vector-Matrices De-Morgan theory, the results from the XOR-operation is allows zero-bits. The VHDL code is verified using a reliable simulator.

File:Testing Assem De-Morgan VHDL code.png
Testing Assem De-Morgan VHDL code

Applications [4] of the Bit-Vector Matrix on the Images

The images can be represented mathematically using the Bit-Vector-Matrices by the concept of the Bit Per Pixel (Bpp). The total amount of its height pixels can represent by the total number of rows "i" in a Bit-Vector Matrix, the total amount of width pixels can represent by the total number of columns "j" in this matrix. In addition, the BPP value (depth) can be represented as the parameter "k" of the same matrix. In other words, the image can be represented in one Bit-Vector Matrix. This issue can define as image in single matrix (IISM). Assume an image with resolution 1024 x 1024 with high color (BPP = 16-bit). This image can be represented mathematically in single Bit-Vector Matrix with parameters "i", "j" and "k" equal "1024", "1024" and "16" respectively. The size of this image will be as the following formula

The capacity of image bit in the matrix = i * j * K = 1024 * 1024 * 16 = 16777216 bits = 2 MB

This mathematical representation consider as mathematical model. It helps in image processing by carrying out the suitable logical and mathematical operation on it. This mathematical model can be converted to a computational model using any computer language to run this images on either the operating systems or display it on GLCD from memory. Many instructions can be produced through handling operations based on the Bit-Vector-Matrices inside the microprocessor especially the graphic processors.

References

  1. ↑ Badr, Assem (2018). "Modifying the logic gate symbols to enrich the designing of the computer systems by 3-D bit-matrices". Ain Shams Engineering Journal. 9 (4): 3207–3216. doi:10.1016/j.asej.2018.06.002.
  2. ↑ Davis, Philip J. (1965). The Mathematics of Matrices. ISBN 9780898747560. Search this book on
  3. ↑ Arulmozhi, G. (2003). Mathematical and computational Models. ISBN 9788177645545. Search this book on
  4. ↑ Cantrell, C. D. (2000-10-09). Modern Mathematical Methods for Physicists and Engineers. ISBN 9780521598279. Search this book on
  • [1] Modifying the logic gate symbols to enrich the designing of the computer systems by 3-D bit-matrices


This article "Bit-Vector Matrix" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Bit-Vector Matrix. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.