Display

- Cornelius Kleiner and Christian Kern - 22 Jul 2008

description

The entity has 4 inputs and 3 outputs.
Input Bits Function Output Bits Funktion
CLPD_CLK 1 Clock DISP_A_d 2 Adress Output
CHOOSE 1 Choose between displaying a predefined output and a 16 bit hexadecimal number DISP_D_d 8 Data output
ENTRY_IN 4 Choose predefined output DISP_WR_d 1 Write Signal Output
ENTRY_SAVE_IN 16 Hexadecimal number

To choose between several predefined outputs by setting ENTRY_IN, set CHOOSE to 1. Predefined outputs:
valueSorted ascending displayed word
0000 BUSY
0001 LVL1
0010 LVL2
0011 ERROR
0100 CALIBRATE
More predefined outputs can eventually be added.

To display your own 16bit hexadecimal number, set CHOOSE to 0 and put your number to ENTRY_SAVE_IN.

Pin names of the outputs

DISP_A<0> LOC = "M2"
DISP_A<1> LOC = "L5"
DISP_D<0> LOC = "M3"
DISP_D<1> LOC = "M4"
DISP_D<2> LOC = "N2"
DISP_D<3> LOC = "N3"
DISP_D<4> LOC = "P1"
DISP_D<5> LOC = "R1"
DISP_D<6> LOC = "T1"
DISP_WR LOC = "L2"

code

Event Counter

description

The entity has 3 inputs and 1 output.
Input Bits Function Output Bits Funktion
CLPD_CLK 1 Clock ENTRY_SAVE_OUT 16 Display Output
ENABLE_COUNTER_IN 1 Enable counter
RESET_COUNTER_IN 1 Reset counter

To count an event set ENABLE_COUNTER_IN to '1' for 10ns. To reset the counter set RESET_COUNTER_IN to '1'.

To display the number of events put ENTRY_SAVE_OUT to ENTRY_SAVE_IN of display_ctrl and set CHOOSE to '0'.

code

top entity gp_add_on

I Attachment Action Size Date Who Comment
display_ctrl.vhdvhd display_ctrl.vhd manage 16 K 2008-07-22 - 22:43 AttilioTarantola display VHDL source code
event_counter.vhdvhd event_counter.vhd manage 1 K 2008-07-24 - 10:34 AttilioTarantola event counter VHDL source code
gp_add_on.vhdvhd gp_add_on.vhd manage 5 K 2008-07-24 - 10:40 AttilioTarantola gp_add_on VHDL source code
Topic revision: r4 - 2009-10-27, JanMichel
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki Send feedback | Imprint | Privacy Policy (in German)