Esandeep
Newbie level 4
- Joined
- Feb 4, 2014
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 41
can any give send me the verilog code for 64 bit binary comparator....i am doing project...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
reg [63:0] r64bits;
assign a = h"0000000000000000"=r64bits ? 1'b1 : 1'b0; // comparator versus value 0x00;
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 reg [63:0] a, b; wire AgtB, AltB, AeqB; // then the following does the comparison for A > B assign AgtB = a > b ? 1'b1 : 1'b0; // this compares A < B assign AltB = a < b ? 1'b1 : 1'b0; // this compares A = B assign AeqB = a == b ? 1'b1 : 1'b0;