Skip to content

Files

Latest commit

 

History

History

control

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Modelling closed-loop control systems with VHDL

Sharing data between VHDL and a foreign engine

  • TEXT/CSV.
    • Ad-hoc read/write procedures.
    • Might need to convert integer to/from fixed-point.
  • BIN.
    • Not portable.
  • Waveform.
    • Post-morten (or streaming).
    • Limited type representations.
  • JSON-for-VHDL.
  • Cosimulation.

Exercises

  1. In subdir control, execute python run.py -v.
  • tb_soft_singleproc
  • tb_soft_singleproc_bin
  • tb_soft_singleproc_binvec (does not work)
  • tb_soft_twoproc
  1. In Matlab, go to subdir control/m.
  • Execute plant.m.
  • Execute step_p.m.
    • fsys_p: proportional, continuous plant.
    • fsys_d: proportional, discrete plant.
    • man_ss: hardcoded controller, discrete plant.
    • man_diffe: hardcoded controller, hardcoded plant.
    • hdl: generated by tb_soft_singleproc_bin.
  1. In subdir control, execute python3 run.py -v -g lib.tb_soft_twoproc_bin.all.

  • AXI-Lite
  • Structural
  • Fixed-point

References