﻿1
00:00:04,280 --> 00:00:09,530
‫Welcomed the Alieu demonstration but the base is too short for this demonstration.

2
00:00:09,530 --> 00:00:18,020
‫We have two four digit seven segment displays located on solderless breadboard where each of the segments

3
00:00:18,140 --> 00:00:27,470
‫are tied together through a 56 ohm resistor that is fed into the J and J b p mod ports of the Base to

4
00:00:27,470 --> 00:00:28,490
‫board.

5
00:00:28,520 --> 00:00:34,300
‫We also have all the digits selects all eight of them are connected through a two and thirty nine or

6
00:00:34,300 --> 00:00:41,390
‫four and transistor where the 470 ohm resistor are connected through the base and these are fed and

7
00:00:41,390 --> 00:00:51,860
‫controlled through the J.C. Jaydee the main ports of the bases to board we also are using switches 7

8
00:00:51,980 --> 00:01:01,050
‫6 and 5 for the opcode of the Alieu we have are using switch one to determine if we're going to add

9
00:01:01,080 --> 00:01:07,740
‫or subtract whenever we want to select the value we're going to place into that A and B and R switch

10
00:01:07,740 --> 00:01:15,940
‫0 selects which which value we're displaying for displaying value or displaying value B and Button 0

11
00:01:16,370 --> 00:01:25,530
‫determines if we're going to add or subtract one button to button one is ours check ten button to add

12
00:01:25,530 --> 00:01:26,970
‫or subtract 100.

13
00:01:27,240 --> 00:01:30,020
‫Button 3 is the exit queue.

14
00:01:30,090 --> 00:01:32,970
‫So that will start the Alieu and execute the command.

15
00:01:33,030 --> 00:01:40,460
‫So to start off we are displaying our switch 0 is pulled down or displaying the FI pull switch up.

16
00:01:40,630 --> 00:01:41,790
‫Display.

17
00:01:41,850 --> 00:01:46,500
‫Now both are set to zero and we are initialized so that is why we don't see a difference when we switch

18
00:01:46,500 --> 00:01:47,730
‫from down to up.

19
00:01:47,730 --> 00:01:51,430
‫So right now we're just playing a and or add subtract is down.

20
00:01:51,510 --> 00:01:52,800
‫So we're going to subtract.

21
00:01:52,860 --> 00:01:56,380
‫Let's pull that up and we'll press button 0.

22
00:01:56,440 --> 00:01:58,440
‫You can see we're adding one.

23
00:01:58,470 --> 00:02:04,110
‫If I pull it down the switch too and I hit that we subtraction our down to zero.

24
00:02:04,220 --> 00:02:05,720
‫I hit it once again.

25
00:02:05,820 --> 00:02:12,090
‫We go down to a negative one into the negative as indicated by the the far left segments I want to see

26
00:02:12,090 --> 00:02:19,530
‫why having the centerpiece illuminated so we can go ahead and select the value for a will make it negative

27
00:02:19,530 --> 00:02:24,470
‫3 and we can go up by 10 or by 100.

28
00:02:24,630 --> 00:02:27,340
‫And if we just add we can go right back to where negative 3.

29
00:02:27,420 --> 00:02:29,660
‫So we're at negative 3 on our input A.

30
00:02:29,900 --> 00:02:32,550
‫If we select down our input B is still 0.

31
00:02:32,550 --> 00:02:36,100
‫So our input B is now displayed on the 7 segment display.

32
00:02:37,170 --> 00:02:44,640
‫And just like before we can add if we have our add subtracts which called high if we pull low now we'll

33
00:02:44,640 --> 00:02:46,480
‫subtract and we can go down the negatives.

34
00:02:46,680 --> 00:02:52,260
‫But we're going to make our be a positive number so we'll make that a positive too or we'll make it

35
00:02:52,420 --> 00:02:53,720
‫a positive for.

36
00:02:53,760 --> 00:02:59,260
‫So our input A is a negative three and B is a positive for.

37
00:02:59,460 --> 00:03:05,580
‫So right now let's run through the different opcode operations to see how how this works.

38
00:03:05,580 --> 00:03:09,030
‫So the first opcode operation we have is three zeroes.

39
00:03:09,030 --> 00:03:17,400
‫So we pool our switch 7 switch 6 and switch 5 all down to zero and if we pressed the execute command

40
00:03:18,060 --> 00:03:22,150
‫this will take the value of a and display it in the result register.

41
00:03:22,170 --> 00:03:25,480
‫So to see the value based we poor switch 0 high.

42
00:03:25,850 --> 00:03:27,500
‫So it's a negative 3.

43
00:03:27,510 --> 00:03:33,600
‫So by pressing our execute button we now see we have a negative 3 being displayed in our result register

44
00:03:34,320 --> 00:03:41,460
‫our next command is at 0 0 1 and this will take the value of B which is 0 0 for a place that in the

45
00:03:41,460 --> 00:03:44,210
‫result register for us to execute.

46
00:03:44,220 --> 00:03:50,490
‫Now you see we have a value of 4 in our result register our next command is 0 1 0.

47
00:03:50,640 --> 00:03:56,620
‫So 0 1 0 and this will take the result of a plus b.

48
00:03:56,640 --> 00:04:03,800
‫So we have our negative 3 plus four is a value of 1 to execute and we'll see 1 shows up in the result

49
00:04:03,810 --> 00:04:04,760
‫register.

50
00:04:04,830 --> 00:04:08,800
‫Now for your 0 1 1 that's a minus B.

51
00:04:08,820 --> 00:04:17,580
‫So 0 1 1 that's a negative 3 minus be negative 3 minus 4 is negative 7 which is the value we see displayed

52
00:04:17,610 --> 00:04:19,250
‫in our result register.

53
00:04:19,730 --> 00:04:25,110
‫And now we have two different commands that are used to set all the values to either zero or negative

54
00:04:25,110 --> 00:04:25,820
‫1.

55
00:04:25,830 --> 00:04:36,000
‫So if we set you a 1 0 0 1 0 0 for opcode and press execute this is going to set all of the values in

56
00:04:36,000 --> 00:04:37,350
‫our result register to zero.

57
00:04:37,350 --> 00:04:41,610
‫So basically we're setting a result back to zero execute our result register.

58
00:04:41,610 --> 00:04:46,890
‫We can see is set to zero if we do a 1 0 1.

59
00:04:46,890 --> 00:04:50,520
‫This sets all of the values in a result register to a 1.

60
00:04:50,520 --> 00:04:56,430
‫Now since we're doing a sign notation This is actually the representation of a negative one because

61
00:04:56,810 --> 00:05:00,570
‫in VHDL sign notation is represented using two's complement.

62
00:05:00,650 --> 00:05:05,660
‫And so in twos complement form all ones is the same as a negative one.

63
00:05:05,670 --> 00:05:07,200
‫So we press execute.

64
00:05:07,350 --> 00:05:13,050
‫We'll see a negative one display in our result register and that is the Alieu demonstration running

65
00:05:13,200 --> 00:05:14,300
‫on the basis of or.

