Question

What might cause an error in the code below? Code: SUBDESIGN dec_counter (             Clear, ent,...

What might cause an error in the code below?

Code:

SUBDESIGN dec_counter

(

            Clear, ent, clk            : INPUT;                  

            value[3..0]      : OUTPUT;  

            rco                   : OUTPUT;  

)

VARIABLE

            count[3..0]     : DFF;                                   

BEGIN

            count[].clk      = clk;                         

            value[]             = count[];                  

            IF (clear) THEN                               

                        count[].d = 0;                                   

            ELSIF (enc & ent & (count[].q != 9)) THEN                                                                                          

            count[].d = count[].q + 1;   

            ELSIF (enc & ent & (count[].q == 9)) THEN                                                                                                                                          

                        count[].d = 0;                                   

            ELSE                                     

                        count[].d = count[].q;          

            END IF;

            rco = ((count[].q == 9) & ent);

END;

a.

The "rco" signal

b.

The "enc" signal

c.

The "clk" signal

d.

The "ent" signal

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
What might cause an error in the code below? Code: SUBDESIGN dec_counter (             Clear, ent,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT