Skip to content

Eriemon/verilog-generator

readable-verilog-generator

Verified

Use when creating, writing, reviewing, annotating, repairing, refactoring, or validating readable Verilog RTL, including synthesizable Verilog-2001 .v files, existing-RTL analysis, semantic comment annotation, testbench scaffold planning, ASIC-quality review, local or remote Vivado/xsim validation, evidence-backed repair, and workflow trace diagnosis.

FileKindSize
SKILL.mdskill md21.3 KB
agents/openai.yamlconfig363 B
assets/examples/existing_rtl/fsm_without_default.vother761 B
assets/examples/existing_rtl/fsm_without_default_spec.mdmarkdown311 B
assets/examples/existing_rtl/leaf_counter.vother314 B
assets/examples/existing_rtl/missing_output_register.vother423 B
assets/examples/existing_rtl/missing_output_register_spec.mdmarkdown331 B
assets/examples/existing_rtl/ready_valid_slice.vother967 B
assets/examples/existing_rtl/ready_valid_slice_spec.mdmarkdown420 B
assets/examples/existing_rtl/reset_gap_counter.vother319 B
assets/examples/existing_rtl/reset_gap_counter_spec.mdmarkdown212 B
assets/examples/existing_rtl/tb_ready_valid_slice.vother846 B
assets/examples/existing_rtl/top_counter.vother271 B
assets/examples/existing_rtl/traffic_light.vother2.5 KB
assets/examples/existing_rtl/traffic_light_spec.mdmarkdown585 B
assets/examples/readme/axis_packet_meter.vother10.2 KB
assets/examples/remote_fixtures/comb_hierarchy_budget/generated/rtl/comb_hierarchy_budget.vother1.9 KB
assets/examples/remote_fixtures/comb_hierarchy_budget/generated/tb/tb_comb_hierarchy_budget.vother2.5 KB
assets/examples/remote_fixtures/comb_hierarchy_budget/hierarchy_child_loop.vother447 B
assets/examples/remote_fixtures/comb_hierarchy_budget/hierarchy_over_budget.vother527 B
assets/examples/remote_fixtures/comb_hierarchy_budget/hierarchy_q_cut.vother467 B
assets/examples/remote_fixtures/comb_hierarchy_budget/hierarchy_within_budget.vother450 B
assets/examples/remote_fixtures/comb_hierarchy_budget/spec.jsonconfig1.7 KB
assets/examples/remote_fixtures/comb_operation_budget/comb_operation_budget_bad.vother187 B
assets/examples/remote_fixtures/comb_operation_budget/generated/rtl/comb_operation_budget.vother6.1 KB
assets/examples/remote_fixtures/comb_operation_budget/generated/tb/tb_comb_operation_budget.vother5.7 KB
assets/examples/remote_fixtures/comb_operation_budget/spec.jsonconfig2.9 KB
assets/examples/remote_fixtures/comb_parity_mux/generated/rtl/comb_parity_mux.vother2.1 KB
assets/examples/remote_fixtures/comb_parity_mux/generated/tb/tb_comb_parity_mux.vother2.8 KB
assets/examples/remote_fixtures/comb_parity_mux/spec.jsonconfig1.9 KB
assets/examples/remote_fixtures/pipeline_delay/generated/rtl/pipeline_delay.vother4.5 KB
assets/examples/remote_fixtures/pipeline_delay/generated/tb/tb_pipeline_delay.vother2.6 KB
assets/examples/remote_fixtures/pipeline_delay/spec.jsonconfig2.2 KB
assets/examples/remote_fixtures/ready_valid_slice/generated/rtl/ready_valid_slice.vother5.2 KB
assets/examples/remote_fixtures/ready_valid_slice/generated/tb/tb_ready_valid_slice.vother2.9 KB
assets/examples/remote_fixtures/ready_valid_slice/spec.jsonconfig2.6 KB
assets/examples/rtl_erie_verilog_spec.jsonconfig2.1 KB
assets/examples/use_case_templates/jesd_adc.jsonconfig2.4 KB
assets/examples/use_case_templates/jesd_dac.jsonconfig2.5 KB
assets/examples/use_case_templates/mxfe_mixed.jsonconfig2.7 KB
assets/examples/use_case_templates/spi_adc.jsonconfig2.8 KB
assets/examples/use_case_templates/spi_dac.jsonconfig2.7 KB
assets/examples/verilog_pattern_templates/axi4_lite_csr.jsonconfig2.1 KB
assets/examples/verilog_pattern_templates/axi_interconnect_dma.jsonconfig2.3 KB
assets/examples/verilog_pattern_templates/axis_ready_valid.jsonconfig2.3 KB
assets/examples/verilog_pattern_templates/conv_load_store.jsonconfig1.8 KB
assets/external_interface_catalog.jsonconfig2.9 KB
assets/ideal_bad_style_metrics.jsonconfig17.5 KB
assets/installer/manifest.projection.jsonconfig2.8 KB
assets/installer/platforms.jsonconfig1.3 KB
assets/interface_templates/ahb_lite_config.vincother2.3 KB
assets/interface_templates/apb_config.vincother861 B
assets/interface_templates/axi4_full_master.vincother1.8 KB
assets/interface_templates/axi4_full_slave.vincother1.8 KB
assets/interface_templates/axi4_lite_config.vincother1.6 KB
assets/interface_templates/axi_stream_duplex.vincother1.1 KB
assets/interface_templates/catalog.jsonconfig2.6 KB
assets/project_ip_interface_manifest.template.jsonconfig9.4 KB
assets/readme-workflow.pngbinary1.4 MB
assets/readme/design-profile-cn.pngbinary1.4 MB
assets/readme/design-profile.pngbinary1.4 MB
assets/readme/evidence-guard-cn.pngbinary1.4 MB
assets/readme/evidence-guard.pngbinary1.4 MB
assets/readme/hero-overview-cn.pngbinary1.5 MB
assets/readme/hero-overview.pngbinary1.5 MB
assets/readme/project-facts-cn.pngbinary1.2 MB
assets/readme/project-facts.pngbinary1.3 MB
assets/readme/rule-rendering-cn.pngbinary1.4 MB
assets/readme/rule-rendering.pngbinary1.2 MB
assets/style_templates/header_prompt_none_mode.txtmarkdown2.1 KB
assets/style_templates/header_prompt_table_mode.txtmarkdown2.5 KB
assets/style_templates/rtl_bus_grouping.tplother1.0 KB
assets/style_templates/rtl_fsm.tplother832 B
assets/style_templates/rtl_header_bilingual.tplother1.6 KB
assets/style_templates/rtl_instantiation.tplother496 B
assets/style_templates/rtl_region_order.tplother987 B
assets/use_case_templates/catalog.jsonconfig2.8 KB
assets/use_case_templates/jesd_adc/README.mdmarkdown699 B
assets/use_case_templates/jesd_adc/constraints/system_constr.xdcother454 B
assets/use_case_templates/jesd_adc/manifest.jsonconfig1.7 KB
assets/use_case_templates/jesd_adc/tcl/common_bd.tclother4.0 KB
assets/use_case_templates/jesd_adc/tcl/system_bd.tclother920 B
assets/use_case_templates/jesd_adc/tcl/system_project.tclother1.0 KB
assets/use_case_templates/jesd_adc/verilog/system_top.vother2.9 KB
assets/use_case_templates/jesd_dac/README.mdmarkdown745 B
assets/use_case_templates/jesd_dac/constraints/system_constr.xdcother299 B
assets/use_case_templates/jesd_dac/manifest.jsonconfig1.7 KB
assets/use_case_templates/jesd_dac/tcl/common_bd.tclother4.8 KB
assets/use_case_templates/jesd_dac/tcl/system_bd.tclother923 B
assets/use_case_templates/jesd_dac/tcl/system_project.tclother1.1 KB
assets/use_case_templates/jesd_dac/verilog/system_top.vother2.9 KB
assets/use_case_templates/mxfe_mixed/README.mdmarkdown739 B
assets/use_case_templates/mxfe_mixed/constraints/system_constr.xdcother380 B
assets/use_case_templates/mxfe_mixed/manifest.jsonconfig1.8 KB
assets/use_case_templates/mxfe_mixed/tcl/common_bd.tclother5.4 KB
assets/use_case_templates/mxfe_mixed/tcl/system_bd.tclother1.2 KB
assets/use_case_templates/mxfe_mixed/tcl/system_project.tclother1.2 KB
assets/use_case_templates/mxfe_mixed/verilog/system_top.vother3.4 KB
assets/use_case_templates/spi_adc/README.mdmarkdown925 B
assets/use_case_templates/spi_adc/constraints/system_constr.xdcother635 B
assets/use_case_templates/spi_adc/manifest.jsonconfig1.7 KB
assets/use_case_templates/spi_adc/tcl/common_bd.tclother6.3 KB
assets/use_case_templates/spi_adc/tcl/system_bd.tclother1.6 KB
assets/use_case_templates/spi_adc/tcl/system_project.tclother982 B
assets/use_case_templates/spi_adc/verilog/system_top.vother4.2 KB
assets/use_case_templates/spi_dac/README.mdmarkdown757 B
assets/use_case_templates/spi_dac/constraints/system_constr.xdcother546 B
assets/use_case_templates/spi_dac/manifest.jsonconfig1.6 KB
assets/use_case_templates/spi_dac/tcl/common_bd.tclother5.7 KB
assets/use_case_templates/spi_dac/tcl/system_bd.tclother1.0 KB
assets/use_case_templates/spi_dac/tcl/system_project.tclother981 B
assets/use_case_templates/spi_dac/verilog/system_top.vother3.5 KB
assets/verilog_formatter_config/defaults.jsonconfig6.2 KB
assets/verilog_formatter_config/profiles/conservative.jsonconfig283 B
assets/verilog_formatter_config/profiles/example_compat.jsonconfig484 B
assets/verilog_formatter_config/profiles/formatter-lint.jsonconfig121 B
assets/verilog_formatter_config/profiles/formatter-normalize.jsonconfig182 B
assets/verilog_formatter_config/profiles/formatter-preserve.jsonconfig385 B
assets/verilog_formatter_config/profiles/formatting.jsonconfig270 B
assets/verilog_formatter_config/profiles/lint.jsonconfig269 B
assets/verilog_formatter_config/profiles/migration.jsonconfig239 B
assets/verilog_formatter_config/profiles/stress_cases_compat.jsonconfig484 B
assets/verilog_formatter_config/profiles/vitis-wrapper.jsonconfig486 B
assets/verilog_formatter_config/schema.jsonconfig13.7 KB
assets/verilog_formatter_config/templates/task-batch.jsonconfig212 B
assets/verilog_formatter_config/templates/task-inplace.jsonconfig221 B
assets/verilog_formatter_config/templates/task-single-file.jsonconfig220 B
assets/verilog_pattern_templates/axi4_lite_csr_shell.vincother562 B
assets/verilog_pattern_templates/axi_interconnect_port_groups.vincother592 B
assets/verilog_pattern_templates/axis_ready_valid_slice.vincother494 B
assets/verilog_pattern_templates/catalog.jsonconfig2.2 KB
assets/verilog_pattern_templates/conv_load_store_pipeline.vincother457 B
assets/verilog_pattern_templates/counter_state_bridge.vincother443 B
assets/verilog_pattern_templates/equivalence_wrapper_probe.vincother306 B
assets/verilog_pattern_templates/fsm_state_transition.vincother1.0 KB
assets/verilog_pattern_templates/phase_output_registering.vincother404 B
assets/verilog_pattern_templates/wrapper_top_stitching.vincother608 B
assets/verilog_quality_gates.jsonconfig38.2 KB
assets/verilog_style_rules.jsonconfig11.8 KB
assets/xilinx_primitive_semantics.jsonconfig21.4 KB
references/checklists/capability-distillation-checklist.mdmarkdown3.0 KB
references/checklists/lint-checklist.mdmarkdown3.6 KB
references/checklists/verilog-readability-gate.mdmarkdown3.5 KB
references/corpus/verilog-style-observations.mdmarkdown4.6 KB
references/integration/configuration.mdmarkdown19.9 KB
references/integration/host-integration.mdmarkdown10.6 KB
references/rules/asic-verilog-quality.mdmarkdown3.9 KB
references/rules/erie-style.mdmarkdown6.3 KB
references/rules/testbench-patterns.mdmarkdown3.2 KB
references/rules/verilog-code-comment-naming-standard.mdmarkdown55.6 KB
references/rules/verilog-comment-placement.mdmarkdown8.4 KB
references/rules/verilog-pattern-templates.mdmarkdown1.1 KB
references/rules/verilog-quality-gates.mdmarkdown21.4 KB
references/rules/xilinx-primitive-exemptions.mdmarkdown10.6 KB
references/skill/installation.mdmarkdown6.1 KB
references/skill/script-guide.mdmarkdown7.5 KB
references/skill/skill-standards.mdmarkdown2.1 KB
references/workflows/verilog_dispatcher.mdmarkdown6.4 KB
references/workflows/workflow-contracts.mdmarkdown15.1 KB
scripts/__init__.pyscript53 B
scripts/python/__init__.pyscript55 B
scripts/python/corpus/analyze_verilog_style_corpus.pyscript25.3 KB
scripts/python/existing_rtl/existing_rtl.pyscript81.1 KB
scripts/python/existing_rtl/existing_rtl_improvement.pyscript109.9 KB
scripts/python/existing_rtl/intervention.pyscript8.3 KB
scripts/python/existing_rtl/optimizer.pyscript25.8 KB
scripts/python/existing_rtl/reflection.pyscript86.7 KB
scripts/python/existing_rtl/semantic_contract.pyscript45.6 KB
scripts/python/existing_rtl/verifier.pyscript15.3 KB
scripts/python/existing_rtl/verify_repair.pyscript4.6 KB
scripts/python/existing_rtl/verify_repair_core.pyscript45.7 KB
scripts/python/existing_rtl/verify_repair_patch_apply.pyscript23.5 KB
scripts/python/existing_rtl/verify_repair_patch_categories.pyscript35.5 KB
scripts/python/existing_rtl/verify_repair_patch_plan.pyscript25.1 KB
scripts/python/existing_rtl/verify_repair_patching.pyscript2.4 KB
scripts/python/existing_rtl/verify_repair_support.pyscript25.6 KB
scripts/python/existing_rtl/verify_repair_testbench.pyscript45.9 KB
scripts/python/existing_rtl/verify_reporting.pyscript16.1 KB
scripts/python/facade/__init__.pyscript45 B
scripts/python/facade/existing_rtl_api.pyscript14.0 KB
scripts/python/facade/quality_api.pyscript19.9 KB
scripts/python/facade/representative_cases.pyscript38.3 KB
scripts/python/facade/verilog_api.pyscript6.5 KB
scripts/python/facade/workflow_api.pyscript63.2 KB
scripts/python/generation/tb_generator.pyscript54.9 KB
scripts/python/header_contract.pyscript21.1 KB
scripts/python/installation/__init__.pyscript52 B
scripts/python/installation/bundle.pyscript16.3 KB
scripts/python/installation/catalog.pyscript16.6 KB
scripts/python/installation/cli.pyscript26.4 KB
scripts/python/installation/projection.pyscript14.2 KB
scripts/python/installation/receipt.pyscript13.4 KB
scripts/python/installation/transaction.pyscript29.0 KB
scripts/python/quality/clock_name_roles.pyscript1.0 KB
scripts/python/quality/comment_placement.pyscript49.5 KB
scripts/python/quality/declaration_region_policy.pyscript8.0 KB
scripts/python/quality/deliverable_gate.pyscript51.9 KB
scripts/python/quality/external_interface_stubs.pyscript41.5 KB
scripts/python/quality/formatter_ast.pyscript85.0 KB
scripts/python/quality/formatter_ast_instances.pyscript5.4 KB

assets/examples/readme/axis_packet_meter.v

View on GitHub
`timescale 1ns / 1ps

////////////////////////////////////English///////////////////////////////////////
// Company:         Erie
// Engineer:        Erie
//
// Create Date:     2026/07/18 18:00:00
// Design Name:     axis_packet_meter
// Module Name:     axis_packet_meter
// Description:     description/axis_packet_meter_Design.pdf
// Simulations:     testbench/vivado/2021.1/axis_packet_meter
//
// Referrences:     None
//
// Dependencies:    None
//
// Version:         V1.0
// Revision Date:   2026/07/18 18:00:00
// History:
// Time             Version     Revised by        Contents
// 2026/07/18       V1.0        Erie              Create file.
///////////////////////////////////Chinese////////////////////////////////////////
// 版权归属:        Erie
// 开发人员:        Erie
//
// 创建日期:        2026年07月18日
// 设计名称:        axis_packet_meter
// 模块名称:        axis_packet_meter
// 模块说明:        Description/axis_packet_meter_Design.pdf
// 仿真工程:        TestBench/Vivado/2021.1/axis_packet_meter
//
// 参考资料:        None
//
// 依赖文件:        None
//
// 当前版本:        V1.0
// 修订日期:        2026年07月18日
// 修订历史:
// 时间             版本        修订人            修订内容
// 2026年07月18日   V1.0        Erie              创建文件

module axis_packet_meter
(
	//-----------------全局信号-----------------//
	input i_axis_aclk,                          // AXI-Stream 接口采样时钟
	input i_axis_arstn,                         // 统计寄存器低有效异步复位

	//-----------------AXIS接口-----------------//
	//握手、包边界与字节有效性监测
	input i_axis_tvalid,                        // 上游声明当前传输拍有效
	input i_axis_tready,                        // 下游确认接受当前传输拍
	input i_axis_tlast,                         // 当前传输拍结束一个数据包
	input [3:0]i_axis_tkeep,                    // 当前传输拍的逐字节有效掩码

	//-----------------用户接口-----------------//
	//统计控制与读出
	input i_clear,                              // 同步清零全部累计统计值
	output [31:0]o_packet_count,                // 已完成数据包的饱和计数值
	output [31:0]o_byte_count                   // 已传输有效字节的饱和计数值
);

	//----------------寄存器信号----------------//
	//用户接口--统计控制与读出
	reg [31:0]reg_frame_total = 32'd0;          // 数据包计数的未钳位内部状态
	reg [31:0]reg_byte_total = 32'd0;           // 有效字节计数的未钳位内部状态

	//流水化统计中间值
	reg [2:0]reg_byte_quantity_buffered = 3'd0; // 流水缓存的单拍有效字节数量

	//-----------------标志信号-----------------//
	//AXI-Stream 事务与数据包边界
	wire flag_transfer;                         // 本拍完成 valid-ready 握手
	wire flag_packet_end;                       // 本拍完成数据包末拍握手
	reg flag_packet_end_pending = 1'b0;         // 待处理的数据包结束事件
	reg flag_transfer_pending = 1'b0;           // 待处理的有效传输事件
	reg flag_packet_overflow_pending = 1'b0;    // 待锁存的数据包计数进位事件
	reg flag_byte_overflow_pending = 1'b0;      // 待锁存的字节计数进位事件
	reg flag_packet_saturated = 1'b0;           // 数据包计数饱和状态
	reg flag_byte_saturated = 1'b0;             // 字节计数饱和状态

	//-----------------其他信号-----------------//
	//饱和计数使用的扩展位运算量
	wire [32:0]data_frame_sum;                  // 数据包计数器加一后的扩展结果
	wire [32:0]data_byte_sum;                   // 字节计数器流水累加扩展结果

	//-----------------输出信号-----------------//
	//用户接口--统计控制与读出
	wire [31:0]cnt_packet_o;                    // 数据包计数输出桥接值
	wire [31:0]cnt_byte_o;                      // 有效字节计数输出桥接值

	//---------------其他信号连线---------------//
	//AXIS接口
	//AXI-Stream 事务判定
	assign flag_transfer = i_axis_tvalid & i_axis_tready; // 仅在发送方与接收方同时就绪时采样
	assign flag_packet_end = flag_transfer & i_axis_tlast; // 仅在末拍握手时累计数据包

	//其他信号连线
	assign data_frame_sum = {1'b0, reg_frame_total} + 1'b1; // 用扩展位捕获数据包计数进位

	//单拍字节数与饱和累加量
	assign data_byte_sum = {1'b0, reg_byte_total} + reg_byte_quantity_buffered; // 使用缓存字节数捕获计数进位

	//饱和统计输出选择
	assign cnt_packet_o = (flag_packet_saturated | flag_packet_overflow_pending) ? 32'hFFFF_FFFF : reg_frame_total; // 饱和后钳位数据包计数
	assign cnt_byte_o = (flag_byte_saturated | flag_byte_overflow_pending) ? 32'hFFFF_FFFF : reg_byte_total; // 饱和后钳位有效字节计数

	//---------------输出信号连线---------------//
	//用户接口--统计控制与读出
	assign o_packet_count = cnt_packet_o;       // 桥接已钳位的数据包计数
	assign o_byte_count = cnt_byte_o;           // 桥接已钳位的有效字节计数

	//-------------主要任务处理区域-------------//
	//用户接口--统计控制与读出
	//数据包原始计数每次末拍握手后递增,饱和状态由独立寄存器保持
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			reg_frame_total <= 32'd0;           // 异步复位清空数据包累计值
		end else begin
			case(i_clear)
				1'b1:begin
					reg_frame_total <= 32'd0;   // 软件清零优先于当前数据包事件
				end
				default:begin
					case(flag_packet_end_pending)
						1'b1:begin
							reg_frame_total <= data_frame_sum[31:0]; // 累计流水数据包事件
						end
						default:begin
							reg_frame_total <= reg_frame_total; // 无数据包事件时保持原始计数
						end
					endcase
				end
			endcase
		end
	end

	//字节原始计数使用前级字节数量,每拍仍可接受新的传输事件
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			reg_byte_total <= 32'd0;            // 异步复位清空有效字节累计值
		end else begin
			case(i_clear)
				1'b1:begin
					reg_byte_total <= 32'd0;    // 软件清零优先于流水传输事件
				end
				default:begin
					case(flag_transfer_pending)
						1'b1:begin
							reg_byte_total <= data_byte_sum[31:0]; // 累计前级缓存的有效字节数量
						end
						default:begin
							reg_byte_total <= reg_byte_total; // 无流水传输事件时保持原始计数
						end
					endcase
				end
			endcase
		end
	end

	//数据包进位事件寄存器更新逻辑
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			flag_packet_overflow_pending <= 1'b0; // 异步复位清除数据包进位事件
		end else begin
			case(i_clear)
				1'b1:begin
					flag_packet_overflow_pending <= 1'b0; // 软件清零丢弃当前进位事件
				end
				default:begin
					flag_packet_overflow_pending <= flag_packet_end_pending & data_frame_sum[32]; // 缓存流水数据包进位
				end
			endcase
		end
	end

	//数据包饱和状态寄存器更新逻辑
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			flag_packet_saturated <= 1'b0;      // 异步复位清除数据包饱和状态
		end else begin
			case(i_clear)
				1'b1:begin
					flag_packet_saturated <= 1'b0; // 软件清零释放数据包饱和状态
				end
				default:begin
					flag_packet_saturated <= flag_packet_saturated | flag_packet_overflow_pending; // 锁存已缓存的数据包进位
				end
			endcase
		end
	end

	//字节数量预译码寄存器更新逻辑
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			reg_byte_quantity_buffered <= 3'd0; // 异步复位清除缓存字节数
		end else begin
			reg_byte_quantity_buffered <= i_axis_tkeep[0] + i_axis_tkeep[1] + i_axis_tkeep[2] + i_axis_tkeep[3]; // 流水预译码有效字节数量
		end
	end

	//数据包结束事件缓存标志更新逻辑
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			flag_packet_end_pending <= 1'b0;    // 异步复位清除数据包结束事件
		end else begin
			case(i_clear)
				1'b1:begin
					flag_packet_end_pending <= 1'b0; // 软件清零冲刷当前数据包事件
				end
				default:begin
					flag_packet_end_pending <= flag_packet_end; // 缓存本拍数据包末拍握手
				end
			endcase
		end
	end

	//首级传输事件缓存标志更新逻辑
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			flag_transfer_pending <= 1'b0;      // 异步复位清除待处理传输事件
		end else begin
			case(i_clear)
				1'b1:begin
					flag_transfer_pending <= 1'b0; // 清零时冲刷待处理传输事件
				end
				default:begin
					flag_transfer_pending <= flag_transfer; // 缓存本拍有效传输事件
				end
			endcase
		end
	end

	//字节进位事件寄存器更新逻辑
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			flag_byte_overflow_pending <= 1'b0; // 异步复位清除字节进位事件
		end else begin
			case(i_clear)
				1'b1:begin
					flag_byte_overflow_pending <= 1'b0; // 软件清零丢弃当前字节进位事件
				end
				default:begin
					flag_byte_overflow_pending <= flag_transfer_pending & data_byte_sum[32]; // 缓存流水字节进位
				end
			endcase
		end
	end

	//字节饱和状态寄存器更新逻辑
	always@(posedge i_axis_aclk or negedge i_axis_arstn)begin
		if(i_axis_arstn == 1'b0)begin
			flag_byte_saturated <= 1'b0;        // 异步复位清除字节饱和状态
		end else begin
			case(i_clear)
				1'b1:begin
					flag_byte_saturated <= 1'b0; // 软件清零释放字节饱和状态
				end
				default:begin
					flag_byte_saturated <= flag_byte_saturated | flag_byte_overflow_pending; // 锁存已缓存的字节进位
				end
			endcase
		end
	end

endmodule
planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies.Stars: 108kUpdated Claude CodeCodexVerifiedInstall
meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要".Stars: 108kUpdated Claude CodeCodexVerifiedInstall