1
0
forked from tanchou/Verilog

Add Ultrasonic FPGA module and simulation testbench

- Implemented the ultrasonic_fpga module to handle ultrasonic sensor operations including triggering and measuring distance.
- Added a simulation testbench (ultrasonic_sim) to validate the functionality of the ultrasonic_fpga module.
- The module includes state management for triggering the sensor and measuring the echo duration to calculate distance.
- Simulation includes initialization, triggering the sensor, and checking the output distance.
This commit is contained in:
Gamenight77
2025-04-16 13:30:41 +02:00
parent 66fa5b2650
commit c8f108e01d
5 changed files with 2744 additions and 1 deletions

View File

@@ -1,6 +1,12 @@
# Verilog
## Command
## Commands
Compile code
iverilog -o Nom_de_sortie.vvp .\source1.v .\tb_1.v
### Upload on fpga
yosys -p "synth_ecp5 -json design.json" counter.v
nextpnr-gowin --chip GW2AR-LV18QN88C8/I7 --json design.json --asc design.asc