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
------------------------------------------------------------------------------------------------------------
module fourinputmultiplexer(
input a,
input b,
input c,
input d,
input [1:0] Control,
output reg Output
);
always @(Control,a,b,c,d)
begin
case (Control)
2'b00:Output = a;
2'b01:Output = b;
2'b10:Output = c;
2'b11:Output = d;
endcase
end
endmodule
----------------------------------------------------------------------------------------------------------
TUTORIAL ON HOW TO ADD TIMING CONSTRAINTS IN A MODULE
#8I/Os_2
NET "a" LOC = "p94" ;
NET "b" LOC = "p93" ;
NET "c" LOC = "p92" ;
NET "d" LOC = "p91" ;
NET "Control[0]" LOC = "p86" ;
NET "Control[1]" LOC = "p85" ;
#16I/Os_1
NET "Output" LOC = "p126" ;
No comments:
Post a Comment