{"id":331,"date":"2018-01-05T08:14:11","date_gmt":"2018-01-04T23:14:11","guid":{"rendered":"http:\/\/tamatoyaku.com\/b\/?p=331"},"modified":"2018-01-05T08:14:11","modified_gmt":"2018-01-04T23:14:11","slug":"331","status":"publish","type":"post","link":"https:\/\/p-0.me\/b\/p\/331\/","title":{"rendered":"SystemVerilog\u306e+\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>SystemVerilog\u3067\u306f(\u8907\u6570)\u30d3\u30c3\u30c8\u306e\u52a0\u7b97\u3092+\u6f14\u7b97\u5b50\u306b\u3088\u3063\u3066\u884c\u3046\u4e8b\u304c\u3067\u304d\u308b\uff0e<br \/>\n\u3057\u304b\u3057\uff0c\u3053\u306e+\u6f14\u7b97\u5b50\u304c\u6700\u7d42\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u30b2\u30fc\u30c8\u8868\u73fe\u3068\u306a\u308b\u306e\u304b\uff0c\u78ba\u8a8d\u3057\u305f\u3053\u3068\u304c\u306a\u304b\u3063\u305f\u305f\u3081\uff0c\u4eca\u56de\u306f\u305d\u306e\u78ba\u8a8d\u3092\u884c\u3046\uff0e<br \/>\n\u307e\u305f\uff0c\u52a0\u7b97\u5668\u306f\u5168\u52a0\u7b97\u5668(\u534a\u52a0\u7b97\u5668)\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u3088\u3063\u3066\uff0c+\u6f14\u7b97\u5b50\u3068\u81ea\u4f5c\u306e\u52a0\u7b97\u5668\u306e\u6027\u80fd\u6bd4\u8f03\u3082\u884c\u3046\uff0e<br \/>\n<!--more--><br \/>\n&nbsp;<\/p>\n<h3>\u52a0\u7b97\u5668\u306e\u81ea\u4f5c<\/h3>\n<p>\u52a0\u7b97\u5668\u306f\u5168\u52a0\u7b97\u5668\u304b\u3089\u6210\u308a\uff0c\u5168\u52a0\u7b97\u5668\u306f\u534a\u52a0\u7b97\u56682\u3064\u3068OR\u30b2\u30fc\u30c8\u304b\u3089\u6210\u308b\uff0e<br \/>\n\u305d\u306e\u305f\u3081\uff0c\u6700\u521d\u306b\u534a\u52a0\u7b97\u5668\u3092\u4f5c\u6210\u3059\u308b\uff0e\u4eca\u56de\u306fSystemVerilog\u3067\u4f5c\u6210\u3057\u305f\uff0e<br \/>\n&nbsp;<\/p>\n<pre class=\"lang:default decode:true \" title=\"HA.sv\">module HA(input logic a,\n\t\t\tinput logic b,\n\t\t\toutput logic s,\n\t\t\toutput logic cout);\n\tassign s=a^b;\n\tassign cout=a&amp;b;\nendmodule\n<\/pre>\n<p>&nbsp;<br \/>\n\u534a\u52a0\u7b97\u56682\u3064\u3068OR\u30b2\u30fc\u30c8\u306b\u3088\u308a\uff0c\u5168\u52a0\u7b97\u5668\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n&nbsp;<\/p>\n<pre class=\"lang:default decode:true \" title=\"FA.sv\">module FA(input logic a,\n\t\t\tinput logic b,\n\t\t\tinput logic cin,\n\t\t\toutput logic s,\n\t\t\toutput logic cout);\n\tlogic s1_a2,c1,c2;\n\tHA hf1(a,b,s1_a2,c1);\n\tHA hf2(s1_a2,cin,s,c2);\n\tassign cout=c1|c2;\nendmodule\n<\/pre>\n<p>&nbsp;<br \/>\n\u305d\u3057\u3066\uff0c\u5168\u52a0\u7b97\u5668\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u8907\u6570\u30d3\u30c3\u30c8\u306e\u52a0\u7b97\u5668\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n&nbsp;<\/p>\n<pre class=\"lang:default decode:true\" title=\"ADDER1.sv\">module ADDER1\n\t#(parameter length = 128)\n\t(input logic [length-1:0] a,\n\tinput logic [length-1:0] b,\n\toutput logic [length:0] out);\n\tlogic [length-1:0] FA_sout;\n\tlogic [length-1:0] FA_cout;\n\tgenvar i;\n\tgenerate\n\t\tfor(i = 0; i &lt; length; i = i + 1) begin: genAddder\n\t\t\tFA fa(a[i],b[i],i==0?1'b0:FA_cout[i-1],FA_sout[i],FA_cout[i]);\n\t\t\tassign out[i]=FA_sout[i];\n\t\tend\n\t\tassign out[length]=FA_cout[length-1];\n\tendgenerate\nendmodule\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>+\u6f14\u7b97\u5b50\u306b\u3088\u308b\u52a0\u7b97\u5668\u4f5c\u6210<\/h3>\n<p>\u52a0\u7b97\u5668\u306e\u81ea\u4f5c\u304c\u7d42\u308f\u3063\u305f\u305f\u3081\uff0c\u6b21\u306b+\u6f14\u7b97\u5b50\u3092\u7528\u3044\u305f\u52a0\u7b97\u5668\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n&nbsp;<\/p>\n<pre class=\"lang:default decode:true \" title=\"ADDER2.sv\">module ADDER2\n\t#(parameter length = 128)\n\t(input logic [length-1:0] a,\n\tinput logic [length-1:0] b,\n\toutput logic [length:0] out);\n\tassign out=a+b;\nendmodule\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u6bd4\u8f03\u7528\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f5c\u6210<\/h3>\n<p>\u4f5c\u6210\u3057\u305f2\u3064\u306e\u52a0\u7b97\u5668\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n&nbsp;<\/p>\n<pre class=\"lang:default decode:true \" title=\"ADDER_CMP.sv\">module ADDER_CMP\n\t#(parameter length = 128)\n\t(input logic [length-1:0] a,\n\tinput logic [length-1:0] b,\n\toutput logic [length:0] out1,\n\toutput logic [length:0] out2);\n\tADDER1 add1(a,b,out1);\n\tADDER2 add2(a,b,out2);\nendmodule\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u6e2c\u5b9a<\/h3>\n<p>ADDER_CMP\u306e\u4f5c\u6210\u304c\u7d42\u308f\u3063\u305f\u305f\u3081\uff0c\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u5bfe\u5fdc\u3059\u308b\u30b7\u30f3\u30dc\u30eb\u3092\u4f5c\u6210\u3059\u308b(ADDER_CMP.sv\u3092\u958b\u3044\u305f\u72b6\u614b\u3067[File]-&gt;[Create\/Update]-&gt;[Create Symbol Files for Current File])\uff0e<br \/>\n\u6b21\u306b\u56de\u8def\u56f3\u306e\u8a18\u8ff0\u3092\u884c\u3046\uff0e\u56de\u8def\u56f3\u3092\u4f5c\u6210([File]-&gt;[New]-&gt;[Block Diagram\/Schematic File)\u3057\uff0cADDER_CMP\u306e\u30b7\u30f3\u30dc\u30eb\u306binput\/output\u30d4\u30f3\u3092\u63a5\u7d9a\u3059\u308b\uff0e<br \/>\n&nbsp;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-332\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/1-1024x265.png\" alt=\"\" width=\"1024\" height=\"265\" \/><br \/>\n&nbsp;<br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u884c\u3044\uff0c\u6210\u529f\u3057\u305f\u3089\u30c6\u30b9\u30c8\u7528\u306e\u5165\u529b\u6ce2\u5f62\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n\u6ce2\u5f62\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u898f\u4f5c\u6210([File]-&gt;[New]-&gt;[University Program VWF])\u3057\uff0c\u9069\u5f53\u306a\u5165\u529b\u6ce2\u5f62\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n\u4eca\u56de\u306f160[ns]\u6bce\u306b\u4e71\u6570\u3067\u751f\u6210\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\uff0e<br \/>\nTiming Simulation\u3092\u884c\u3063\u305f\u7d50\u679c\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<br \/>\n&nbsp;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-333\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/2-1024x95.png\" alt=\"\" width=\"1024\" height=\"95\" \/><br \/>\n&nbsp;<br \/>\nout1,out2\u3067\u30cf\u30b6\u30fc\u30c9\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b\uff0e\u3053\u306e\u90e8\u5206\u3092\u62e1\u5927\u3059\u308b\u3068<br \/>\n&nbsp;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-334\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/3-1024x92.png\" alt=\"\" width=\"1024\" height=\"92\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-335\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/4-1024x94.png\" alt=\"\" width=\"1024\" height=\"94\" \/><br \/>\n&nbsp;<br \/>\n\u3068\u306a\u308b\u305f\u3081\uff0c0.4[ns](=5.677-5.277)\u81ea\u4f5c\u3057\u305f\u52a0\u7b97\u5668\u306e\u65b9\u304c\u9045\u5ef6\u304c\u5927\u304d\u3044\u3053\u3068\u304c\u5206\u304b\u308b\uff0e<br \/>\n&nbsp;<\/p>\n<h3>\u30b2\u30fc\u30c8\u8868\u73fe\u306e\u78ba\u8a8d<\/h3>\n<p>\u5b9f\u969b\u306b\u751f\u6210\u3055\u308c\u305f\u30b2\u30fc\u30c8\u8868\u73fe\u306f[Tools]-&gt;[Netlist Viewer]\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u308b\uff0e<br \/>\n\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\uff0c\u5168\u52a0\u7b97\u5668\u306e\u8868\u73fe\u304c\u81ea\u4f5c\u3068+\u6f14\u7b97\u5b50\u3067\u7570\u306a\u3063\u3066\u304a\u308a\uff0c\u3053\u308c\u304c\u9045\u5ef6\u306e\u5dee\u306e\u539f\u56e0\u3067\u3042\u308b\u3068\u308f\u304b\u3063\u305f\uff0e<br \/>\n&nbsp;<br \/>\n\u81ea\u4f5c<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-339\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/8-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-340\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/9-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-341\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/10-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" \/><br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n+\u6f14\u7b97\u5b50<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-336\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/5-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" \/><br \/>\nF0<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-337\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/6.png\" alt=\"\" width=\"733\" height=\"510\" \/><br \/>\nF1<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-338\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/01\/7.png\" alt=\"\" width=\"730\" height=\"517\" \/><br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u4eca\u56de\u306f\u534a\u52a0\u7b97\u5668\u304b\u3089\u52a0\u7b97\u5668\u3092\u81ea\u4f5c\u3057\uff0cSystemVerilog\u306e+\u6f14\u7b97\u5b50\u3068\u306e\u6bd4\u8f03\u3092\u884c\u3063\u305f\uff0e<br \/>\n\u6bd4\u8f03\u306e\u7d50\u679c\uff0c+\u6f14\u7b97\u5b50\u306e\u65b9\u304c\u9045\u5ef6\u304c\u5c11\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u3063\u305f\uff0e<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SystemVerilog\u3067\u306f(\u8907\u6570)\u30d3\u30c3\u30c8\u306e\u52a0\u7b97\u3092+\u6f14\u7b97\u5b50\u306b\u3088\u3063\u3066\u884c\u3046\u4e8b\u304c\u3067\u304d\u308b\uff0e \u3057\u304b\u3057\uff0c\u3053\u306e+\u6f14\u7b97\u5b50\u304c\u6700\u7d42\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u30b2\u30fc\u30c8\u8868\u73fe\u3068\u306a\u308b\u306e\u304b\uff0c\u78ba\u8a8d\u3057\u305f\u3053\u3068\u304c\u306a\u304b\u3063\u305f\u305f\u3081\uff0c\u4eca\u56de\u306f\u305d\u306e\u78ba\u8a8d\u3092\u884c\u3046\uff0e \u307e\u305f\uff0c\u52a0\u7b97\u5668\u306f\u5168\u52a0\u7b97 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-331","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":0,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"wp:attachment":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}