URL
https://opencores.org/ocsvn/t6507lp/t6507lp/trunk
[/] [t6507lp/] [trunk/] [sim/] [T6507LP_ULA/] [T6507LP_ALU_TestBench.v] - Diff between revs 79 and 80
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 79 |
Rev 80 |
Line 33... |
Line 33... |
initial
|
initial
|
begin
|
begin
|
clk_i = 0;
|
clk_i = 0;
|
n_rst_i = 1;
|
n_rst_i = 1;
|
@(negedge clk_i);
|
@(negedge clk_i);
|
|
n_rst_i = 0;
|
|
alu_opcode = LDA_IMM;
|
|
alu_a = 0;
|
|
@(negedge clk_i);
|
alu_opcode = ADC_IMM;
|
alu_opcode = ADC_IMM;
|
alu_a = 1;
|
alu_a = 1;
|
while (1) begin
|
while (1) begin
|
$display("op1 = %h op2 = %d c = %h d = %h n = %h v = %h ", alu_a, DUT.A, alu_status[C], alu_status[D], alu_status[N], alu_status[V]);
|
$display("op1 = %h op2 = c = %h d = %h n = %h v = %h ", alu_a, alu_status[C], alu_status[D], alu_status[N], alu_status[V]);
|
end
|
end
|
$finish;
|
$finish;
|
end
|
end
|
endmodule
|
endmodule
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.