2014年4月29日 星期二

範例 4x1 MUX 套用到DE2-70 實驗版上


範例 4X1 Mux
套用到DE2-70 實驗版上


¡ 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

沒有留言:

張貼留言

ESP32 (ESP-IDF in VS Code) MFRC522 + MQTT + PYTHON TKinter +SQLite

 ESP32 (ESP-IDF in VS Code) MFRC522 + MQTT + PYTHON TKinter +SQLite  ESP32 VS Code 程式 ; PlatformIO Project Configuration File ; ;   Build op...