3
u/Ateef_31 20h ago
Ur verilog code should be in design not in simulation while creating a file select create a design source, and to create the test bench select the create simulation source.
1
u/jonasarrow 19h ago
It is a design file, but as there is no tb defined (which also does not include the buff.v) Vivado automatically selects that as the top file for simulation and synthesis.
OP, you are good so far. Add a second source (the testbench), and select simulation only as the type. There you can define stimuli, add your buff as a component to drive your buff.v . If you do not need simulation, you can directly go to synthesis and implementation (see the entries on the left or start it in the "design run" tab on the bottom with a right click).
15
u/Bulky_Caramel_2234 18h ago
welcome to the kilowarning generator machine