{"id":898,"date":"2015-11-09T09:41:25","date_gmt":"2015-11-09T09:41:25","guid":{"rendered":"http:\/\/coolt.ch\/notizen\/?p=898"},"modified":"2015-11-09T10:18:45","modified_gmt":"2015-11-09T10:18:45","slug":"vhdl-and","status":"publish","type":"post","link":"https:\/\/coolt.ch\/notizen\/vhdl-and\/","title":{"rendered":"VHDL: AND, &#038;, +"},"content":{"rendered":"<p>Was ist der Unterschied dieser Zeichen?<\/p>\n<p><strong>&amp;: vektor zusammensetzen<\/strong><\/p>\n<div class=\"crayon-pre\">\n<div id=\"crayon-5640659223ea7034385405-1\" class=\"crayon-line\">\n<pre class=\"lang:sh decode:true\">s_midi &lt;= s_tone_on <strong>&amp;<\/strong> s_note_value <strong>&amp;<\/strong> s_velocity;<\/pre>\n<p>&#8211; geht nur f\u00fcr std_logic;<br \/>\n.<\/p>\n<\/div>\n<\/div>\n<p><strong>AND: logisch zusammenz\u00e4hlen<\/strong><br \/>\nDas AND folgt der Logik des Gatters AND:<br \/>\nNur zwei &#8218;1&#8216; geben eine &#8218;1&#8216;, alles andere gibt eine &#8218;0&#8216;;<\/p>\n<pre class=\"lang:sh decode:true\">s_result = s_enable <strong>and<\/strong> s_bit_input;<\/pre>\n<p>&#8211; geht nur f\u00fcr std_logic;<br \/>\n&#8211; ist \u00fcblich f\u00fcr Signal-Logik und Takt-Logik<\/p>\n<pre class=\"lang:sh decode:true\">if (strobe_i = '1' <strong>and<\/strong> clk_intern = '0') then\r\n.      \/\/ do<\/pre>\n<p><strong>.<br \/>\n+: normal z\u00e4hlen<\/strong><br \/>\n&#8211; geht nur f\u00fcr <a href=\"http:\/\/coolt.ch\/notizen\/vhdl-normales-dezimales-zaehlen\/\">unsigned, integer, natural<\/a><\/p>\n<pre class=\"lang:sh decode:true\">signal index:  <strong>integer<\/strong> range 0 to 15  := 0;\r\nsignal offset: integer range 0 to 255 := 100;\r\n\r\nindex  &lt;=  <strong>to_integer<\/strong>(s_midi(7 downto 4));\r\nnew_index = index <strong>+<\/strong> 4;\r\n\r\naddr &lt;= index <strong>+<\/strong> offset;<\/pre>\n<p>&#8211; ist bei Z\u00e4hlern \u00fcblich<\/p>\n<pre class=\"lang:sh decode:true\">next_cnt &lt;= cnt + 1;<\/pre>\n<p>..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Was ist der Unterschied dieser Zeichen? &amp;: vektor zusammensetzen s_midi &lt;= s_tone_on &amp; s_note_value &amp; s_velocity; &#8211; geht nur f\u00fcr std_logic; . AND: logisch zusammenz\u00e4hlen Das AND folgt der Logik des Gatters AND: Nur zwei &#8218;1&#8216; geben eine &#8218;1&#8216;, alles andere gibt eine &#8218;0&#8216;; s_result = s_enable and s_bit_input; &#8211; geht nur f\u00fcr std_logic; &#8211; &hellip; <a href=\"https:\/\/coolt.ch\/notizen\/vhdl-and\/\" class=\"more-link\"><span class=\"screen-reader-text\">VHDL: AND, &#038;, +<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[59],"tags":[11],"_links":{"self":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/898"}],"collection":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":4,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"predecessor-version":[{"id":913,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/898\/revisions\/913"}],"wp:attachment":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}