请verilog的高手求助!帮帮新手写个程序!请用verilog,iplement a 32-bit ALU with the following function.ALU operation logic function00 A OR B01 A XOR B10 (A AND (B XNOR C))11 ((A XOR B) NAND C)the logic function should only be implement st

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 09:32:10
请verilog的高手求助!帮帮新手写个程序!请用verilog,iplementa32-bitALUwiththefollowingfunction.ALUoperationlogicfunctio

请verilog的高手求助!帮帮新手写个程序!请用verilog,iplement a 32-bit ALU with the following function.ALU operation logic function00 A OR B01 A XOR B10 (A AND (B XNOR C))11 ((A XOR B) NAND C)the logic function should only be implement st
请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的高手求助!帮帮新手写个程序!请用verilog,iplement a 32-bit ALU with the following function.ALU operation logic function00 A OR B01 A XOR B10 (A AND (B XNOR C))11 ((A XOR B) NAND C)the logic function should only be implement st
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

请verilog的高手求助!帮帮新手写个程序!请用verilog,iplement a 32-bit ALU with the following function.ALU operation logic function00 A OR B01 A XOR B10 (A AND (B XNOR C))11 ((A XOR B) NAND C)the logic function should only be implement st 把一个两位数的个位数字与其十位数字交换后得到一个新数,它与原来的数加起来恰好是一个自然数的平方问:和数是多少~~~~~~~~~~~~~紧急求助~~~~~~~~~~~~~~~请速度~~~~~~~~~~~~~~~~~各位高手~~~~~~~~帮帮 verilog语言的verilog这7个字母都代表啥含义?verilog单词的汉字解释? 金毛犬,大家帮我看看品相2个月的小小金毛,请高手帮帮看看,多少可以买下来?请高手给点意见 求助高手如何用chemdraw 画个古怪的图 I am going to the hospital的问句是什么我要今天完成,所以请各位英语高手帮帮帮帮帮帮帮帮帮帮帮帮帮帮帮帮帮帮帮忙啊! 手写手写手写的哦 手写手写手写的哦 作文高手的全进!一百二十分求助!为帮助同学们,请你们帮帮小弟完成:以《为未来种一棵树》为题目,首先“审题”,然后“立意”,再写写“我怎么样去写这篇作文”(要引用名人例子)~~~要求 求助椭圆的面积和周长公式,请高人指点,谢谢,椭圆的面积公式和周长公式,请高手给我举个实例!急!急!急! 求高手解答几道奥数题目,有分数的!最好请高手写步骤,比较简单的题目~~~~~~~~~> verilog的one verilog 新电动机的绝缘电阻是多少?请电工高手指教. 我是自学英语的新手写了一篇的自我介绍,请高手们帮忙看下有没有时态标点符号等方面的错误,谢谢!内容如下:Hello,everyone.My name is miki 23 years old,I work in a logistics company.I like music and English.There They are going to plant trees.的问句是什么我要今天完成所以请各位英语高手帮帮帮帮帮帮帮帮忙啊! 请高手写个排比句~妹妹等着要呢 哪位高手帮帮我;优美语段;经典的歌词,请赏析