Files
APS/.pic/Basic Verilog structures/assignments/fig_03.drawio.svg

4 lines
29 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file with editors other than draw.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: light-dark(#ffffff, #121212); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="632px" height="285px" viewBox="0 0 632 285" content="&lt;mxfile scale=&quot;1&quot; border=&quot;0&quot; host=&quot;Electron&quot; agent=&quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/29.3.0 Chrome/140.0.7339.249 Electron/38.7.2 Safari/537.36&quot; version=&quot;29.3.0&quot;&gt;&#10; &lt;diagram name=&quot;Page-1&quot; id=&quot;EFVNSrtWwNmHJjsIZ87X&quot;&gt;&#10; &lt;mxGraphModel dx=&quot;1554&quot; dy=&quot;922&quot; grid=&quot;1&quot; gridSize=&quot;1&quot; guides=&quot;1&quot; tooltips=&quot;1&quot; connect=&quot;1&quot; arrows=&quot;1&quot; fold=&quot;1&quot; page=&quot;1&quot; pageScale=&quot;1&quot; pageWidth=&quot;827&quot; pageHeight=&quot;1169&quot; background=&quot;#ffffff&quot; math=&quot;0&quot; shadow=&quot;0&quot;&gt;&#10; &lt;root&gt;&#10; &lt;mxCell id=&quot;0&quot; /&gt;&#10; &lt;mxCell id=&quot;1&quot; parent=&quot;0&quot; /&gt;&#10; &lt;mxCell id=&quot;2&quot; parent=&quot;1&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; value=&quot;&amp;lt;div style=&amp;quot;background-color: rgb(255, 255, 255); font-family: &amp;amp;quot;Fira Code Light&amp;amp;quot;, Consolas, &amp;amp;quot;Courier New&amp;amp;quot;, monospace, Consolas, &amp;amp;quot;Courier New&amp;amp;quot;, monospace; font-size: 14px; line-height: 216%;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 216%;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 19px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 19px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#af00db&amp;quot;&amp;gt;module &amp;lt;/font&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(38, 127, 153);&amp;quot;&amp;gt;blocking_assignment&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;(&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(38, 127, 153);&amp;quot;&amp;gt;input&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 255);&amp;quot;&amp;gt;logic&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt; a, b&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(38, 127, 153);&amp;quot;&amp;gt;output&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 255);&amp;quot;&amp;gt;logic&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt; c, d&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;);&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;line-height: 19px;&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;font color=&amp;quot;#009900&amp;quot;&amp;gt;// blocking assignment&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#af00db&amp;quot;&amp;gt;always_ff &amp;lt;/font&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(175, 0, 219);&amp;quot;&amp;gt;@(posedge clk) begin&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(175, 0, 219);&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;b = a;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; c = b;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;font color=&amp;quot;#009900&amp;quot;&amp;gt;// updated value of b&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; d = c;&amp;lt;/span&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;font style=&amp;quot;border-color: var(--border-color);&amp;quot; color=&amp;quot;#009900&amp;quot;&amp;gt;// updated value of с&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(175, 0, 219);&amp;quot;&amp;gt;end&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#af00db&amp;quot;&amp;gt;endmodule&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot; vertex=&quot;1&quot;&gt;&#10; &lt;mxGeometry height=&quot;284&quot; width=&quot;278&quot; x=&quot;386&quot; y=&quot;264&quot; as=&quot;geometry&quot; /&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;3&quot; parent=&quot;1&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; value=&quot;&amp;lt;div style=&amp;quot;background-color: rgb(255, 255, 255); font-family: &amp;amp;quot;Fira Code Light&amp;amp;quot;, Consolas, &amp;amp;quot;Courier New&amp;amp;quot;, monospace, Consolas, &amp;amp;quot;Courier New&amp;amp;quot;, monospace; font-size: 14px; line-height: 216%;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 216%;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 19px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 19px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#af00db&amp;quot;&amp;gt;module&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;#267f99&amp;quot;&amp;gt; non&amp;lt;/font&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(38, 127, 153);&amp;quot;&amp;gt;bloc&amp;lt;/span&amp;gt;&amp;lt;font color=&amp;quot;#267f99&amp;quot;&amp;gt;king_a&amp;lt;/font&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(38, 127, 153);&amp;quot;&amp;gt;ssignment&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;(&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(38, 127, 153);&amp;quot;&amp;gt;input&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 255);&amp;quot;&amp;gt;logic&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt; a, b&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(38, 127, 153);&amp;quot;&amp;gt;output&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 255);&amp;quot;&amp;gt;logic&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt; c, d&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;);&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;line-height: 19px;&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;font color=&amp;quot;#009900&amp;quot;&amp;gt;// non-blocking assignment&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#af00db&amp;quot;&amp;gt;always_ff &amp;lt;/font&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(175, 0, 219);&amp;quot;&amp;gt;@(posedge clk) begin&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(175, 0, 219);&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;b &amp;amp;lt;= a;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; c &amp;amp;lt;= b;&amp;amp;nbsp; &amp;lt;/span&amp;gt;&amp;lt;font color=&amp;quot;#009900&amp;quot;&amp;gt;// old value of b&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;amp;nbsp; d &amp;amp;lt;= c;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;font color=&amp;quot;#009900&amp;quot;&amp;gt;// old value of c&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#af00db&amp;quot;&amp;gt;end&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;color: rgb(59, 59, 59);&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0);&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;#af00db&amp;quot;&amp;gt;endmodule&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot; vertex=&quot;1&quot;&gt;&#10; &lt;mxGeometry height=&quot;284&quot; width=&quot;308&quot; x=&quot;710&quot; y=&quot;264&quot; as=&quot;geometry&quot; /&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;4&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endFill=1;strokeWidth=1;strokeColor=default;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;386&quot; y=&quot;422&quot; /&gt;&#10; &lt;mxPoint x=&quot;409&quot; y=&quot;427&quot; /&gt;&#10; &lt;mxPoint x=&quot;479&quot; y=&quot;430&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;402&quot; y=&quot;410&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;450&quot; y=&quot;445&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;5&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;427&quot; y=&quot;398&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;436&quot; y=&quot;403&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;412&quot; y=&quot;403&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;6&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;425&quot; y=&quot;456&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;435&quot; y=&quot;451&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;411&quot; y=&quot;451&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;7&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endFill=1;strokeWidth=1;strokeColor=default;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;385&quot; y=&quot;460&quot; /&gt;&#10; &lt;mxPoint x=&quot;408&quot; y=&quot;465&quot; /&gt;&#10; &lt;mxPoint x=&quot;478&quot; y=&quot;469&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;401&quot; y=&quot;448&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;450&quot; y=&quot;482&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;8&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;426&quot; y=&quot;493&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;436&quot; y=&quot;488&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;412&quot; y=&quot;488&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;9&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;755&quot; y=&quot;393&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;767&quot; y=&quot;403&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;736&quot; y=&quot;403&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;10&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;754&quot; y=&quot;430&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;766&quot; y=&quot;440&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;735&quot; y=&quot;440&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;11&quot; edge=&quot;1&quot; parent=&quot;1&quot; style=&quot;curved=1;endArrow=classic;html=1;rounded=0;endSize=3;&quot; value=&quot;&quot;&gt;&#10; &lt;mxGeometry height=&quot;50&quot; relative=&quot;1&quot; width=&quot;50&quot; as=&quot;geometry&quot;&gt;&#10; &lt;Array as=&quot;points&quot;&gt;&#10; &lt;mxPoint x=&quot;755&quot; y=&quot;469&quot; /&gt;&#10; &lt;/Array&gt;&#10; &lt;mxPoint x=&quot;767&quot; y=&quot;479&quot; as=&quot;sourcePoint&quot; /&gt;&#10; &lt;mxPoint x=&quot;736&quot; y=&quot;479&quot; as=&quot;targetPoint&quot; /&gt;&#10; &lt;/mxGeometry&gt;&#10; &lt;/mxCell&gt;&#10; &lt;/root&gt;&#10; &lt;/mxGraphModel&gt;&#10; &lt;/diagram&gt;&#10;&lt;/mxfile&gt;&#10;"><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0" style="fill: light-dark(rgb(255, 255, 255), rgb(18, 18, 18));"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="0" y="0" width="278" height="284" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 276px; height: 1px; padding-top: 142px; margin-left: 2px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "><div style="background-color: rgb(255, 255, 255); font-family: &quot;Fira Code Light&quot;, Consolas, &quot;Courier New&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 216%;"><div style="line-height: 216%;"><div style="line-height: 19px;"><div style="line-height: 19px;"><div style=""><font color="#af00db" style="color: rgb(175, 0, 219);">module </font><span style="color: rgb(38, 127, 153);">blocking_assignment</span><span style="color: rgb(0, 0, 0);">(</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(38, 127, 153);">input</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">logic</span><span style="color: rgb(0, 0, 0);"> a, b</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(38, 127, 153);">output</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">logic</span><span style="color: rgb(0, 0, 0);"> c, d</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);">);</span></div><div style="line-height: 19px;"><br /></div><font color="#009900" style="color: rgb(0, 153, 0);">// blocking assignment<br /></font><div style=""><font color="#af00db" style="color: rgb(175, 0, 219);">always_ff </font><span style="color: rgb(175, 0, 219);">@(posedge clk) begin</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(175, 0, 219);">  </span><span style="color: rgb(0, 0, 0);">b = a;</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);"><br /></span></div><div style=""><span style="color: rgb(0, 0, 0);">  c = b;  </span><font color="#009900" style="color: rgb(0, 153, 0);">// updated value of b</font></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);"><br /></span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);">  d = c;</span>  <font style="border-color: var(--border-color); color: rgb(0, 153, 0);" color="#009900">// updated value of с</font></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(175, 0, 219);">end</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);"><br /></span></div><div style=""><font color="#af00db" style="color: rgb(175, 0, 219);">endmodule</font></div></div></div></div></div></div></div></div></foreignObject><text x="2" y="146" fill="light-dark(#000000, #ffffff)" font-family="Helvetica" font-size="12px">module blocking_assignment(...</text></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="324" y="0" width="308" height="284" fill="none" stroke="none" pointer-events="all"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 306px; height: 1px; padding-top: 142px; margin-left: 326px;"><div style="box-sizing: border-box; font-size: 0; text-align: left; color: #000000; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: light-dark(#000000, #ffffff); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "><div style="background-color: rgb(255, 255, 255); font-family: &quot;Fira Code Light&quot;, Consolas, &quot;Courier New&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 216%;"><div style="line-height: 216%;"><div style="line-height: 19px;"><div style="line-height: 19px;"><div style=""><font color="#af00db" style="color: rgb(175, 0, 219);">module</font><font color="#267f99" style="color: rgb(38, 127, 153);"> non</font><span style="color: rgb(38, 127, 153);">bloc</span><font color="#267f99" style="color: rgb(38, 127, 153);">king_a</font><span style="color: rgb(38, 127, 153);">ssignment</span><span style="color: rgb(0, 0, 0);">(</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(38, 127, 153);">input</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">logic</span><span style="color: rgb(0, 0, 0);"> a, b</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(38, 127, 153);">output</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">logic</span><span style="color: rgb(0, 0, 0);"> c, d</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);">);</span></div><div style="line-height: 19px;"><br /></div><font color="#009900" style="color: rgb(0, 153, 0);">// non-blocking assignment<br /></font><div style=""><font color="#af00db" style="color: rgb(175, 0, 219);">always_ff </font><span style="color: rgb(175, 0, 219);">@(posedge clk) begin</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(175, 0, 219);">  </span><span style="color: rgb(0, 0, 0);">b &lt;= a;</span></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);"><br /></span></div><div style=""><span style="color: rgb(0, 0, 0);">  c &lt;= b;  </span><font color="#009900" style="color: rgb(0, 153, 0);">// old value of b</font></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);"><br /></span></div><div style=""><span style="color: rgb(0, 0, 0);">  d &lt;= c;  </span><font color="#009900" style="color: rgb(0, 153, 0);">// old value of c</font></div><div style=""><font color="#af00db" style="color: rgb(175, 0, 219);">end</font></div><div style="color: rgb(59, 59, 59);"><span style="color: rgb(0, 0, 0);"><br /></span></div><div style=""><font color="#af00db" style="color: rgb(175, 0, 219);">endmodule</font></div></div></div></div></div></div></div></div></foreignObject><text x="326" y="146" fill="light-dark(#000000, #ffffff)" font-family="Helvetica" font-size="12px">module nonblocking_assignment(...</text></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><path d="M 16 146 Q 0 158 11.5 160.5 Q 23 163 58 164.5 Q 93 166 67.66 179.11" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 64.99 180.49 L 67.63 176.87 L 67.66 179.11 L 69.46 180.43 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><path d="M 50 139 Q 41 134 29.91 137.7" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 27.06 138.65 L 30.22 135.48 L 29.91 137.7 L 31.49 139.28 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><path d="M 49 187 Q 39 192 28.88 188.39" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 26.05 187.38 L 30.49 186.84 L 28.88 188.39 L 29.15 190.6 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><path d="M 15 184 Q -1 196 10.5 198.5 Q 22 201 57 203 Q 92 205 67.74 216.27" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 65.01 217.53 L 67.8 214.03 L 67.74 216.27 L 69.48 217.66 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><path d="M 50 224 Q 40 229 29.88 225.39" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 27.05 224.38 L 31.49 223.84 L 29.88 225.39 L 30.15 227.6 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><path d="M 381 139 Q 369 129 353.64 137.08" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 350.99 138.48 L 353.6 134.85 L 353.64 137.08 L 355.46 138.39 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><path d="M 380 176 Q 368 166 352.64 174.08" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 349.99 175.48 L 352.6 171.85 L 352.64 174.08 L 354.46 175.39 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><path d="M 381 215 Q 369 205 353.64 213.08" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/><path d="M 350.99 214.48 L 353.6 210.85 L 353.64 213.08 L 355.46 214.39 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(0, 0, 0), rgb(255, 255, 255)); stroke: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"/></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>