Posts

Showing posts with the label bit

verilog code for 4 bit ripple carry adder using full adder

verilog code for 4 bit ripple carry adder using full adder 4 - BIT RIPPLE CARRY ADDER USING FULL ADDER module rip2 ( s , cout , a , b , cin ) ; input [ 3 : 0 ] a ; input [ 3 : 0 ] b ; input cin ; output cout ; output [ 3 : 0 ] s ; wire c2 , c3 , c4 , cout ; fa m1 ( s [0] , c2 , a [0] , b [0] , cin ) ; fa m2 ( s [1] , c3 , a [1] , b [1] , c2 ) ; fa m3 ( s [2] , c4 , a [2] , b [2] , c3 ) ; fa m4 ( s [3] , cout , a [3] , b [3] , c4 ) ; endmodule TESTBENCH module fa ( s , cout , a , b , cin ) ; input a , b , cin ; output s , cout ; wire w1 , w2 , w3 ; ha m1 ( w1 , w2 , a , b ) ; ha m2 ( s , w3 , w1 , cin ) ; or m3 ( cout , w2 , w3 ) ; endmodule module ha ( s , cout , a , b ) ; //sub module for Half adder input a , b ; output s , cout ; xor m1 ( s , a , b ) ; and m2 ( cout , a , b ) ; endmodule module rip2_tb ; reg [ 3 : 0 ] a ; reg [ 3 : 0 ] b ; reg cin ; wire cout ; wire [ 3 : 0 ] s ; rip2 m1 ( s , cout , a , b , cin ) ; initial begin a = 4b0000 ; b = 4b00...

verilog code for n bit gray to binary converter

verilog code for n bit gray to binary converter N - BIT GRAY TO BINARY CONVERTER module binary2gray # ( parameter n = 4 ) ( input [ n - 1 : 0 ] g , output [ n - 1 : 0 ] b ) ; assign b = { g [n] , b [ n : 1 ] ^ g [ n - 1 : 0 ] } ; endmodule TESTBENCH module binary2gray_tb ; parameter n = 4 ; reg [ n - 1 : 0 ] g ; wire [ n - 1 : 0 ] b ; binary2gray b2g ( . b ( b ) , . g ( g ) ) ; initial begin # 1 g = 4b1111 ; $monitor($time , , "gra" , "y" , "%b" , g , , "bin" , "ary" , "%b" , b) ; end always # 1 g = g + 1 ; initial # 10 $stop ; endmodule You can also check more verilog code on http://kaneriadhaval.blogspot.in/2013/11/all-besic-verilog-code.html download  file  now

VARIABLE BIT RATE VBR IMPLEMENTATION IN NS2

VARIABLE BIT RATE VBR IMPLEMENTATION IN NS2 We just made a VBR application that randomly change rate or bursts depending on parameters set. In order to use it in ns you have to follow: Include vbr_traffic.o in Makefile.in   Preferrably set the default values in /home/user/Desktop/ns-allinone-2.35/ns-2.35/tcl/lib  Run ./configure in your ns-allinone-2.35 directory  Run make depend in ns-allinone-2.35 Run make Now your VBR is ready. Default values in ns-default.tcl: Application/Traffic/VBR set rate_ 448Kb ;# corresponds to interval of 3.75ms  Application/Traffic/VBR set rate_dev_ 0.25;  Application/Traffic/VBR set rate_time_ 2.0;  Application/Traffic/VBR set burst_time_ 1.0;  Application/Traffic/VBR set n_o_changes_ 10;  Application/Traffic/VBR set time_dev_ 0.5;  Application/Traffic/VBR set constant_ false;  Application/Traffic/VBR set maxrate_ 648Kb;  Application/Traffic/VBR set packetSize_ 210;  Application/Traffic/VBR set m...

verilod code for n bit binary to gray converter

verilod code for n bit binary to gray converter - BIT BINARY TO GRAY CONVERTER module binary2gray # ( parameter n = 4 ) ( input [ n - 1 : 0 ] b , output [ n - 1 : 0 ] g ) ; assign g = { b [n] , b [ n : 1 ] ^ b [ n - 1 : 0 ] } ; endmodule TESTBENCH module binary2gray_tb ; parameter n = 4 ; reg [ n - 1 : 0 ] b ; wire [ n - 1 : 0 ] g ; binary2gray b2g ( b , g ) ; initial begin # 1 b = 4b1111 ; $monitor($time , , "bin" , "ary = " , "%b" , b , , "gra" , "y = " , "%b" , g) ; end always # 1 b = b + 1 ; initial # 10 $stop ; endmodule You can also check more verilog code on http://kaneriadhaval.blogspot.in/2013/11/all-besic-verilog-code.html download  file  now

VCF Viewer Free Download Offline Installer for Windows 32 64 Bit

Image
VCF Viewer Free Download Offline Installer for Windows 32 64 Bit Free Download VCF Viewer Offline Installer for Windows 32 and 64 Bit - Simple as well as mobile part from program that permits you to check a user-defined folder and check out the information embedded in VCF Viewer, VCF Visitor is a small application made in order to help you watch the details off several vCard data. These reports are frequently utilized to transmit call details in between plans such as email customers. Straightforward and compact bit of programming that permits you to examine a client characterized organizer and look at the data implanted in VCF documents VCF Viewer is a smaller application intended to help you see the data from numerous vCard records. These documents are regularly used to exchange contact data between projects, for example, email customers.  Features of VCF Viewer for Windows : Its motivation  The program expects to help the clients which have a considerable measure of re...