(a) Draw the state transition diagram described by the VHDL of Figure Q4 The VHDL of Figure Q4 is part of a digital system used to confirm the validity of a personal identification number. cach...


(a)<br>Draw the state transition diagram described by the VHDL of Figure Q4<br>The VHDL of Figure Q4 is part of a digital system used to confirm the<br>validity of a personal identification number. cach keypress rasing the<br>KEYPRESS signal and placing the value of the key pressed on DATA. State the<br>properties of a legal personal identification number.<br>(b)<br>architecture behavior of confinrm is<br>type state is (COUNT, RELAX, REPORT)<br>signal PRESENT STATE: state;<br>sgnal ISUM: UNSIGNED (3 downto 0) 0000<br>variable ICOUNT: UNSIGNED (3 cownto O 00:0:%<br>begin<br>process (CLK, RESET)<br>begin<br>it RESET-0 then<br>PRESENT STATE <= COUNT, CONFIRM <=0<br>eisit (CLK'event and CLK='1n then<br>CONFIRM c0
I KEYPRESS=1then ICOUNT ICOUNT +1: ISUM c ISUM DATA PRESENT STATE e RELAX. elsif VERIFY-1 then PRESsENT STATEc= REPORT: else end if, when RELAX=> if KEYPRESS-1then PRESENT STATE RELAX: PRESENT STATE COUNT PRESENT STATE COUNT else end it when REPORT => if (ISUM-1 and ICOUNT-4) then CONFIRM c1 end if VERIFY=1' then PRESENT STATE REPORT else PRESENT STATE

PRESENT STATE <= count="" confirm="" c="" 0="" end="" case:="" end="" it="" end="" process;="" end="" behavior,="" figure="" q4="" "/="">
Extracted text: (a) Draw the state transition diagram described by the VHDL of Figure Q4 The VHDL of Figure Q4 is part of a digital system used to confirm the validity of a personal identification number. cach keypress rasing the KEYPRESS signal and placing the value of the key pressed on DATA. State the properties of a legal personal identification number. (b) architecture behavior of confinrm is type state is (COUNT, RELAX, REPORT) signal PRESENT STATE: state; sgnal ISUM: UNSIGNED (3 downto 0) 0000 variable ICOUNT: UNSIGNED (3 cownto O 00:0:% begin process (CLK, RESET) begin it RESET-0 then PRESENT STATE <= count,="" confirm=""><=0 eisit="" (clk'event="" and="" clk='1n then CONFIRM c0" case state is when COUNT > I KEYPRESS=1then ICOUNT ICOUNT +1: ISUM c ISUM DATA PRESENT STATE e RELAX. elsif VERIFY-1 then PRESsENT STATEc= REPORT: else end if, when RELAX=> if KEYPRESS-1then PRESENT STATE RELAX: PRESENT STATE COUNT PRESENT STATE COUNT else end it when REPORT => if (ISUM-1 and ICOUNT-4) then CONFIRM c1 end if VERIFY=1' then="" present="" state="" report="" else="" present="">

PRESENT STATE <= count="" confirm="" c="" 0="" end="" case:="" end="" it="" end="" process;="" end="" behavior,="" figure="">



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here