Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

// Write an equals module such that: // A, B are 1-wire inputs. // Equal, AisLarger, and BisLarger are outputs. // Equal = (A ==

// Write an equals module such that:
// A, B are 1-wire inputs.
// Equal, AisLarger, and BisLarger are outputs.
// Equal = (A == B)
// AisLarger = (A > B)
// BisLarger = (B > A)
// Module heading, you specify the input and outputs in the parameter list
module equals (A, B, Equal, AisLarger, BisLarger);
input A, B; // You must label which parameters are inputs
output Equal, AisLarger, BisLarger;// You must label which paramters are outputs
// You can create internal wires ("one use variables") for later use
wire notA, notB; // You will *probably* need more.
// Now implement your gates, sytax:
// # ();
not #1 g1(notA, A);
not #1 g2(notB, B);
endmodule
//Notes:
// The gate name is optional, but will help with later debuggin, please use a name.
// The gate delay is also optional, but will be mandatory in future assignments.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

Compose the fi rst draft of your message.

Answered: 1 week ago

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago