URL
https://opencores.org/ocsvn/oms8051mini/oms8051mini/trunk
Subversion Repositories oms8051mini
Compare Revisions
- This comparison shows the changes necessary to convert path
/oms8051mini/trunk/verif/agents
- from Rev 2 to Rev 7
- ↔ Reverse comparison
Rev 2 → Rev 7
/uart/uart_agent.v
1,4 → 1,5
|
`include "tb_defines.v" |
|
module uart_agent ( |
test_clk, |
47,7 → 48,7
|
integer timeout_count; |
integer data_bit_number; |
reg [2:0] clk_count; |
reg [15:0] clk_count; |
|
reg error_ind; // 1 indicate error |
|
65,10 → 66,12
|
always @(posedge test_clk) |
begin |
if (clk_count == 3'h0) |
test_tx_clk = ~test_tx_clk; |
|
clk_count = clk_count + 1; |
if (clk_count == 'h0) begin |
test_tx_clk = ~test_tx_clk; |
clk_count = control_setup.divisor; |
end else begin |
clk_count = clk_count - 1; |
end |
end |
assign test_rx_clk = ~test_tx_clk; |
|
107,8 → 110,9
|
|
always @error_detected begin |
error_ind = 1; |
err_cnt = err_cnt + 1; |
error_ind = 1; |
err_cnt = err_cnt + 1; |
`TB_GLBL.test_err; |
end |
|
|
117,8 → 121,8
begin |
read = 0; |
write = 0; |
tx_count = 0; |
rx_count = 0; |
tx_count = 0; |
rx_count = 0; |
stop_err_check = 0; |
par_err_count = 0; |
stop_err1_cnt = 0; |
307,6 → 311,7
input fifo_enable; |
|
begin |
clk_count = divisor; |
data_bit_number = data_bit_set + 5; |
end |
endtask |