Using Figure 3-51 as a guide and a binary decision on S from Figure 3-34, write a


Using Figure 3-51 as a guide and a “binary decision” on S from Figure 3-34, write a high-level behavior Verilog description for the adder–subtractor in Figure 3-46 (see Figure 3-45 for details). Compile and simulate your description. Assuming a ripple carry implementation, apply input combinations to your design that will (1) cause all 16 possible input combinations to be applied to the full adder–subtractor stage for bit 2, and (2) simultaneously cause the carry output of bit 2 to appear at one of your design’s outputs. Also, apply combinations that check the carry chain connections between all full adders by demonstrating that a 0 and a 1 can be propagated from C0 to C4.

Figure 3-51

// 4-bit Adder: Behavioral Verilog Description module adder_4_b_v (A, B, CO, S, C4); input [3:0] A, B; input

Figure 3-34

A B E F Ja G

Figure 3-36

C  C Co-1 n-bit Adder/Subtractor

Figure 3-45

B3 A3 FA S3 C3 B A FA S C B  FA S C  Ao FA So Co S

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Logic And Computer Design Fundamentals

ISBN: 9780133760637

5th Edition

Authors: M. Morris Mano, Charles Kime, Tom Martin

Question Posted: