This section was focused on the implementation of the proposed counter and bi-directional counter circuits followed by describing their principles and mechanisms.
3.1. Proposed 4-bits counter
The main block of the proposed 4-bits counter circuit is the D-latch. To design the proposed circuit in this paper, the proposed D flip-flop suitable in terms of the number of cells, delay, occupied area, and energy consumption is first designed. Then, the counter circuit is designed with the minimum number of cells and delay using this flip-flop.
Latches and flip-flops are known as major and significant topics in the design of circuits, which have drawn attention in the QCA technology [21]. The D-latch is one of these, which is widely used in design of counters. Based on its mechanism, if the clock input is equal to one and the D input value is equal to zero, the circuit output would become zero, and if the clock input is equal to one and the input value of D is also equal to one, the output of the circuit would become one. Also, when the clock input value is equal to zero, whether the D input value is zero or one, the circuit output keeps the same state as before [22].
A 4-bits counter is designed in this paper based on proposed D-latch in the QCA technology. This counter is a 4-bits asynchronous counter, and the maximum countable number in this counter ranges from 0 (0000) to 15 (1111). Figure 4 shows the block diagram of the proposed 4-bits counter.
Figure 5 shows the proposed 4-bit counter structure in the QCA technology, which contains 207 cells, an area of 0.22 \({{\mu }{m}}^{2}\), and 4 cycles of the clock delay. This proposed structure has been designed with four falling edges D flip-flops according to the pattern shown in Fig. 4.
The proposed circuits were simulated using the QCADesigner in the Coherence Vector engine mode and these simulations demonstrate the accurate operation of the circuit. Table-1 shows the design parameters in QCADesigner.
Table-1 Coherence vector parameters
Parameter
|
Value
|
Cell size
|
18*18 nm2
|
Dot diameter
|
5 nm
|
Centre-to-centre distance
|
20 nm
|
Temperature
|
1.000000 K
|
Relaxation time
|
1.000000e-015 s
|
Time Step
|
1.000000e-016 s
|
Total Simulation Time
|
7.000000e-011 s
|
Clock High
|
9.800000e-022 J
|
Clock Low
|
3.800000e-023 J
|
Clock Shift
|
0.000000e + 000
|
Clock Amplitude Factor
|
2.000000
|
Radius of Effect
|
80.000000 nm
|
Relative Permittivity
|
12.900000
|
Layer Separation
|
11.500000 nm
|
Figure 6 shows the simulation result of the proposed 4-bits counter in the QCA technology, and it should be noted that the circuit accurately counts the values from 0 to 15. Moreover, the counting started from the number 15 according to the initial values of the output of the flip-flops.
In the rest of this article, the designed D flip-flop circuits were used in the bidirectional counter circuits to demonstrate that they also operate accurately in more complex circuits.
The bidirectional counters have the feature to count both down and up for any given sequence. They can also reverse the counting at any point in the counting sequence and do this by using an additional control input [8].
The main blocks of the proposed bidirectional counter circuit are D flip-flop and multiplexer. Multiplexers are one of the basic, major, and substantial circuits in the design of circuits, which have been considered in the QCA technology [23]. In this paper, the proposed multiplexer suitable in terms of the number of cells, the occupied area, and power was designed to design the proposed circuit. Then, the proposed bidirectional counter circuit was designed with the minimum number of cells and minimum delay using it.
Proposed bidirectional counter is a 3-bits asynchronous up/down counter, which is designed using the D flip-flops and 2:1 multiplexer. The maximum number that can be counted in this counter ranges from zero to seven when the high count selector is active, and when the down count selector is activated, the counting starts from seven and returns to zero. Therefore, the counting string in this counter is as 0, 1, 2, 3, 4, 5, 6, 7 in the up count mode and as 7, 6, 5, 4, 3, 2, 1, 0 in the down count mode. Figure 7 illustrates the proposed block diagram of a bidirectional counter.
In this design, to enable the proposed bidirectional counter block diagram to count the numbers accurately and to make it possible to reverse the count at any point in the counting sequence after the counting, the circuit block diagram was designed as follows: When the circuit is asynchronous and the clock is sensitive to the falling edge, the Q output must go to the next clock input to enable the circuit to count up, and when the circuit wants to count down, the output of \(\stackrel{-}{Q}\) must go to the next clock input. Having said that, the circuit was designed as such to place a multiplexer between each bits of the circuit, and the input of each multiplexer from Q and \(\stackrel{-}{Q}\) was taken from the D flip-flop and the output of the multiplexer was given to the next clock. The circuit mechanism is as such that, when the selectors are zero, the up-counting circuit is activated, and when the selectors are 1, the down-count circuit is activated. With this logic block diagram, when the zero selector is activated, this circuit starts counting from zero and counts up to 7, and at any point of time that the selector is changed from zero to one, the counting is changed from up count to down count.
Figure 8 illustrates the proposed bidirectional 3-bits counter structure in the QCA technology, which contains 214 cells, an area of 0.22 \({{\mu }{m}}^{2}\), and 5 cycles of the clock delay. This proposed structure consists of three falling D flip-flops and two 2:1 multiplexers, which are designed according to the pattern in Fig. 7.
Figure 9 shows the simulation result of the proposed bidirectional counter in the QCA technology and it works as follows: When the first and second selectors are zero, the up count circuit is activated and starts counting from 0 to 7, and whenever the first and second selectors become 1, the down-count circuit is activated and starts counting from 7 to 0. In this simulation result, when the first and second selectors are zero and according to the initial conditions given to the circuit, the circuit starts counting up from 4 and when the selectors get one, the circuit automatically starts counting backward at any point of the counting reaches. Figure 9 indicates the accuracy of the circuit operation.
To add more abilities in the design of counters, the reset ability and set/reset abilities are added to the designed D flip-flop circuit to demonstrate the better performance of these flip-flops besides their application in the counter circuits.
Figure 10 illustrates the block diagram of the proposed 4-bits counter with a reset terminal which is designed with a D flip-flop. In this design, to enable the proposed counter block diagram to count numbers accurately and to enable the circuit to perform the reset operation correctly and start counting from zero again, as requested, the block diagram of the circuit was designed in such a way that the outputs of the flip-flops go to the clock of the next flip-flop. It should be noted that the reset pin of the proposed counter is zero activated, and all the reset terminals of D flip-flops are connected to have only one reset input in the counter. With this logic block diagram, this circuit starts counting from zero and counts up to 15, and the output becomes zero at any point in time when the reset base is activated.
Figure 11 illustrates the structure of a 4-bits counter with a reset base in the QCA technology, which contains 395 cells, an area of 0.30 \({{\mu }{m}}^{2}\), and 7.5 cycles of the clock delay. This proposed structure consists of four D flip-flops with a reset base, which is designed according to the pattern in Fig. 10.
Figure 12 shows the simulation results of the proposed counter with a reset base in the QCA technology. It should be noted that the circuit accurately counts the values, and when the reset base is activated, the circuit performs the reset action at any point of the counting process.
Figure 13 shows the block diagram of the proposed 4-bits counter with the set/reset terminals. In this design, to enable the proposed counter block diagram to count numbers accurately and to enable the circuit to perform the set/reset operation correctly and start counting again whenever requested, the block diagram of the circuit was designed in such a way that the outputs of the flip-flops go to the clock of the next flip-flop, and since the set/reset are high activated, and at any point of time, if the set terminal is activated, the output of the circuit gets the value of '1' and when the reset terminal is activated, the output of the circuit gets the value of '0', and when both the set and reset terminals are activated simultaneously, the reset terminal is preferred.
Figure 14 illustrates the structure of the 4-bits counter with the set/reset terminals in the QCA technology, which contains 447 cells, an area of 0.38 \({{\mu }{m}}^{2}\), and 7.5 cycles of clock delay. This proposed structure consists of four D flip-flops with a set-reset base, which is designed according to the pattern in Fig. 13.
Figure 15 shows the simulation result of the proposed 4-bits counter with the set-reset base in the QCA technology. It should be noted that the circuit counts the values accurately and when the circuit reset is activated, the output would be zero whatever the input value is, and when the circuit set input is activated, the output would be a logical one whatever the input value is.
Table-2 also shows the comparison of the design of the proposed counters with other similar designs. As revealed, a 4-bits counter with reset capability and set-reset abilities have been designed for the first time. This feature has not existed in the previous articles. Besides having the capabilities of reset and set/reset, these proposed structures have more suitable conditions than the previous designs concerning performance as well as the amount of delay, the occupied area, and power consumption. This has been clearly shown in Table-2 as well.
Table-2 Comparison of proposed counters with previous related designs in QCA technology
References
|
Bit
|
Cell count (# Cells)
|
Area (\({{\mu }{m}}^{2}\))
|
Cell/bit
(# Cells)
|
Area/bit
(\({{\mu }{m}}^{2}\))
|
Latency (\({10}^{-12}{s}\))
|
Set
input
|
Reset input
|
Circuit type
|
Latch
type
|
[24]
|
3
|
428
|
0.48
|
143
|
0.16
|
2
|
NO
|
NO
|
Asynchronous
|
J-K
|
[25]
|
3
|
287
|
0.33
|
96
|
0.11
|
2
|
NO
|
NO
|
Asynchronous
|
J-K
|
[6]
|
3
|
174
|
0.20
|
58
|
0.066
|
3
|
NO
|
NO
|
Asynchronous
|
D
|
[7]
|
3
|
140
|
0.16
|
47
|
0.053
|
2
|
NO
|
NO
|
Synchronous
|
T
|
Proposed counter
|
3
|
143
|
0.13
|
48
|
0.043
|
3
|
NO
|
NO
|
Asynchronous
|
D
|
[8]
|
3
|
204
|
0.26
|
68
|
0.086
|
5.25
|
NO
|
NO
|
Asynchronous
|
T
|
Proposed up down counter(Fig. 8)
|
3
|
214
|
0.22
|
71
|
0.073
|
5
|
NO
|
NO
|
Asynchronous
|
D
|
[6]
|
4
|
258
|
0.25
|
65
|
0.062
|
4
|
NO
|
NO
|
Asynchronous
|
D
|
[7]
|
4
|
196
|
0.24
|
49
|
0.060
|
2
|
NO
|
NO
|
Synchronous
|
T
|
Proposed counter (Fig. 5)
|
4
|
207
|
0.22
|
51
|
0.055
|
4
|
NO
|
NO
|
Asynchronous
|
D
|
Proposed counter with Reset(Fig. 11)
|
4
|
395
|
0.30
|
99
|
0.075
|
7.5
|
NO
|
YES
|
Asynchronous
|
D
|
Proposed counter with Set Reset(Fig. 14)
|
4
|
447
|
0.38
|
111
|
0.095
|
7.5
|
YES
|
YES
|
Asynchronous
|
D
|
Also, based on the comparison findings regarding the counter circuit in Table-2, all the design rules, including the observance of the minimum cell, have been fully observed in all the proposed circuits; however, these rules have not been observed in some of the previous designs, and the numbers obtained in the previous papers have been achieved without adhering to the minimum cell design rules.