Skip to content

Commit f00fd01

Browse files
committed
Chapter 17 : The Dark Side of The Moon
1 parent 2d7bbd7 commit f00fd01

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

chapter17.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,23 @@ are made up of tiny transistors, and they easily can be find in electronics stor
5252
semiconductor, connected metal legs to that, and covered with plastic, then you can buy them and use them in your projects. Also, IC's
5353
classified by their technology. For example, you know 7400 series are TTL IC's, or 28 Series are EEPROM's. Anyway, there is one other way,
5454
and you may find that the easiest way to join the dark side!
55+
56+
## Program The Hardware
57+
There are some programming languages, which are called ***Hardware Description Language*** or in short, **HDL**. They're easy to use,
58+
and they're actually similar to *C* or *Assembly* programming languages. One of my favorite HDL's is *Verilog*. I program an AND gate in
59+
HDL like this :
60+
61+
```verilog
62+
module AND(A, B, F);
63+
input wire A;
64+
input wire B;
65+
output wire F;
66+
67+
assign F = A & B;
68+
69+
endmodule
70+
```
71+
And for that, we need a ***Complex Programmable Logical Device***, CPLD or a ***Field-Programmable Gate Array***, FPGA. Those devices
72+
have logical applications, but they have no logics, and we have to program them to make them functional. A lot of ligical simulator programs,
73+
like *logisim* can generate Verilog or VHDL code of the designed logical circuit. And then, you can upload the code on your FPGA and have your
74+
very own logical device.

0 commit comments

Comments
 (0)