{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

05s_cpe422_midterm_solution

# 05s_cpe422_midterm_solution - The University of Alabama in...

This preview shows pages 1–2. Sign up to view the full content.

The University of Alabama in Huntsville ECE Department CPE/EE 422/522 01 Midterm Exam Solution 1. (10 points) A sequential network consists of a PLA and a D flip-flop, as shown. The propagation delay for the PLA is in the range 5 to 10 ns, and the propagation delay from clock to output of the D flip-flop is 5 to 10 ns. Assuming that X always changes at the same time as the falling edge of the clock, what is the maximum setup and hold time specifications that the flip-flop can have and still maintain proper operation of the network? PLA Clk D Q Z X X Clk 20 40 80 60 100 Q Z For both the setup time and hold time, there are two paths to consider, one from X to the D input of the flip-flop and the other from Q to the D input of the flip-flop. From the timing diagram, tck = 40 ns, tx = 20 ns and ty = 20 ns, where tck is the clock period, tx is the time from a change on X to the active edge of the clock and ty is the time from the active edge of the clock to a change on X. The following equations apply: For Q: (1) t ck t pdmax + t cmax + t su , (2) t h t pdmin + t cmin For X: (3) t x t su + t cmax , (4) t h t y + t cmin where t pd is the propagation delay through the flip-flop and t c is the propagation delay through the combinational circuit (PLA) So, for setup, So, for hold, (1) 40 ns 10 ns + 10 ns + t su , t su 20 ns (2) t h 5 ns + 5 ns, t h 10 ns (3) 20 ns t su + 10 ns , t su 10 ns (4) t h 20 ns + 5 ns, t h 25 ns For both the setup and the hold times to be always satisfied, we must take the smaller numbers so t su = t h = 10 ns 2. (10 points) Write a short VHDL description of a 4-to-1 multiplexer using a VHDL process.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://www.coursehero.com/file/6338454/05s-cpe422-midterm-solution/", "fetch_time": 1524522335000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-17/segments/1524125946199.72/warc/CC-MAIN-20180423203935-20180423223935-00540.warc.gz", "warc_record_offset": 759101308, "warc_record_length": 422613, "token_count": 596, "char_count": 2060, "score": 3.8125, "int_score": 4, "crawl": "CC-MAIN-2018-17", "snapshot_type": "latest", "language": "en", "language_score": 0.8372530341148376, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00009-of-00064.parquet"}