Home / Products / B4S

B4S

Click to enlarge
Beacon for Simulink (B4S) combines the proven strength of Beacon’s code generator with the modeling power of The MathWorks’ Simulink & Stateflow tool set. The synergy created between the two tool sets extends the benefits of a world-class structured software design tool into the dynamic world of algorithmic modeling.


B4S enables developers to specify embedded systems requirements using Simulink / Stateflow. The B4S Coder tools then generate production code from those specifications.

Embedded system control flow is specified using Stateflow. This provides application control using a State Transition approach or using a more standard control flow approach. B4S then analyzes the Stateflow diagrams to generate structured C or Ada code.



B4S enables developers to specify embedded systems requirements using Simulink / Stateflow. The B4S Coder tools then generate production code from those specifications.

Embedded system signal flow is specified for B4S using Simulink. This provides application design using a signal propagation approach. B4S then analyzes the Simulink diagrams to generate structured C or Ada code.


  • Abs
  • Add
  • Atomic Subsystem
  • Bias
  • Bitwise Operator
  • Block Support Table
  • Bus Assignment
  • Bus Creator
  • Bus Selector
  • Bus to Vector
  • Clock
  • Code Reuse Subsystem
  • Combinatorial Logic
  • Configurable Subsystem
  • Constant
  • Coulomb & Viscous Friction
  • Data Store Memory
  • Data Store Read
  • Data Store Write
  • Data Type Conversion
  • Data Type Duplicate
  • Dead Zone
  • Demux
  • Derivative
  • Digital Clock
  • Discrete Filter
  • Discrete State-Space
  • Discrete Transfer Fcn
  • Discrete Zero-Pole
  • Discrete-Time Integrator
  • Display
  • Divide
  • DocBlock
  • Dot Product
  • Enable
  • Enabled and Triggered Subsystem
  • Enabled Subsystem
  • Enumerated Constant
  • Fcn
  • From
  • Function-Call Generator
  • Function-Call Subsystem
  • Gain
  • Goto
  • Ground
  • Hit Crossing
  • IC
  • In1 (Inport)
  • Index Vector
  • Integrator
  • Logical Operator
  • Lookup Table
  • Lookup Table 2-D
  • Manual Switch
  • Math Function
  • Memory
  • Merge
  • MinMax
  • Model Info
  • Multiport Switch
  • Mux
  • Out1
  • Probe
  • Product
  • Product of Elements
  • Pulse Generator
  • Ramp
  • Rate Limiter
  • Relational Operator
  • Relay
  • Rounding Function
  • Saturation
  • Scope
  • Selector
  • S-Function
  • S-Function Builder
  • Shift Arithmetic
  • Sign
  • Signal Specification
  • Sine Wave
  • Slider Gain
  • State-Space
  • Step
  • Stop Simulation
  • Subsystem
  • Subtract
  • Sum
  • Sum of Elements
  • Switch
  • Terminator
  • To File
  • To Workspace
  • Transfer Fcn
  • Transport Delay
  • Trigger
  • Triggered Subsystem
  • Trigonometric Function
  • Unary Minus
  • Unit Delay
  • Width
  • XY Graph
  • Zero-Pole


B4S enables developers to specify embedded systems requirements using Simulink / Stateflow. The B4S Coder tools then generate production code from those specifications.

Embedded system signal flow is specified for B4S using Simulink. This provides application design using a signal propagation approach. B4S then analyzes the Simulink diagrams to generate structured C or Ada code.



B4S enables developers to specify embedded systems requirements using Simulink / Stateflow. The B4S Coder tools then generate production code from those specifications.

B4S Coder analyzes the Simulink and Stateflow design diagrams to generate safety-critical, high-reliability C or Ada code. The generated code is highly readable, structured code ready for production embedded applications. The B4S toolset is designed to fit into the customer’s existing embedded application development process. Adopting this diagrammatic software design approach promotes code reuse, and results in application code easily tested to the original requirements.

Simulink and Stateflow’s simulation-oriented models are translated into production-quality designs using B4S Designer, complete with data dictionary and user control over processing allocation. Once software design details are added with B4S Designer, the Beacon code generators create efficient, well-commented, and standardized ANSI C or Ada in accordance with the user’s annotations of the algorithmic model.

B4S was designed explicitly to support the model-based development paradigm being embraced throughout segments of the embedded controller industry. The tool set’s flexibility and power offer dramatic productivity and maintainability enhancement across the application’s life cycle. Software designers are freed up to design software – with world-class tools in their pocket to alleviate the stress of translating their solid designs into fielded implementations.

Beacon generates safe code for critical applications as well as lower-risk applications. The safe code paradigm promotes reliability and dependability. For more on safe code, see Safe Code (pdf).