Half Subtractor Design using Logical Expression (Data Flow Modeling Style)-
Program-
//-----------------------------------------------------------------------------
//
// Title : half_subtractor
// Design : verilog upload
// Author : Naresh Singh Dobal
// Company : nsd
//
//-----------------------------------------------------------------------------
//
// File : Half Subtractor using Logical Gates.v
module half_subtractor ( a ,b ,diff ,borrow );
output diff ;
output borrow ;
input a ;
input b ;
assign diff = a ^ b;
assign borrow = (~a) & b;
endmodule
Output WaveForm : Half Subtractor |
Program-
//-----------------------------------------------------------------------------
//
// Title : half_subtractor
// Design : verilog upload
// Author : Naresh Singh Dobal
// Company : nsd
//
//-----------------------------------------------------------------------------
//
// File : Half Subtractor using Logical Gates.v
module half_subtractor ( a ,b ,diff ,borrow );
output diff ;
output borrow ;
input a ;
input b ;
assign diff = a ^ b;
assign borrow = (~a) & b;
endmodule
4 comments :
fuck you bitch
fuck you bitch
Design a circuit that takes the input of four 4-bit vectors, A[3:0], B[3:0], C[3:0],
D[3:0] given as unsigned integers. The circuit selects the minimum, or the smallest
amongst them, and outputs the vector. Design the circuit efficiently, using a
minimum number of unsigned comparators and MUXes. Draw the block diagram
of the designed circuit with the assumption that you have ready to use
comparators and MUXes.
suck my cock bitch
Post a Comment