My Report

VHDL Mock Test 10


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 10%

Question 1 of 10

1. Time taken by the shift register to transfer the content is called _______

Question 1 of 10

Question 2 of 10

2. How many types of shift operators are there in VHDL?

Question 2 of 10

Question 3 of 10

3. Which register is used in the following code?

library ieee;
use ieee.std_logic_1164.all;
entity shift_siso is
port (Clock, Sin : in std_logic;
Sout : out std_logic);
end shift_siso;
architecture behav of shift_siso is
signal temp: std_logic_vector(7 downto 0);
begin
process (Clock)
begin
if (Clock'event and Clock='1') then
for i in 0 to 6 loop
temp(i+1) <= temp(i);
end loop;
temp(0) <= Sin;
end if ;
end process;
Sout <= temp(7);
end behav;

Question 3 of 10

Question 4 of 10

4. Shift registers comprise of which flip-flops?

Question 4 of 10

Question 5 of 10

5. A 4 to 16 decoder can be used as a code converter. What will be the inputs and outputs of the converter respectively?

Question 5 of 10

Question 6 of 10

6. What will be the value of count output, if the data din is 11001111?

ENTITY my_logic IS
PORT (din : STD_LOGIC_VECTOR(7 DOWNTO 0);
             Count : STD_LOGIC_VECTOR(3 DOWNTO 0));
END my_logic;
ARCHITECTURE behavior OF my_logic IS
BEGIN
Count <= “0000”
PROCESS(din)
BEGIN
L1: FOR i IN 0 TO 7 LOOP
IF(din(i) = ‘1’) THEN
Count = count+1;
ELSE
NEXT L1;
END LOOP;
END PROCESS;
END behavior;

Question 6 of 10

Question 7 of 10

7. State transition happens _______ in every clock cycle.

Question 7 of 10

Question 8 of 10

8. In the FSM diagram, what does arrow between the circles represent?

Question 8 of 10

Question 9 of 10

9. Which of the following react faster to inputs?

Question 9 of 10

Question 10 of 10

10. What is the first step in writing the VHDL for an FSM?

Question 10 of 10


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.