1
00:00:00,990 --> 00:00:07,610
The register is a set of flipflops with the shared control signals such as clock and reset signals,

2
00:00:08,370 --> 00:00:10,940
how can we describe a scene and HLS code?

3
00:00:11,640 --> 00:00:17,400
This lab answered this question by implementing the same design example explained in the previous lecture.

4
00:00:19,670 --> 00:00:26,150
Our design example in the previous lecture consisted of three flipflops connected together as a shift

5
00:00:26,150 --> 00:00:26,630
register.

6
00:00:28,510 --> 00:00:34,960
Here we are going to describe the same design using a multiple static variable notice that usually the

7
00:00:34,960 --> 00:00:40,730
most right bit is the least significant it and is denoted by index zero.

8
00:00:41,170 --> 00:00:48,550
Consequently, the most right bit is the most significant bit and is denoted by index and minus one

9
00:00:48,610 --> 00:00:51,730
square and is the number of bits in the variable.

10
00:00:56,110 --> 00:01:02,970
First of all, let's create a new White House project with the name of DFS under a school register.

11
00:01:03,180 --> 00:01:04,090
That's such.

12
00:01:10,570 --> 00:01:13,510
Choose the basis three board and the target the platform.

13
00:01:15,460 --> 00:01:19,970
Make sure that we want IP floor target is selected under the floor target.

14
00:01:24,660 --> 00:01:31,320
A design source and interface also create a New Testament source and Weatherford's make sure to save

15
00:01:31,320 --> 00:01:33,510
the files inside the project folder.

16
00:01:52,690 --> 00:02:00,100
In the design there, fine include the AP Underscore Edge in the design Sourcefire first include the

17
00:02:00,100 --> 00:02:06,910
header file and then define the top function with two arguments defining a static variable of type API,

18
00:02:06,910 --> 00:02:13,450
underscore you into three and initialize that to zero, then shift unregister content one bit to the

19
00:02:13,450 --> 00:02:18,720
right more hour at the input data into the mouthpiece of the register.

20
00:02:20,880 --> 00:02:28,170
In the end, I signed the register to the argument, let's add the port interfaces later and see what

21
00:02:28,170 --> 00:02:28,610
would happen.

22
00:02:32,370 --> 00:02:37,590
Now, we should try to test match code, open the Test match header file and include the design header

23
00:02:37,590 --> 00:02:43,980
file and then add the design top function prototype, open the test open source file and define the

24
00:02:43,980 --> 00:02:48,520
main function, define the status variable and return that as usual.

25
00:02:49,260 --> 00:02:54,140
Then let's call the design top function several times with different input values.

26
00:02:54,870 --> 00:03:00,450
Note that as our goal in this test bench is viewing the design output waveforms.

27
00:03:00,720 --> 00:03:06,030
We have not checked the results and the test bench always claims that the design is correct.

28
00:03:09,910 --> 00:03:11,710
Now we can simulate our description.

29
00:03:26,210 --> 00:03:30,320
The output confirms that the right shift is performed in the design.

30
00:03:37,540 --> 00:03:39,070
Now, let's synthesize the code.

31
00:03:57,020 --> 00:03:59,030
Let's look at the full synthesis report.

32
00:04:03,370 --> 00:04:09,400
We can see that the hardware design uses for flipflops among which tree implements the state variable,

33
00:04:09,520 --> 00:04:13,510
and one is for control purposes generated by the synthesis to.

34
00:04:16,330 --> 00:04:22,690
As we haven't explicitly defined the port interfaces, the HLS tool has considered their default interfaces.

35
00:04:25,260 --> 00:04:31,920
I will talk about these interfaces later in discourse now let's add the design interfaces and synthesize

36
00:04:31,920 --> 00:04:32,490
the code again.

37
00:05:00,310 --> 00:05:07,630
To see the sentences waveform first, we should run our TLC code simulation, please make sure that

38
00:05:07,630 --> 00:05:10,930
you have selected all Allport in the dumps resorption.

39
00:05:33,360 --> 00:05:37,950
After finishing the article, Zikos Simulation, click on the Open Wave.

40
00:05:39,930 --> 00:05:42,390
Do we want away from viewer will appear?

41
00:06:07,070 --> 00:06:10,600
Shoddy design put an end to the arguments as well as the clock signal.

42
00:06:11,890 --> 00:06:14,560
Check that the design outputs are shifted to the right.

43
00:06:22,020 --> 00:06:28,620
As this video is the last lecture in the section that explains IDF concepts in the next lecture will

44
00:06:28,620 --> 00:06:32,850
give you a few exercises to review what you have learned throughout this section.

45
00:06:38,240 --> 00:06:39,650
This is our takeaway message.

46
00:06:43,940 --> 00:06:49,520
A multiple static variable can be used to describe a shift register in an Alesco.

47
00:06:53,120 --> 00:06:59,180
Now, the quiz question design a sequential logic circuit in Etchells that describes a four bit shift

48
00:06:59,180 --> 00:07:05,000
register that performs the left shift and accepts the new input as its LSP.
