mirror of
https://github.com/Klagarge/Cursor.git
synced 2024-11-30 04:43:26 +00:00
23 lines
562 B
VHDL
23 lines
562 B
VHDL
|
ARCHITECTURE test OF divider_tester IS
|
||
|
|
||
|
constant clockFrequency: real := 66.0E6;
|
||
|
constant clockPeriod: time := 1.0/clockFrequency * 1 sec;
|
||
|
signal sClock: std_uLogic := '1';
|
||
|
|
||
|
BEGIN
|
||
|
|
||
|
reset <= '1', '0' after clockPeriod/4;
|
||
|
|
||
|
sClock <= not sClock after clockPeriod/2;
|
||
|
clock <= sClock after clockPeriod/10;
|
||
|
|
||
|
testMode <= '1', '0' after 10000*clockPeriod;
|
||
|
|
||
|
-- start <= '0',
|
||
|
-- '1' after 210 us,
|
||
|
-- '0' after 210 us + clockPeriod,
|
||
|
-- '1' after 2.1 ms,
|
||
|
-- '0' after 2.1 ms + clockPeriod;
|
||
|
|
||
|
END ARCHITECTURE test;
|