lucask07 / covg_fpga

FPGA and Python experiment code for the digital ion channel amplifier project.
GNU General Public License v3.0
6 stars 2 forks source link

Wb_SignalConverter: state register sensitivity list #7

Closed lucask07 closed 2 years ago

lucask07 commented 3 years ago

A synchronous always block sensitivity list can have a clock or a clock and a reset. A third signal in the sensitivity list is not good practice.

    //state register
    always@(posedge rst or posedge clk or posedge startread/*int_o*/)begin

This issue is to remove posedge startread from the sensitivity list

Either, move startread out of the sensitivity list and into the logic of the state register always block Or, move startread into the next state logic.