核心提示:MATLAB代做|FPGA代做|python代做-乘法器verilog...
module mux(altremote_reconfig, altremote_busy, in_altremote, in_updatelogic, out_altasmi);
input altremote_reconfig;
input altremote_busy;
input in_altremote; //This need to be assigned according to the respective outputs from altremote_update that need to be multiplexed
input in_updatelogic; //This need to be assigned according to the respective outputs from update logic that need to be multiplexed
output out_altasmi;
wire out_altasmi;
reg remote_access;
assign out_altasmi = remote_access? in_altremote: in_updatelogic;
always @(posedge altremote_reconfig)
begin
remote_access <= 1'b1;
end
always @(negedge altremote_busy)
begin
remote_access <= 1'b0;
end
endmodule
module mux_tb ();
reg altremote_reconfig;
reg altremote_busy;
reg in_altremote; //This need to be assigned according to the respective outputs from altremote_update that need to be multiplexed
reg in_updatelogic; //This need to be assigned according to the respective outputs from update logic that need to be multiplexed
wire out_altasmi;
initial
begin
altremote_reconfig = 1'b0;
#150 altremote_reconfig = 1'b1;
#180 altremote_reconfig = 1'b0;
end
initial
begin
altremote_busy = 1'b0;
#20 altremote_busy = 1'b1;
#100 altremote_busy = 1'b0;
#200 altremote_busy = 1'b1;
#300 altremote_busy = 1'b0;
end
mux muxinst(altremote_reconfig, altremote_busy, in_altremote, in_updatelogic, out_altasmi);
endmodule
联系:highspeedlogic
QQ :1224848052
微信:HuangL1121
邮箱:1224848052@qq.com
微信扫一扫:
--------------------------------------------------------------------------------------
人工智能代做,深度学习代做,深度强化学习代做,zynq智能系统FPGA开发,
AI代做,卷积神经网络,Alexnet,GoogleNet,CNN,TensorFlow,
caffe,pointnet,PPO,Qlearning,FasterRCNN,MTCNN,
SPPNet,word2vec,SARASA算法,梯度策略等等