2013年11月30日 星期六

Design of First in - First out register.v

// File        : Design of First in - First out register.v


module first_in_first_out ( en ,clk ,din ,dout );

output dout ;
reg dout ;

input en ;
wire en ;
input clk ;
wire clk ;
input din ;
wire din ;

reg [3:0] mem;

initial mem = 0;

always @ (posedge (clk)) begin
if (en) begin
dout <= mem[0];
mem <= {din , mem[3:1]};
end
end

endmodule

沒有留言:

張貼留言

MQTT WS HMI 與 Wokwi ESP32 連線的資訊透過HiveMQ

MQTT WS HMI 與 Wokwi ESP32 連線的資訊透過HiveMQ     https://console.hivemq.cloud/clusters 當您進入 HiveMQ Cloud Console 的 Clusters 頁面時,您的目標是取得能讓 MQTT W...