Sunday, 3 September 2017

FPGA Verilog tristate buffer xilinx spartan 3 waveshare development board test

This video is part of a series to design a Controlled Datapath using a structural approach in Verilog. A Structural approach consist in designing all components needed for the design such as gates to form subsystems and then joining them together to form a larger design like adders and Arithmetic logic units.

The design in these labs was first developed in VHDL you can check the final VHDL version in the link below as well as instructions on how to set up the Waveshare development board to get started, the setup is the same for VHDL and Verilog:

The complete vhdl video tutorial at:

https://youtu.be/_lZcWH0gjIw?list=PLZqHwo1YWqVMSdkQOYC_W0o59LWnZvFn4

Lab Sheets:

http://viahold.com/y37

Lab guide

http://cogismith.com/1OwP




TRSTATE BUFFER
----------------------------------------------------------------------
module tri_state_buffer(
input data,
input enable,
output data_out
    );

assign data_out = enable ? data : 1'bz;

endmodule
-----------------------------------------------------------------------

TUTORIAL ON HOW TO ADD CLOCK TIMING CONSTRAINTS IN A MODULE


CONSTRAINT
----------------------------------------------------------------------
#8I/Os_2
NET "data"  LOC = "p94"  ;
NET "enable"  LOC = "p93"  ;

#16I/Os_1
NET "data_out"  LOC = "p126"  ;

----------------------------------------------------------------------

TUTORIAL TO CREATE A SQUARE WAVE GENERATOR TO CLOCK THE CIRCUIT
This is an alternative to clock the circuits another method is shown in the tutorial above




No comments:

Post a Comment