forked from tanchou/Verilog
Refactor DHT11 module and testbench: update timing parameters, adjust state machine, and correct simulation script paths
This commit is contained in:
@@ -6,13 +6,13 @@ module tb_dht11;
|
||||
always #18.5 clk = ~clk; // Génère une clock 27 MHz
|
||||
|
||||
// === Registres ===
|
||||
wire io_dht11_sig;
|
||||
reg dht11_start;
|
||||
wire dht11_data_ready;
|
||||
wire dht11_busy;
|
||||
wire [7:0] dht11_temp_data;
|
||||
wire [7:0] dht11_hum_data;
|
||||
wire dht11_error;
|
||||
wire io_dht11_sig;
|
||||
reg dht11_start;
|
||||
wire dht11_data_ready;
|
||||
wire dht11_busy;
|
||||
wire [7:0] dht11_temp_data;
|
||||
wire [7:0] dht11_hum_data;
|
||||
wire dht11_error;
|
||||
|
||||
// === Simulation du module DHT11 ===
|
||||
dht11_model dht11_model (
|
||||
|
Reference in New Issue
Block a user