Git Product home page Git Product logo

genericcounter's Introduction

Entity: GenericCounter

Diagram

Diagram

Description

  • Name: Generic Counter
  • Version: 0.0.2
  • Author: Maximilian Passarello (Blog)
  • License: MIT

Generic Counter with the following features:

  • Without Output Register
  • Look ahead value (configurable per generic)
  • Synchronous reset
  • Clock enable
  • Set with priority over the CountEnable
  • Over- and Underflow flag
  • Configurable width
  • Configurable initial value
  • Configurable reset value
  • Configurable counting direction (Up and Down counting)

History

  • 0.0.1 (2024-03-15) Initial version
  • 0.0.2 (2024-03-16) Added Testbench. Simulation passed.

Waveform

alt text

Generics

Generic name Type Value Description
Width integer 4 Width of the counter
InitialValue integer 0 Initial value of the counter
ResetValue integer 0 Reset value of the counter
CountingDirection string "UP" Counting direction: "UP" or "DOWN"
LookAhead integer 0 Look ahead value

Ports

Port name Direction Type Description
CLK in std_logic Clock input; rising edge
RST in std_logic Reset input; active high; synchronous
CE in std_logic Clock enable; active high
CountEnable in std_logic Count enable; active high
CounterValue out std_logic_vector(Width - 1 downto 0) Counter Value
LookAheadValue out std_logic_vector(Width - 1 downto 0) Look ahead value
Set in std_logic Set with priority over the CountEnable
SetValue in std_logic_vector(Width - 1 downto 0) If set is high, the counter will be set to SetValue
OverUnderflow out std_logic Over- and Underflow flag

genericcounter's People

Contributors

pxammaxp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.