Anonymous
Not applicable
10-21-2020
08:15 AM
783 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am designing 4-bit comparator using 2-bit comparator and made a circuit .
After running RTL stimulation Error occurs.
I don't know why this error occurs as most of the output is correct but few are wrong.
I attached the screenshot of 2-bit comparator code and the circuit diagram of 4-bit if you find something wrong then please guide me regarding that issue.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have a typo in your equals logic for the 2-bit comparator. The first term is using ~A1 when it should be ~B1.
Anonymous
Not applicable
10-21-2020
12:02 PM
764 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure how to rephrase it any clearer. Your Equal logic assignment should be:
assign Equal = (~A1)&(~A0)&(~B1)&(~B0)....etc.
Anonymous
Not applicable
10-21-2020
07:31 PM
732 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I made correction in code as you said and now more output are correct but 2-3 are wrong still.
Please Guide me.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page