S Nagaraj,M.Tech,MBA,(Ph.D)
Thursday, June 8, 2017
VERILOG PROGRAM FOR 2 BIT COMPARATOR
2BIT_COPARATOR
module comparator_2bit(a,b,equal,greater,lower);
output equal,greater,lower;
input [1:0]a,b;
assign equal=(a==b)?1:0;
assign greater=(a>b)?1:0;
assign lower=(a<b)?1:0;
endmodule
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment