2021年3月22日 星期一

DE2-115 Verilog code for 4:1 Multiplexer (MUX)

 DE2-115 Verilog code for 4:1 Multiplexer (MUX)



























//Mux 

module mux2_de2( SW,LEDR );

input [17:0] SW;

output [17:0] LEDR;

mux2(SW[17:16],SW[3:0],LEDR[0]);

endmodule


//======================

module mux2( select, d, q );

input[1:0] select;

input[3:0] d;

output q;

reg q;

wire[1:0] select;

wire[3:0] d;

always @(d or select)

q = d[select];

endmodule



DE2-115 Pin assigment

https://www.mediafire.com/file/1c3we0lftdz3qaq/DE2_115_pin_assignments.csv/file

Examples verilog.v

https://www.mediafire.com/file/kngm038siz036kj/ex1.rar/file


沒有留言:

張貼留言

2024產專班 作業2 (純模擬)

2024產專班 作業2  (純模擬) 1) LED ON,OFF,TIMER,FLASH 模擬 (switch 控制) 2)RFID卡號模擬 (buttom  模擬RFID UID(不從ESP32) Node-Red 程式 [{"id":"d8886...