Skip to content

joselcuevam/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timer

8 bit counter Timer

Features:

  • 8 bit bidirectional counter
  • Interruption generation
  • Trigger generation
  • PWM generation
  • Input pulses counter
  • External clock
  • Prescaler

Module registers:

  • 0x1 CTRL_IN Control input
  • 0x2 CTRL_OUT Control output
  • 0x4 STATUS Timer status
  • 0x8 CNT_INIT Timer initialization
  • 0x9 CNT_MIN Counter min
  • 0xA CNT_MAX Counter max
  • 0xB CNT Actual counter value
  • 0xC CNT_M1 Counter match value 0
  • 0xD CNT_M2 Counter match value 1

#Set up

Clone at $HOME/timer otherwise create a config file: $HOME/.timer_conf Put in that file the location of timer folder example PROJ=/path/to/timer

#Simulate

Compile, simulate, open waveform

./run.sh -c ./run.sh -r free_run ./run.sh -w free_run

About

Timer implemented in verilog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published