Line 28... |
Line 28... |
/* */
|
/* */
|
/* Author(s): */
|
/* Author(s): */
|
/* - Olivier Girard, olgirard@gmail.com */
|
/* - Olivier Girard, olgirard@gmail.com */
|
/* */
|
/* */
|
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
/* $Rev: 111 $ */
|
/* $Rev: 134 $ */
|
/* $LastChangedBy: olivier.girard $ */
|
/* $LastChangedBy: olivier.girard $ */
|
/* $LastChangedDate: 2011-05-20 22:39:02 +0200 (Fri, 20 May 2011) $ */
|
/* $LastChangedDate: 2012-03-22 21:31:06 +0100 (Thu, 22 Mar 2012) $ */
|
/*===========================================================================*/
|
/*===========================================================================*/
|
|
|
integer my_counter;
|
integer my_counter;
|
always @ (negedge mclk)
|
always @ (negedge mclk)
|
my_counter <= my_counter+1;
|
my_counter <= my_counter+1;
|
Line 71... |
Line 71... |
$display(" ===============================================");
|
$display(" ===============================================");
|
repeat(5) @(posedge mclk);
|
repeat(5) @(posedge mclk);
|
stimulus_done = 0;
|
stimulus_done = 0;
|
|
|
|
|
|
`ifdef ASIC
|
|
$display(" ===============================================");
|
|
$display("| SIMULATION SKIPPED |");
|
|
$display("| (this test is not supported in ASIC mode) |");
|
|
$display(" ===============================================");
|
|
$finish;
|
|
`else
|
|
|
// TIMER A TEST: INPUT MUX - TACLK
|
// TIMER A TEST: INPUT MUX - TACLK
|
//--------------------------------------------------------
|
//--------------------------------------------------------
|
// @(r15 === 16'h0000);
|
// @(r15 === 16'h0000);
|
|
|
@(r15 === 16'h0001);
|
@(r15 === 16'h0001);
|
Line 114... |
Line 122... |
@(tar === 1);
|
@(tar === 1);
|
my_counter = 0;
|
my_counter = 0;
|
repeat(300) @(posedge mclk);
|
repeat(300) @(posedge mclk);
|
if (tar !== 16'h001E) tb_error("====== TIMER A TEST: INPUT MUX - INCLK =====");
|
if (tar !== 16'h001E) tb_error("====== TIMER A TEST: INPUT MUX - INCLK =====");
|
|
|
|
`endif
|
|
|
stimulus_done = 1;
|
stimulus_done = 1;
|
end
|
end
|
|
|
|
|
No newline at end of file
|
No newline at end of file
|