This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add_theme_support( 'automatic-feed-links' ); // 削除 | |
| remove_action('wp_head', 'feed_links_extra', 3); // 追加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define('FORCE_SSL_ADMIN', true); | |
| /** Absolute path to the WordPress directory. */ | |
| if ( !defined('ABSPATH') ) | |
| define('ABSPATH', dirname(__FILE__) . '/'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define('FORCE_SSL_LOGIN', true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reg [15:0] count; | |
| // max_count は 入力値など | |
| always @(posedge clk or negedge rst_n) begin | |
| if (~rst_n) begin | |
| count <= 0; // リセット | |
| end | |
| else if (count == max_count) begin | |
| count <= 0; // カウンタ最大値の場合、0 にリセット | |
| end | |
| else begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| always @(posedge clk or negedge rst_n) begin | |
| if (~rst_n) begin | |
| count <= max_count; // 初期値をカウンタ最大値にする | |
| end | |
| else if (count == 0) begin | |
| count <= max_count; // count = 0 でリセット | |
| end | |
| else begin | |
| count <= count - 1; | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reg enable; | |
| always @(posedge clk or negedge rst_n) begin | |
| if (~rst_n) begin | |
| count <= max_count; | |
| end | |
| else if (enable) begin // enable = 1'b1 の時のみカウント動作 | |
| else if (count == 0) begin | |
| count <= max_count; | |
| end | |
| else begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| always @(posedge clk or negedge rst_n) begin | |
| if (~rst_n) begin | |
| enable <= 1'b0; | |
| end | |
| else if (start) begin | |
| enable <= 1'b1; | |
| end | |
| else if (finish) begin | |
| enable <= 1'b0; | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| initial begin | |
| integer code; | |
| reg [63:0] name; | |
| reg [31:0] value; | |
| code = $sscanf("reg1 = 0xc0ffee", "%s = 0x%h", name, value); | |
| $display("code = %0d", code); // code = 2 | |
| $display("name = %0s", name); // name = reg1 | |
| $display("value = %h", value); // value = 00c0ffee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reg [63:0] val; | |
| integer code; | |
| code = $sscanf("FFFF_FFFF_FFFF_FFFF", "%h", val); | |
| $display("%h", val); |