请verilog的高手求助!帮帮新手写个程序!
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/09 03:58:45
请verilog的高手求助!帮帮新手写个程序!
请用verilog,iplement a 32-bit ALU with the following function.
ALU operation logic function
00 A OR B
01 A XOR B
10 (A AND (B XNOR C))
11 ((A XOR B) NAND C)
the logic function should only be implement structurally using 2-input NAND,
2-input NOR & INVERTER GATES.the multiplexer should be implemented strucutally.
HINT:MAKE A 1-BIT ALU AND INSTANTIATE IT 32 TIMES
请用verilog,iplement a 32-bit ALU with the following function.
ALU operation logic function
00 A OR B
01 A XOR B
10 (A AND (B XNOR C))
11 ((A XOR B) NAND C)
the logic function should only be implement structurally using 2-input NAND,
2-input NOR & INVERTER GATES.the multiplexer should be implemented strucutally.
HINT:MAKE A 1-BIT ALU AND INSTANTIATE IT 32 TIMES
module ALU(
sel,
a,
b,
c,
out);
input sel;
input [31:0] a,b,c;
output [31:0] out;
reg [31:0] out;
always @ (sel or a or b)
begin
case(sel)
2'b00:
begin
out = a | b;
end
2'b01:
begin
out = a ^ b;
end
2'b10:
begin
out = a & (~(b^c));
end
2'b11:
out = ~(a^b & c);
end
endmodule
sel,
a,
b,
c,
out);
input sel;
input [31:0] a,b,c;
output [31:0] out;
reg [31:0] out;
always @ (sel or a or b)
begin
case(sel)
2'b00:
begin
out = a | b;
end
2'b01:
begin
out = a ^ b;
end
2'b10:
begin
out = a & (~(b^c));
end
2'b11:
out = ~(a^b & c);
end
endmodule
请verilog的高手求助!帮帮新手写个程序!
【求助】 程序流程图我的程序,但是不会写流程图,能请高手帮个忙吗?可以的话帮忙做个流程图吧... ...不行的话,教教我
matlab程序求助,我是个菜鸟,但是急需一个程序,请高手帮我编下~
请解释下Verilog HDL程序
请高手帮帮我编写这个求和的程序,用C语言
Verilog HDL的一个程序是什么意思?
用verilog代码编写下面的程序
新手求魔方解法我是个新手,请高手教我怎么玩,不要复制的,求原贴!不要废话,
如图,新手想求助下这样的程序应该怎么写,意思是有一段字符,先将他列成4个字符一行,然后再由十六进制转为10进制,最后结果
求matlab高手来~帮帮新手吧.
你想对安利柯说什么?急!急!急! 我是新手,请各位高手帮帮!
用Verilog HDL写8位超前进位加法器程序?