URL
https://opencores.org/ocsvn/potato/potato/trunk
[/] [potato/] [trunk/] [soc/] [pp_soc_7seg.vhd] - Diff between revs 61 and 64
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 61 |
Rev 64 |
Line 57... |
Line 57... |
report "Only 1 - 8 displays are supported by the 7-seg module!"
|
report "Only 1 - 8 displays are supported by the 7-seg module!"
|
severity FAILURE;
|
severity FAILURE;
|
|
|
-- Connect display outputs:
|
-- Connect display outputs:
|
seg7_cathode <= output_array(active_display) when CATHODE_ENABLE_VALUE = '0' else not output_array(active_display);
|
seg7_cathode <= output_array(active_display) when CATHODE_ENABLE_VALUE = '0' else not output_array(active_display);
|
seg7_anode <= anodes;
|
seg7_anode <= anodes and not ctrl_enable when ANODE_ENABLE_VALUE = '1' else anodes and ctrl_enable;
|
|
|
-- Create one decoder for each display:
|
-- Create one decoder for each display:
|
generate_decoders: for i in 0 to NUM_DISPLAYS - 1
|
generate_decoders: for i in 0 to NUM_DISPLAYS - 1
|
generate
|
generate
|
decoder: entity work.pp_seg7dec
|
decoder: entity work.pp_seg7dec
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.