+/EE316
digital logic
git clone https://git.julia.blue/+/EE316
91885ad
master
1`timescale1 ns/ 1 ps 2 3module call_system_dataflow ( 4input wire clk , 5input wire call_button , 6input wire cancel_button , 7output reg light_state 8); 9 10wire next_state ; 11 12assign next_state = call_button || ( light_state && ! cancel_button ); 13 14always @( posedge clk ) begin 15light_state <= next_state ; 16end 17 18endmodule