upstream and downstream circuit breakers, flash memory verilog code