1
00:00:01,290 --> 00:00:07,110
How can we run to cities for the single cycle parallel to sell your circuit explained in the previous

2
00:00:07,110 --> 00:00:07,570
section?

3
00:00:08,250 --> 00:00:11,100
This letter will explain how to write this Test match.

4
00:00:13,660 --> 00:00:19,560
To show your circuit explained in the previous section, receives two inputs and generates three outputs,

5
00:00:20,100 --> 00:00:26,490
a single cycle pulse commands the circuit to start the parallel to Cirio conversion, and it takes eight

6
00:00:26,490 --> 00:00:29,020
clock cycles to send out an eight bit data.

7
00:00:29,970 --> 00:00:35,010
The proper test bench should enable us to evaluate the circuit in each clock cycle.

8
00:00:39,800 --> 00:00:45,830
As we know, each execution of the circuit based on the single cycle design approach takes one color

9
00:00:45,830 --> 00:00:46,770
cycle to finish.

10
00:00:47,330 --> 00:00:53,840
So if we call the design function in the test bench, fine, we expect one clock cycle of simulation.

11
00:00:54,560 --> 00:01:00,710
This feature of the single cycle design approach helps us to have a second accuracy simulation that

12
00:01:00,710 --> 00:01:03,270
is not available under other design techniques.

13
00:01:03,680 --> 00:01:06,230
Let's show that for the panel to Serializer.

14
00:01:11,760 --> 00:01:14,150
Anticipation starts with the sea main function.

15
00:01:14,740 --> 00:01:19,720
As usual, we define this not as viable to represent the correctness of the design.

16
00:01:21,080 --> 00:01:24,800
We should also define the variables used along the Test match code.

17
00:01:28,470 --> 00:01:34,020
Now we can assign proper values to the design input arguments and then call the design top function.

18
00:01:35,240 --> 00:01:42,920
Call runs a design once, which takes one click cycle in the single cycle design technique, known that

19
00:01:43,370 --> 00:01:47,070
only calling the design top function advances the simulation clock.

20
00:01:47,660 --> 00:01:51,470
So assigning values to variables is done in zero.

21
00:01:51,470 --> 00:01:52,450
Simulation three.

22
00:01:53,660 --> 00:01:58,750
During the first call, the design does nothing as the beginning input signal is.

23
00:01:59,930 --> 00:02:05,760
We can then assign the value of one to the biggest signal and command of design to start conversion.

24
00:02:06,290 --> 00:02:10,900
We should remember to write zero to the design signal after one design function.

25
00:02:11,900 --> 00:02:16,790
This process ensures the creation of a single cycle pulse on the beacon signal.

26
00:02:17,330 --> 00:02:21,650
Also, we can read the output signals after the design function call.

27
00:02:22,040 --> 00:02:23,150
We can repeat the function.

28
00:02:23,150 --> 00:02:25,790
Call as many clock cycles as we want.

29
00:02:26,850 --> 00:02:34,080
Here, a forum called The Design eight times, then we can check the results and modify the status variable

30
00:02:34,080 --> 00:02:35,100
appropriately.

31
00:02:37,430 --> 00:02:42,650
In the next lecture, we will develop a test bench for the serial to parallel circuit explained in the

32
00:02:42,650 --> 00:02:43,430
previous section.

33
00:02:45,740 --> 00:02:47,360
These are our takeaway messages.

34
00:02:48,420 --> 00:02:53,590
Considering the single cycle design techniques, each designed to function called in a test bench,

35
00:02:53,610 --> 00:03:00,510
takes one simulation clock, other statements in a test bench do not take any simulation clocks and

36
00:03:00,510 --> 00:03:01,860
will be done in zero time.

37
00:03:05,130 --> 00:03:11,460
Now, the question down of the parallel to serial code, which is in the resources folder attached to

38
00:03:11,460 --> 00:03:17,550
this lecture and examine the simulation as well as the artillery code simulation waveforms.
