+/EE316

digital logic

git clone https://git.julia.blue/+/EE316

Joseph RyanUpload whole semester91885ad

master
339 B18 linesraw
1`timescale 1ns / 1ps
2
3module call_system_dataflow(
4    input wire clk,
5    input wire call_button,
6    input wire cancel_button,
7    output reg light_state
8    );
9    
10    wire next_state;
11    
12assign next_state = call_button || (light_state && !cancel_button);
13
14always @( posedge clk ) begin
15    light_state <= next_state;
16end
17
18endmodule