DFG Exercise

From Center for Integrated Circuits and Devices Research (CIDR)
Revision as of 14:07, 19 March 2024 by Anastacia Alvarez (talk | contribs) (Created page with "Given the following code snippet: d = a*c t = a+b s = d*t If t = 1 then { d = a-b s = a+b } Else d = a+d 1. Determine the single assignment form of the code 2. Draw the corresponding data flow graph 4. Determine the datapath assuming you have 1 multiplier, 1 adder and 1 subtractor 5. Derive the corresponding control")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Given the following code snippet:

  d = a*c
  t = a+b
  s = d*t
  If t = 1 then
  { d = a-b
    s = a+b }
  Else d = a+d


1. Determine the single assignment form of the code 2. Draw the corresponding data flow graph 4. Determine the datapath assuming you have 1 multiplier, 1 adder and 1 subtractor 5. Derive the corresponding control