A
Aldorus
Guest
newbie here ...
I have the following circuit (that will help me learn VHDL)
4 x seven segment displays to be controlled by one cpld. each of the
seven segment displays will decode a separate 3 bit register
I imagine the entity description should go like this:
entity ent_seven_seg_display is port (
itemstate: in bit_vector(2 downto 0);
sevseg : out bit_vector(6 downto 0));
end ent_seven_seg_display;
Is it possible to have 4 different architecture declarations all
referencing the above entity description
as in
architecture display1 of ent_seven_seg_display is
blah blah blah
architecture display2 of ent_seven_seg_display is
blah blah blah
architecture display3 of ent_seven_seg_display is
blah blah blah
architecture display4 of ent_seven_seg_display is
blah blah blah
?
Again bear in mind I have 4 seven segment displays that I want to decode
the state of 4 x 3 bit registers so at any given point in time each of
the seven segment displays will hold a different number.
I have one large CPLD with enough pins to handle this circuit ...
I just want to know if I can save having to create four entity
descriptions that are identical in everything BUT port names
Thanks
note to self: maybe I should finish reading this VHDL book before posing
such questions ...
I have the following circuit (that will help me learn VHDL)
4 x seven segment displays to be controlled by one cpld. each of the
seven segment displays will decode a separate 3 bit register
I imagine the entity description should go like this:
entity ent_seven_seg_display is port (
itemstate: in bit_vector(2 downto 0);
sevseg : out bit_vector(6 downto 0));
end ent_seven_seg_display;
Is it possible to have 4 different architecture declarations all
referencing the above entity description
as in
architecture display1 of ent_seven_seg_display is
blah blah blah
architecture display2 of ent_seven_seg_display is
blah blah blah
architecture display3 of ent_seven_seg_display is
blah blah blah
architecture display4 of ent_seven_seg_display is
blah blah blah
?
Again bear in mind I have 4 seven segment displays that I want to decode
the state of 4 x 3 bit registers so at any given point in time each of
the seven segment displays will hold a different number.
I have one large CPLD with enough pins to handle this circuit ...
I just want to know if I can save having to create four entity
descriptions that are identical in everything BUT port names
Thanks
note to self: maybe I should finish reading this VHDL book before posing
such questions ...