Unity-FSM Finite State Machine

When we develop, to a certain extent, we will encounter dozens of states. If we continue to use Unity’s Animator controller, a large number of bool and float type variables will appear, and these intricate variables are connected to the Animatator controller like a maze version. The combination of lines will become extremely complex and […]

22. Finite state machine (1) go language fsm library

Article directory 1: Introduction 1. Definition 2. Components 3. Advantages 2: github.com/looplab/fsm library 1. FSM in Go 2. Basic use of fsm 3. When is Action (callback function, action) executed in fsm? 4. Callbacks execution sequence written in the complete version 5. Abbreviated version of Callbacks execution sequence 6. Complete example One: Introduction 1. Definition […]

Analysis of stm32 library function FSMC_NORSRAMInit()

This is a function for programming the timing of the nor memory. The function form is void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct). There is only one parameter in it. This parameter is a pointer type and points to a data structure. This data structure holds the configuration of the timing. Each parameter of , the details of this […]

C# Unity FSM state machine

C# Unity FSM state machine Using state machines can reduce code coupling, optimize code readability, and facilitate team collaboration. For game development content, the process of game development and player animation can be implemented using FSM finite state machines. 1.FsmState Base class for each state, generic parameters represent the owner public abstract class FsmState<T> where […]

FPGA project: complex_fsm

module complex_fsm ( input wire sys_clk, input wire sys_rst_n , input wire pi_money_one , input wire pi_money_half , output reg po_cola , output reg po_money ); // define signal wire [01:00] money; reg [04:00] state ; //define parameter parameter IDLE = 5’b00001 , HALF = 5’b00010 , ONE = 5’b00100 , ONE_HALF = 5’b01000 , […]

FPGA project: complex_fsm

module top ( input wire sys_clk, input wire sys_rst_n , input wire one, input wire half, output wire [03:00] led ); wire one_out_w; wire half_out_w; wire po_cola; wire po_money; key_filter key_filter_insert( .sys_clk (sys_clk), .sys_rst_n (sys_rst_n), .one (one) , .half ( half ) , .one_out ( one_out_w ) , .half_out (half_out_w) ); complex_fsm complex_fsm_insert ( .sys_clk […]

ASIC-WORLD Verilog(13) State Machine FSM

Write in front Before I prepared to write some simple verilog tutorials, I referred to many materials–this set of verilog tutorials on the Asic-World website is one of them. This set of tutorials is very well written, but it is not in Chinese, so I have to boldly translate it (adding my own understanding) and […]

Explore FSM (Finite State Machine) applications

A Finite State Machine (FSM) is a mathematical model in computer science that can be used to represent and control the behavior of a system. It consists of a set of states and transition functions defined on those states. FSMs are widely used as state mechanisms in computer programs. Finite state machine (FSM) application scenario […]

Use STM32CubeMX to configure FSMC module to drive LCD screen (based on punctual atomic process)

Foreword In the process of learning STM32, I just learned the LCD screen. I use STM32F103ZET6, and the screen is punctual and atomic. But I encountered a lot of problems when lighting up the LCD screen in my own new project. After solving it, share it here, hoping to help friends who encounter this confusion. […]