Source Codes

Verilog HDL Program for R-S Flip Flops

A flip-flop or latch is a circuit that has two stable states and can be used to store state information. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic. Flip-flops and […]


Verilog HDL Program for BCD Adder using Parallel Adder

VHDL Program for BCD Adder using Parallel Adder. 1 2 3 4 5 6 7 8 9 10 11 12 13 module bcdas(s,c,a,b); output [3:0]s; output c; input [3:0]a,b; wire [3:0]x; wire z,y,co,c1,k; parad4 u1(x,c1,a,b); and1 u2(y,x[3],x[2]); and1 u3(z,x[1],x[3]); or1 u4(k,z,y); or1 u5(c,k,c1); parad4 u6(s,co,x,{1’b0,c,c,1’b0}); endmodule


Verilog HDL Program for 2X1 Multiplexer

a multiplexer (or MUX) is a device that selects one of several analog or digital input signals and forwards the selected input into a single line. A multiplexer of 2n inputs has n select lines, which are used to select which input line to send to the output. Multiplexers are mainly used to increase the […]


C program to implement linked list

Below given C program implements linked list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 […]


C program to implement Circular Queue operations

Below C program implements various Circular Queue operations 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 […]


C program to implement queue operations

Below is the C program to implement various queue operations, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 […]


C program to implement stack operations using array

Below is the C program to implement stack operations using array 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 […]


C Program which performs stack operations

Following program performs various stack operations, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 […]