URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
[/] [open8_urisc/] [trunk/] [VHDL/] [o8_epoch_timer.vhd] - Diff between revs 189 and 191
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 189 |
Rev 191 |
Line 107... |
Line 107... |
epoch_alarm_q <= '0';
|
epoch_alarm_q <= '0';
|
Wr_Data_q <= (others => '0');
|
Wr_Data_q <= (others => '0');
|
Reg_Addr_q <= (others => '0');
|
Reg_Addr_q <= (others => '0');
|
Wr_En <= '0';
|
Wr_En <= '0';
|
Rd_En <= '0';
|
Rd_En <= '0';
|
Rd_Data <= (others => '0');
|
Rd_Data <= OPEN8_NULLBUS;
|
Interrupt <= '0';
|
Interrupt <= '0';
|
elsif( rising_edge( Clock ) )then
|
elsif( rising_edge( Clock ) )then
|
epoch_tmr <= epoch_tmr + uSec_Tick;
|
epoch_tmr <= epoch_tmr + uSec_Tick;
|
-- Force the lower bits of the setpoint to "11" so that the offset is
|
-- Force the lower bits of the setpoint to "11" so that the offset is
|
-- reduced to 1uS (reproducing the original behavior). Software should
|
-- reduced to 1uS (reproducing the original behavior). Software should
|
Line 155... |
Line 155... |
|
|
epoch_alarm_q <= epoch_alarm;
|
epoch_alarm_q <= epoch_alarm;
|
-- Fire on rising edge of epoch_alarm
|
-- Fire on rising edge of epoch_alarm
|
Interrupt <= epoch_alarm and not epoch_alarm_q;
|
Interrupt <= epoch_alarm and not epoch_alarm_q;
|
|
|
Rd_Data <= (others => '0');
|
Rd_Data <= OPEN8_NULLBUS;
|
Rd_En <= Addr_Match and Rd_Enable;
|
Rd_En <= Addr_Match and Rd_Enable;
|
if( Rd_En = '1' )then
|
if( Rd_En = '1' )then
|
case( Reg_Addr_q )is
|
case( Reg_Addr_q )is
|
when "00" =>
|
when "00" =>
|
Rd_Data <= epoch_buffer(7 downto 0);
|
Rd_Data <= epoch_buffer(7 downto 0);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.