forked from tanchou/Verilog
Refactor DHT11 model: update clock comment for clarity and adjust state machine comment formatting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module dht11_model (
|
||||
inout wire data, // Ligne de données bidirectionnelle
|
||||
input wire clk, // Horloge système (27 MHz)
|
||||
input wire clk, // (27 MHz)
|
||||
input wire rst_n // Reset actif bas
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ module dht11_model (
|
||||
localparam T_BIT_GAP = (50_000 / CLK_PERIOD_NS); // 50 µs entre bits
|
||||
localparam DATA_BITS = 40; // 40 bits de données
|
||||
|
||||
// États de la machine à états de Moore
|
||||
// États de la machine à états de Moore
|
||||
localparam IDLE = 4'd0,
|
||||
WAIT_START_LOW = 4'd1,
|
||||
WAIT_START_HIGH= 4'd2,
|
||||
|
Reference in New Issue
Block a user