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:
value 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

Topic attachments
I Attachment Action Size Date Who Comment
display_ctrl.vhdvhd display_ctrl.vhd manage 16.8 K 22 Jul 2008 - 20:43 AttilioTarantola display VHDL source code
event_counter.vhdvhd event_counter.vhd manage 1.4 K 24 Jul 2008 - 08:34 AttilioTarantola event counter VHDL source code
gp_add_on.vhdvhd gp_add_on.vhd manage 5.2 K 24 Jul 2008 - 08:40 AttilioTarantola gp_add_on VHDL source code
Edit | Attach | Print version | History: r4 < r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r3 - 24 Jul 2008, AttilioTarantola
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Hades Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)