1
00:00:00,080 --> 00:00:01,960
So our generation is successful.

2
00:00:01,990 --> 00:00:08,040
No, again, we follow the same procedure to export hardware to file export export hardware.

3
00:00:08,250 --> 00:00:10,870
And this will be including industry, right?

4
00:00:10,890 --> 00:00:16,200
So we'll be selecting the same territory where we have relied reliable project data once that Edison

5
00:00:16,500 --> 00:00:19,650
go to tools and then launch by this lady right here.

6
00:00:19,980 --> 00:00:24,780
We will be using the same workspace where we have our little project, right?

7
00:00:24,790 --> 00:00:30,330
So go ahead and select the same workspace where we have our project right to work.

8
00:00:30,330 --> 00:00:30,930
That is done.

9
00:00:31,260 --> 00:00:34,490
We will be creating first platform project.

10
00:00:34,500 --> 00:00:38,120
Okay, so that will basically involve this hardware specification.

11
00:00:38,130 --> 00:00:44,820
The hardware that we have created in a Iraq right so we could create platform project will just be naming

12
00:00:44,820 --> 00:00:48,510
this as multiple GPIO instance, OK?

13
00:00:48,540 --> 00:00:52,380
Click next, and then we click on Browse Button.

14
00:00:54,170 --> 00:00:56,810
We go to a directory where we have our highway.

15
00:00:57,770 --> 00:01:03,800
Excessive light and then we click finish, the one sided platform project is really the first thing

16
00:01:03,800 --> 00:01:04,370
that we.

17
00:01:05,370 --> 00:01:09,600
Do is to remove this out of date status, very serious pest control envy.

18
00:01:09,870 --> 00:01:12,270
This will automatically start building up our project.

19
00:01:12,660 --> 00:01:21,180
And once Bill is successful, we select the platform project, right click new and then we select an

20
00:01:21,180 --> 00:01:22,110
application project.

21
00:01:22,110 --> 00:01:23,070
Right click next.

22
00:01:24,100 --> 00:01:29,740
So this will automatically invoke the Black Swan project, or here will be selecting the theme platform

23
00:01:29,740 --> 00:01:35,260
project and the name that will be utilizing for this is multiple GPA.

24
00:01:35,260 --> 00:01:41,250
You are in this school district, right click next and then we will be invoking the High-Level Template,

25
00:01:41,260 --> 00:01:41,590
right?

26
00:01:42,850 --> 00:01:48,460
Now we go to a small stuff where we have our hollowed out sea and then we'll start building an application

27
00:01:48,460 --> 00:01:49,130
right now.

28
00:01:49,150 --> 00:01:53,810
Remember, in our hybrid design, we have two instances of any right.

29
00:01:54,190 --> 00:01:56,560
So we need to independently initialize them.

30
00:01:56,710 --> 00:02:00,940
We need to declare two instance structure and to convict structure, right?

31
00:02:00,970 --> 00:02:06,460
This makes it so here I have code from our previous example.

32
00:02:06,460 --> 00:02:09,190
So we'll just be copying it, going back to Envato.

33
00:02:10,940 --> 00:02:14,950
Let us start adding the two drivers, which are mandatory.

34
00:02:15,040 --> 00:02:20,840
The first one for a GPA, we require to include X to be able to attach rate.

35
00:02:20,860 --> 00:02:22,720
This is the first driver that we require.

36
00:02:23,080 --> 00:02:28,480
The second one is the experimental data checks parameters starting right.

37
00:02:29,260 --> 00:02:33,370
So we are required to convict structure and to instance, structure, right?

38
00:02:33,370 --> 00:02:40,030
So we'll just be now naming our config structure like this a switch config, OK, which will be working

39
00:02:40,030 --> 00:02:43,960
with an initialization of a variable configured to work with the switch.

40
00:02:43,960 --> 00:02:47,280
And then we have any lady config, right?

41
00:02:47,320 --> 00:02:49,830
And this again, should be the point, right?

42
00:02:50,140 --> 00:02:53,500
The these are the two config structure and an instance structure.

43
00:02:53,500 --> 00:02:56,180
So we'll just be naming the assets, which are nearly right.

44
00:02:56,860 --> 00:03:01,450
Once this is done now here we will proceed for initialization, right?

45
00:03:01,690 --> 00:03:04,300
So let's first initialize which.

46
00:03:05,870 --> 00:03:10,760
Consecrate, so here we will be adding switch config, no, you're required to pass a device idea.

47
00:03:10,760 --> 00:03:18,380
So if you go to an X parameter dotage, and since we have correctly named up a referral according to

48
00:03:18,380 --> 00:03:24,080
a functionality you'll be finding now finding a device, it becomes very easy.

49
00:03:24,080 --> 00:03:31,180
So we'll just look for Switch and our APIs will be named according to the name that we have given to

50
00:03:31,190 --> 00:03:33,060
a favorite line you could clearly see.

51
00:03:33,350 --> 00:03:39,410
Now it is very easy to locate the device I.D. for a specific benefit right now, since this is working

52
00:03:39,410 --> 00:03:42,200
with the switch, then just be passing the Switch ID.

53
00:03:42,200 --> 00:03:45,700
You are here, OK, and then we have a status.

54
00:03:45,710 --> 00:03:50,480
Let us just name this as status is so key since it is working with the switch.

55
00:03:50,870 --> 00:03:54,850
And here we need to pass the instant structure, which is a step blue.

56
00:03:55,250 --> 00:03:58,040
OK, one fixed structure will be a stable config.

57
00:03:58,280 --> 00:04:01,550
And finally, we require two paths to be set right.

58
00:04:01,550 --> 00:04:09,290
So this complete the initialization code for our switch now will just be copying this statement and

59
00:04:09,290 --> 00:04:12,410
we'll modify it says that it will be working with an LCD.

60
00:04:12,410 --> 00:04:16,400
So first thing that we do, it will be adding an added config.

61
00:04:16,440 --> 00:04:21,260
OK, since this is the structure that will be working with an LCD, then we need to pass the device.

62
00:04:21,560 --> 00:04:25,850
So we go to an experimental stage and then here we have our device idea, right?

63
00:04:25,850 --> 00:04:28,970
So we go ahead and add the device.

64
00:04:28,970 --> 00:04:29,260
I do.

65
00:04:29,270 --> 00:04:30,550
We're here, right?

66
00:04:31,160 --> 00:04:33,800
This do will be naming A-Z.

67
00:04:33,920 --> 00:04:36,290
OK, since this will be working with an LCD.

68
00:04:37,010 --> 00:04:42,890
The incident structure for an elite is really and then the config structure is.

69
00:04:43,970 --> 00:04:50,720
Early in the school conflict, so that is what we going right over here and here, also a Confederate,

70
00:04:50,720 --> 00:04:51,820
so this complete the goal.

71
00:04:52,070 --> 00:04:58,640
Now we need to have over the boot of this state as this and state Israel is equal to exist just so we

72
00:04:58,640 --> 00:05:00,770
could just use hand and open the door to here.

73
00:05:01,130 --> 00:05:05,270
And then we will be adding statuses and status, right?

74
00:05:06,140 --> 00:05:08,990
So this will verify whether both of this that is true.

75
00:05:08,990 --> 00:05:15,050
This is and Steve Israel, OK, both I equals to exist to success.

76
00:05:15,050 --> 00:05:19,190
And if that is the case, we could see GPIO and it is successful, eligible.

77
00:05:19,190 --> 00:05:20,630
Just mentioned UPI it.

78
00:05:20,940 --> 00:05:21,160
Right.

79
00:05:21,160 --> 00:05:28,790
So this is how we will be writing the multiple initialization for the multiple peripheral APIs that

80
00:05:28,790 --> 00:05:29,600
we have, right?

81
00:05:29,600 --> 00:05:37,220
Remember in your design, if you have multiple types of scheme type, then you need to independently

82
00:05:37,220 --> 00:05:38,360
initialize templates.

83
00:05:38,360 --> 00:05:39,980
So that is what we did over here.

84
00:05:40,640 --> 00:05:43,430
Then we already got a GPIO in it.

85
00:05:43,760 --> 00:05:48,380
So we'll be going ahead and calling GPO and iterate.

86
00:05:48,650 --> 00:05:51,260
The next step is to correctly set up the direction, right?

87
00:05:51,270 --> 00:05:56,330
So for that, we go to our next episode or shortage right here.

88
00:05:56,600 --> 00:05:59,060
We have a said direction EPA, right?

89
00:05:59,060 --> 00:06:01,010
So we'll just be calling it.

90
00:06:01,430 --> 00:06:07,160
This required the instant structure, the channel number and the direction that we want to set, right?

91
00:06:08,280 --> 00:06:10,020
We will be going ahead.

92
00:06:11,130 --> 00:06:13,440
OK, so instant structure for switches.

93
00:06:13,530 --> 00:06:14,280
Switch.

94
00:06:14,340 --> 00:06:14,670
Right.

95
00:06:15,240 --> 00:06:20,730
We are utilizing a single channel for both types and we want to set it as an input port, so we just

96
00:06:20,730 --> 00:06:21,300
need to add.

97
00:06:21,570 --> 00:06:22,500
All right.

98
00:06:22,830 --> 00:06:27,750
Similarly, for an LCD, we have an instant structure as.

99
00:06:28,790 --> 00:06:29,440
A lady.

100
00:06:29,600 --> 00:06:34,750
Now we are again utilizing a single agenda, and this should be settled and our proposal will just be

101
00:06:34,760 --> 00:06:36,620
adding all zeros today.

102
00:06:36,860 --> 00:06:39,540
So once this is done, we can actually set up the direction.

103
00:06:39,540 --> 00:06:42,920
Now we'll start building an application, then application will be very simple.

104
00:06:43,400 --> 00:06:48,290
It will be simply reading the data from the switch and then sending one to an illiterate.

105
00:06:48,350 --> 00:06:52,370
So this will be doing at an interval of let's listen to second rate.

106
00:06:52,850 --> 00:06:54,050
We declared one variable.

107
00:06:54,170 --> 00:06:59,720
They just need this as you do, which will be storing the switch data.

108
00:07:00,080 --> 00:07:00,440
OK.

109
00:07:01,880 --> 00:07:03,950
So here we will go ahead.

110
00:07:04,250 --> 00:07:12,470
We will be calling switcheroo and then we will be utilizing the discreet Reed API.

111
00:07:12,650 --> 00:07:17,490
OK, and this just required an instant structure and a channel number.

112
00:07:17,510 --> 00:07:17,810
Right?

113
00:07:18,230 --> 00:07:19,370
So we'll go ahead.

114
00:07:20,270 --> 00:07:25,190
So incident structure for us, which is established and the channel numbers were right.

115
00:07:25,640 --> 00:07:29,560
So now what are we going to do is we will be writing this city down to anybody.

116
00:07:29,580 --> 00:07:34,300
OK, so for that, we have a discreet right, OK, which have three arguments.

117
00:07:34,310 --> 00:07:39,560
The first argument is, for instance, structures so far and the instance infrastructure is a lady,

118
00:07:39,890 --> 00:07:44,390
the channel number is one, and the reader that we want to send is Switch three.

119
00:07:44,600 --> 00:07:44,900
Right?

120
00:07:45,140 --> 00:07:46,010
This makes sense.

121
00:07:46,520 --> 00:07:52,040
And we want to repeat an entire process after an interval of two seconds and we'll just be calling Sleep

122
00:07:52,040 --> 00:07:58,670
two and due to a pretense of while one, this will be continuously repeating until user press the reset

123
00:07:58,670 --> 00:07:58,970
button.

124
00:07:59,060 --> 00:08:01,710
OK, so this completes our application.

125
00:08:01,740 --> 00:08:05,060
Now we are ready to build up our applications for breath control.

126
00:08:05,540 --> 00:08:08,390
This will build up an entire application project, right?

127
00:08:08,690 --> 00:08:15,980
So once our build is successful, we'll proceed to right click on an application project the DBA gets

128
00:08:15,980 --> 00:08:17,330
and then launch on hardware.

129
00:08:17,510 --> 00:08:22,850
So this will switch our due way from design perspective to a debug perspective.

130
00:08:23,120 --> 00:08:30,950
Now will connect why it is still OK to go come six so that we able to recognize that there are initialization

131
00:08:30,950 --> 00:08:32,030
is successful or not.

132
00:08:32,210 --> 00:08:37,460
So we'll go and click on this plus button, select column six and the board rate at which we are working

133
00:08:37,460 --> 00:08:40,460
is nine six zero zero two one serial terminal disconnected.

134
00:08:40,850 --> 00:08:44,400
We'll just be going around and click on this resume button, right?

135
00:08:44,400 --> 00:08:53,600
So here you could see GPO and it is successful now as we change the switch, look, you could observe.

136
00:08:54,710 --> 00:08:58,670
The changes in elite state, right?

137
00:08:59,860 --> 00:09:05,260
One more thing that we could do here is we could just bring the value of the.

138
00:09:06,470 --> 00:09:09,350
Switch with that also help us to.

139
00:09:10,990 --> 00:09:14,560
See the values of the switch that we are really engaged, so.

140
00:09:15,710 --> 00:09:20,470
Here we will just be mentioning while you read.

141
00:09:21,080 --> 00:09:21,400
OK.

142
00:09:21,590 --> 00:09:28,640
But S.E. Rudy, new line character and then the reader we have is in switcheroo variable, right to

143
00:09:28,640 --> 00:09:31,810
once you modify your application, go ahead.

144
00:09:32,180 --> 00:09:36,710
First, disconnect your debug session.

145
00:09:36,740 --> 00:09:39,410
OK, go back to design.

146
00:09:39,740 --> 00:09:48,140
OK, and then we could just right click run or launch debug s launch on hard, right?

147
00:09:49,210 --> 00:09:55,940
This will automatically reprogram a refugee, and then we will be again starting to see.

148
00:09:57,380 --> 00:10:00,790
The values on a council, right, so will just be going ahead.

149
00:10:02,790 --> 00:10:12,330
So what we could do here is he could also bring the value of the S.W.3d variables to this help us to

150
00:10:13,350 --> 00:10:20,490
see whether we are getting corrected on any rate, so we'll go ahead and will modify our application

151
00:10:20,490 --> 00:10:24,510
a bit to 0.5 and then value.

152
00:10:25,550 --> 00:10:26,670
Right, OK.

153
00:10:27,110 --> 00:10:33,490
But S.E. Rudy, again, do not forget to add a new line character and the value we have inside sushi

154
00:10:33,490 --> 00:10:39,800
right to once you modify an application, the first thing that we do is to build your application project

155
00:10:39,800 --> 00:10:41,420
else if you feel to build.

156
00:10:41,720 --> 00:10:42,080
OK.

157
00:10:42,230 --> 00:10:46,190
Just relaunching our debug session won't be updating your application.

158
00:10:46,190 --> 00:10:50,240
You still be able to see your previous application been turning on an FPGA, right?

159
00:10:50,540 --> 00:10:55,940
So first thing that you always do is as soon as you perform an update, you build your project rate.

160
00:10:55,950 --> 00:10:58,880
So press control be of one spirit is successful.

161
00:10:59,420 --> 00:10:59,750
OK.

162
00:11:00,290 --> 00:11:03,830
We will again be relaunching our debug session, right?

163
00:11:03,830 --> 00:11:07,840
So we go to the design perspective.

164
00:11:07,850 --> 00:11:10,340
You select an application project, OK?

165
00:11:10,670 --> 00:11:15,800
Make sure that you are building successful, then right click Right debug yes.

166
00:11:15,800 --> 00:11:20,570
And then launch on heart rate will again go ahead and.

167
00:11:21,790 --> 00:11:29,530
Disconnect are right, is still middle, OK, and connecting back to the same food which will be operating

168
00:11:29,530 --> 00:11:31,780
at the board of nine six zero, right?

169
00:11:32,020 --> 00:11:38,260
And then we are ready to perform execution of our call, right that this you could clearly see now we

170
00:11:38,260 --> 00:11:39,370
are able to bring the value.

171
00:11:39,370 --> 00:11:51,770
So as I change the values of the switch, you could see the changes of the values of a switch, right?

172
00:11:52,640 --> 00:11:57,490
And again, you could also observe the same street on an early deals.
