[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79EXNZ2WYEPM3CVM66XRNTQ":3,"skill-same:01M79EXNZ2WYEPM3CVM66XRNTQ":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M79EXNZ2WYEPM3CVM66XRNTQ","verilog-fpga-digital-design",null,"Design, synthesize, and verify digital hardware circuits using Verilog and SystemVerilog for FPGAs (Xilinx Artix\u002FZynq, Intel Cyclone, Lattice iCE40). Implement synthesizable finite state machines (FSM), synchronous reset logic, clock domain crossing (CDC) synchronizers, and testbench simulation using Icarus Verilog and GTKWave. Trigger when writing Verilog HDL, designing FPGA logic, or debugging hardware timing.","hamzabellouch\u002Fagent-skills","hamzabellouch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237856042?v=4","01M79BRYW7XAMK3YDWQEMTWGWS","Hamza Bellouch","01M79BRYWXQV3JK2TGVTX8GN2A",8,"MIT","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FSystems_and_Hardware\u002FHardware_EDA_and_FPGA\u002Fverilog-fpga-digital-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: verilog-fpga-digital-design\nmetadata:\n  category: Hardware Design and EDA FPGA\ndescription: Design, synthesize, and verify digital hardware circuits using Verilog and SystemVerilog for FPGAs (Xilinx Artix\u002FZynq, Intel Cyclone, Lattice iCE40). Implement synthesizable finite state machines (FSM), synchronous reset logic, clock domain crossing (CDC) synchronizers, and testbench simulation using Icarus Verilog and GTKWave. Trigger when writing Verilog HDL, designing FPGA logic, or debugging hardware timing.\ncompatibility: IEEE 1364-2005 (Verilog), IEEE 1800 (SystemVerilog), Icarus Verilog, Yosys\n---\n\n# Verilog & FPGA Digital Design Skill Guide\n\nThis skill governs standard, synthesizable digital hardware description and simulation workflows for FPGA architectures.\n\n---\n\n## 1. Synchronous Digital Circuit Architecture\n\nAll synthesizable logic must be driven by positive clock edges, with zero inferred latches.\n\n```text\n[ Clock Input (clk) ] --------------------------------------------+\n                                                                  |\n[ Asynchronous \u002F Synchronous Reset (rst_n) ]                      |\n                                                                  |\n[ Inputs ] ---> [ Combinational Next-State Logic ] ---> [ D Flip-Flops (Registers) ] ---> [ Output Logic ]\n                       ^                                         |\n                       |-------------- State Feedback -----------+\n```\n\n---\n\n## 2. Production Synthesizable Verilog Patterns\n\n### A. 3-Always Block Mealy\u002FMoore Finite State Machine (FSM)\n\n```verilog\n`default_nettype none\n\nmodule uart_rx_fsm (\n    input  wire       clk,\n    input  wire       rst_n,\n    input  wire       rx_serial,\n    output reg  [7:0] rx_byte,\n    output reg        rx_ready\n);\n\n    \u002F\u002F State Encoding\n    localparam [1:0] STATE_IDLE  = 2'b00,\n                     STATE_START = 2'b01,\n                     STATE_DATA  = 2'b10,\n                     STATE_STOP  = 2'b11;\n\n    reg [1:0] current_state, next_state;\n    reg [2:0] bit_index;\n    reg [7:0] shift_reg;\n\n    \u002F\u002F 1. Synchronous State Register (Sequential)\n    always @(posedge clk or negedge rst_n) begin\n        if (!rst_n) begin\n            current_state \u003C= STATE_IDLE;\n            bit_index     \u003C= 3'd0;\n            rx_byte       \u003C= 8'd0;\n            rx_ready      \u003C= 1'b0;\n        end else begin\n            current_state \u003C= next_state;\n\n            \u002F\u002F Sequential datapath updates\n            if (current_state == STATE_DATA) begin\n                shift_reg[bit_index] \u003C= rx_serial;\n                bit_index \u003C= bit_index + 1'b1;\n            end else if (current_state == STATE_STOP) begin\n                rx_byte  \u003C= shift_reg;\n                rx_ready \u003C= 1'b1;\n            end else begin\n                rx_ready \u003C= 1'b0;\n                bit_index \u003C= 3'd0;\n            end\n        end\n    end\n\n    \u002F\u002F 2. Combinational Next-State Logic\n    always @(*) begin\n        next_state = current_state;\n        case (current_state)\n            STATE_IDLE: begin\n                if (!rx_serial) \u002F\u002F Start bit detected (low)\n                    next_state = STATE_START;\n            end\n            STATE_START: begin\n                next_state = STATE_DATA;\n            end\n            STATE_DATA: begin\n                if (bit_index == 3'd7)\n                    next_state = STATE_STOP;\n            end\n            STATE_STOP: begin\n                if (rx_serial) \u002F\u002F Valid stop bit (high)\n                    next_state = STATE_IDLE;\n            end\n            default: next_state = STATE_IDLE;\n        endcase\n    end\n\nendmodule\n```\n\n### B. Dual Flip-Flop Clock Domain Crossing (CDC) Synchronizer\n\n```verilog\nmodule cdc_synchronizer (\n    input  wire clk_dest,\n    input  wire rst_dest_n,\n    input  wire async_signal_in,\n    output wire sync_signal_out\n);\n\n    (* ASYNC_REG = \"TRUE\" *) reg stage1_reg;\n    (* ASYNC_REG = \"TRUE\" *) reg stage2_reg;\n\n    always @(posedge clk_dest or negedge rst_dest_n) begin\n        if (!rst_dest_n) begin\n            stage1_reg \u003C= 1'b0;\n            stage2_reg \u003C= 1'b0;\n        end else begin\n            stage1_reg \u003C= async_signal_in;\n            stage2_reg \u003C= stage1_reg;\n        end\n    end\n\n    assign sync_signal_out = stage2_reg;\n\nendmodule\n```\n\n---\n\n## 3. FPGA Digital Design Rules\n\n1. **No Inferred Latches:** In combinational `always @(*)` blocks, assign a default value to every signal at the beginning of the block, and specify all `case` branches (or include `default:`) to prevent latches.\n2. **Never Use Asynchronous Logic in Counters:** Never drive flip-flop clock pins using combinatorial signals; always use a global clock with a clock-enable signal (`if (enable) counter \u003C= counter + 1`).\n3. **Use CDC Synchronizers:** Every single-bit signal originating from an external pin or a different clock domain must pass through at least a 2-stage synchronizer (`ASYNC_REG = \"TRUE\"`) before consumption.\n","# Verilog & FPGA Digital Design Skill Guide\n\nThis skill governs standard, synthesizable digital hardware description and simulation workflows for FPGA architectures.\n\n---\n\n## 1. Synchronous Digital Circuit Architecture\n\nAll synthesizable logic must be driven by positive clock edges, with zero inferred latches.\n\n```text\n[ Clock Input (clk) ] --------------------------------------------+\n                                                                  |\n[ Asynchronous \u002F Synchronous Reset (rst_n) ]                      |\n                                                                  |\n[ Inputs ] ---> [ Combinational Next-State Logic ] ---> [ D Flip-Flops (Registers) ] ---> [ Output Logic ]\n                       ^                                         |\n                       |-------------- State Feedback -----------+\n```\n\n---\n\n## 2. Production Synthesizable Verilog Patterns\n\n### A. 3-Always Block Mealy\u002FMoore Finite State Machine (FSM)\n\n```verilog\n`default_nettype none\n\nmodule uart_rx_fsm (\n    input  wire       clk,\n    input  wire       rst_n,\n    input  wire       rx_serial,\n    output reg  [7:0] rx_byte,\n    output reg        rx_ready\n);\n\n    \u002F\u002F State Encoding\n    localparam [1:0] STATE_IDLE  = 2'b00,\n                     STATE_START = 2'b01,\n                     STATE_DATA  = 2'b10,\n                     STATE_STOP  = 2'b11;\n\n    reg [1:0] current_state, next_state;\n    reg [2:0] bit_index;\n    reg [7:0] shift_reg;\n\n    \u002F\u002F 1. Synchronous State Register (Sequential)\n    always @(posedge clk or negedge rst_n) begin\n        if (!rst_n) begin\n            current_state \u003C= STATE_IDLE;\n            bit_index     \u003C= 3'd0;\n            rx_byte       \u003C= 8'd0;\n            rx_ready      \u003C= 1'b0;\n        end else begin\n            current_state \u003C= next_state;\n\n            \u002F\u002F Sequential datapath updates\n            if (current_state == STATE_DATA) begin\n                shift_reg[bit_index] \u003C= rx_serial;\n                bit_index \u003C= bit_index + 1'b1;\n            end else if (current_state == STATE_STOP) begin\n                rx_byte  \u003C= shift_reg;\n                rx_ready \u003C= 1'b1;\n            end else begin\n                rx_ready \u003C= 1'b0;\n                bit_index \u003C= 3'd0;\n            end\n        end\n    end\n\n    \u002F\u002F 2. Combinational Next-State Logic\n    always @(*) begin\n        next_state = current_state;\n        case (current_state)\n            STATE_IDLE: begin\n                if (!rx_serial) \u002F\u002F Start bit detected (low)\n                    next_state = STATE_START;\n            end\n            STATE_START: begin\n                next_state = STATE_DATA;\n            end\n            STATE_DATA: begin\n                if (bit_index == 3'd7)\n                    next_state = STATE_STOP;\n            end\n            STATE_STOP: begin\n                if (rx_serial) \u002F\u002F Valid stop bit (high)\n                    next_state = STATE_IDLE;\n            end\n            default: next_state = STATE_IDLE;\n        endcase\n    end\n\nendmodule\n```\n\n### B. Dual Flip-Flop Clock Domain Crossing (CDC) Synchronizer\n\n```verilog\nmodule cdc_synchronizer (\n    input  wire clk_dest,\n    input  wire rst_dest_n,\n    input  wire async_signal_in,\n    output wire sync_signal_out\n);\n\n    (* ASYNC_REG = \"TRUE\" *) reg stage1_reg;\n    (* ASYNC_REG = \"TRUE\" *) reg stage2_reg;\n\n    always @(posedge clk_dest or negedge rst_dest_n) begin\n        if (!rst_dest_n) begin\n            stage1_reg \u003C= 1'b0;\n            stage2_reg \u003C= 1'b0;\n        end else begin\n            stage1_reg \u003C= async_signal_in;\n            stage2_reg \u003C= stage1_reg;\n        end\n    end\n\n    assign sync_signal_out = stage2_reg;\n\nendmodule\n```\n\n---\n\n## 3. FPGA Digital Design Rules\n\n1. **No Inferred Latches:** In combinational `always @(*)` blocks, assign a default value to every signal at the beginning of the block, and specify all `case` branches (or include `default:`) to prevent latches.\n2. **Never Use Asynchronous Logic in Counters:** Never drive flip-flop clock pins using combinatorial signals; always use a global clock with a clock-enable signal (`if (enable) counter \u003C= counter + 1`).\n3. **Use CDC Synchronizers:** Every single-bit signal originating from an external pin or a different clock domain must pass through at least a 2-stage synchronizer (`ASYNC_REG = \"TRUE\"`) before consumption.\n",{"name":5,"metadata":24,"description":7,"compatibility":26},{"category":25},"Hardware Design and EDA FPGA","IEEE 1364-2005 (Verilog), IEEE 1800 (SystemVerilog), Icarus Verilog, Yosys","main","e905af21e5f1e1c3ca605e9656c3a7930360a84e","Programming\u002FSystems_and_Hardware\u002FHardware_EDA_and_FPGA\u002Fverilog-fpga-digital-design",1,"https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills","https:\u002F\u002Fhamzabellouch.github.io\u002F","https:\u002F\u002Fgithub.com\u002Fhamzabellouch","hamzabellouch.github.io","CEO & Founder of @tknoglobal | Researcher in Technology & Applied Sciences.","2026-10-17 03:20:19",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add hamzabellouch\u002Fagent-skills --skill verilog-fpga-digital-design",{"tool":43,"command":44},"bunx","bunx skills add hamzabellouch\u002Fagent-skills --skill verilog-fpga-digital-design",{"tool":46,"command":47},"pnpm","pnpm dlx skills add hamzabellouch\u002Fagent-skills --skill verilog-fpga-digital-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FSystems_and_Hardware\u002FHardware_EDA_and_FPGA\u002Fverilog-fpga-digital-design\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M79FHH2H815A9TAP6WNKH4Q8","security-audit","Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FSecurity_Audit_and_Code_Review\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79FHBGXVBY6VQ1X7ETAZMF1","malware-analysis-reversing","Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static\u002Fdynamic binary analysis, memory forensics, and YARA detection rule authoring.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fmalware-analysis-reversing\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79FH6EACDR801TZCE4R8SAC","application-security-pentesting","Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST\u002FDAST pipeline integration, secure code review, threat modeling, and defensive security posture.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fapplication-security-pentesting\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79FH0VKVT44FK923K520ZQA","oauth2-oidc-security-flows","Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Foauth2-oidc-security-flows\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79FGVVB3R4T88XXD8FRSV5B","jwt-session-management-hardening","Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256\u002FEdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Fjwt-session-management-hardening\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79FGNCPZ85CVEY0B3NE4H3B","soc2-compliance-automation","Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI\u002FCD security gates.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FGovernance_Compliance_and_Legal_Tech\u002Fsoc2-compliance-automation\u002FSKILL.md",[],[]]