mirror of
https://github.com/pConst/basic_verilog.git
synced 2025-01-14 06:42:54 +08:00
Fixed RS triggers declaration syntax
This commit is contained in:
parent
ba53bc5486
commit
cb280f51cf
12
reset_set.sv
12
reset_set.sv
@ -23,12 +23,12 @@ reset_set RS1 (
|
||||
|
||||
|
||||
module reset_set(
|
||||
input wire clk,
|
||||
input wire nrst,
|
||||
input wire s,
|
||||
input wire r,
|
||||
output reg q = 0, // aka "present state"
|
||||
output wire nq
|
||||
input clk,
|
||||
input nrst,
|
||||
input s,
|
||||
input r,
|
||||
output logic q = 0, // aka "present state"
|
||||
output nq
|
||||
);
|
||||
|
||||
always_ff @(posedge clk) begin
|
||||
|
12
set_reset.sv
12
set_reset.sv
@ -23,12 +23,12 @@ set_reset SR1 (
|
||||
|
||||
|
||||
module set_reset(
|
||||
input wire clk,
|
||||
input wire nrst,
|
||||
input wire s,
|
||||
input wire r,
|
||||
output reg q = 0, // aka "present state"
|
||||
output wire nq
|
||||
input clk,
|
||||
input nrst,
|
||||
input s,
|
||||
input r,
|
||||
output logic q = 0, // aka "present state"
|
||||
output nq
|
||||
);
|
||||
|
||||
always_ff @(posedge clk) begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user