Digital Electronics - Describing Logic Circuits - Discussion

Discussion Forum : Describing Logic Circuits - General Questions (Q.No. 8)
8.
In VHDL, the mode of a port does not define:
an input.
an output.
both an input and an output.
the TYPE of the bit.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Priya said:   7 years ago
Please explain the syntax for vhdl.

Muskaan said:   1 decade ago
In VHDL, the Port Mode gives the direction of the signal and also
specifies the direction of signal transfer. There are 4 modes :-
1) In
2) Out
3) InOut
4) Buffer
It is defined by :-
PORT(a,b,cin: IN BIT; sum: OUT BIT; cout: OUT BIT);

But for defining TYPE of bit (i.e. 1 or 0) we use :-
TYPE BIT is ('0','1')

Suriya said:   1 decade ago
Someone can please explain me syntax of hdl, vhdl and verilog.

Post your comments here:

Your comments will be displayed after verification.