{"id":260,"date":"2015-09-23T09:18:58","date_gmt":"2015-09-23T09:18:58","guid":{"rendered":"http:\/\/coolt.ch\/notizen\/?p=260"},"modified":"2015-11-13T09:42:36","modified_gmt":"2015-11-13T09:42:36","slug":"variable-signale-in-vhdl","status":"publish","type":"post","link":"https:\/\/coolt.ch\/notizen\/variable-signale-in-vhdl\/","title":{"rendered":"Variable <-> Signale in VHDL"},"content":{"rendered":"<p><strong>Variable<br \/>\n&#8211; <\/strong>Leben nur innerhalb eines <a href=\"http:\/\/coolt.ch\/notizen\/?p=290\">Prozesses<\/a>.<br \/>\n&#8211; Ihr Zustand kann nicht gespeichert werden.<br \/>\n&#8211; Sie m\u00fcssen im Prozess, <strong>vor <\/strong>dem <em>begin<\/em> definiert werden<br \/>\n&#8211; <strong>Zuweisung<\/strong> erfolgt <strong>sofort<\/strong> (asynchron)<br \/>\n&#8211; Wird die Variable auch ausserhalb des Prozesses gebraucht, wird sie einem Signal zugewiesen.<\/p>\n<pre class=\"top-set:false bottom-set:false lang:c decode:true\">read_file: process(all)\t\r\n\t\r\nvariable token_note: std_logic_vector(7 downto 0) :=(OTHERS =&gt; '0');\r\nvariable token_velocity: std_logic_vector(7 downto 0) :=(OTHERS =&gt; '0');\r\n\t\r\n<strong>begin\r\n<\/strong>       \/\/ token einlesen (muss variable sein)\r\n      read(line_in, token_type_n, good);\r\n\r\n      \/\/ variable signal \u00fcbergeben\r\n\u00a0\u00a0 \u00a0\u00a0 s_token_type &lt;= token_type;\r\n<\/pre>\n<p><strong><br \/>\nSignale<strong><br \/>\n&#8211; <\/strong><\/strong>Verbinden Bl\u00f6cke miteinander und\/oder werden innerhalb Block gebraucht<br \/>\n&#8211; Sie werden ausserhalb von Prozessen definiert<br \/>\n&#8211; Ihr Wert kann in einem FF gespeichert werden (muss aber nicht)<\/p>\n<pre class=\"top-set:false bottom-set:false lang:c decode:true\">architecture rtl of counter is\r\n\r\nsignal s_token_typ std_logic_vector(7 downto 0) := (others =&gt; '0'); \r\n\r\nbegin \r\n\r\nexecute_file: process (all) \r\nbegin\r\n\r\nend<\/pre>\n<p>..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Variable &#8211; Leben nur innerhalb eines Prozesses. &#8211; Ihr Zustand kann nicht gespeichert werden. &#8211; Sie m\u00fcssen im Prozess, vor dem begin definiert werden &#8211; Zuweisung erfolgt sofort (asynchron) &#8211; Wird die Variable auch ausserhalb des Prozesses gebraucht, wird sie einem Signal zugewiesen. read_file: process(all) variable token_note: std_logic_vector(7 downto 0) :=(OTHERS =&gt; &#8218;0&#8216;); variable token_velocity: &hellip; <a href=\"https:\/\/coolt.ch\/notizen\/variable-signale-in-vhdl\/\" class=\"more-link\"><span class=\"screen-reader-text\">Variable <-> Signale in VHDL<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[59],"tags":[11,46,3],"_links":{"self":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/260"}],"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=260"}],"version-history":[{"count":14,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/260\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}