Xilinx ISE软件 模拟组合逻辑入门
2017-05-05 17:46
197 查看
xor_2.v
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:06:13 05/05/2017
// Design Name:
// Module Name: xor_2
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module xor_2(y,a,b
);
output y;
input a;
input b;
assign y=a&b;
endmodule
testxor.v
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:12:34 05/05/2017
// Design Name: xor_2
// Module Name: D:/ise147/prj/xor_2/testxor.v
// Project Name: xor_2
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: xor_2
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module testxor;
// Inputs
reg a;
reg b;
// Outputs
wire y;
// Instantiate the Unit Under Test (UUT)
xor_2 uut (
.y(y),
.a(a),
.b(b)
);
initial begin
// Initialize Inputs
a = 0;
b = 0;
// Wait 100 ns for global reset to finish
#1;
{a,b} = 2'b00;
#10 {a,b}=2'b01;
#10 {a,b}=2'b10;
#10 {a,b}=2'b11;
#10 $stop;
// Add stimulus here
end
endmodule
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:06:13 05/05/2017
// Design Name:
// Module Name: xor_2
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module xor_2(y,a,b
);
output y;
input a;
input b;
assign y=a&b;
endmodule
testxor.v
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:12:34 05/05/2017
// Design Name: xor_2
// Module Name: D:/ise147/prj/xor_2/testxor.v
// Project Name: xor_2
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: xor_2
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module testxor;
// Inputs
reg a;
reg b;
// Outputs
wire y;
// Instantiate the Unit Under Test (UUT)
xor_2 uut (
.y(y),
.a(a),
.b(b)
);
initial begin
// Initialize Inputs
a = 0;
b = 0;
// Wait 100 ns for global reset to finish
#1;
{a,b} = 2'b00;
#10 {a,b}=2'b01;
#10 {a,b}=2'b10;
#10 {a,b}=2'b11;
#10 $stop;
// Add stimulus here
end
endmodule
相关文章推荐
- Xilinx ISE软件 模拟组合逻辑入门 4位加法器
- [软件渲染器入门]一,编写相机、网格和设备对象的核心逻辑
- FPGA入门实验二:译码器组合逻辑
- GPIO模拟I2C快速入门 与程序实现+软件模拟I2C时序
- 硬件与软件的逻辑一致性——38译码器的程序模拟
- 软件开发是人类通过逻辑解决问题的过程
- 软件开发入门学习的个人看法
- 软件开发入门学习的个人看法(转贴自dearbook)
- 软件开发入门学习的个人看法
- 软件开发入门学习的个人看法
- 破解完全入门篇,第六章--爆破软件
- 华为网络公司一点通模拟软件贴图
- 初学者入门:软件测试从零开始
- 盗QQ的密码软件模拟实现技术
- 软件开发入门学习的个人看法(转贴自dearbook)
- java入门好文章,指明自己的软件开发方向
- 盗QQ的密码软件模拟实现技术
- SkyEye(一种软件模拟的系统开发平台)
- Tangram与软件的组合构造
- 共享软件入门指南