Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #File sistema.vhd
- entity sistema is
- port(...)
- end entity sistema;
- architecture struct of sistema is
- component decoder_c is
- port([...])
- end component decoder_c;
- begin
- dec: component decoder_c
- port map ([...]);
- end architecture struct;
- #File decoder.vhd
- entity decoder is
- port([...])
- end entity decoder;
- architecture behav of decoder is
- [...]
- begin
- [...]
- end architecture behav;
- architecture struct of decoder is
- [...]
- begin
- [...]
- end architecture behav;
- #File configuration.vhd
- -- Per usare l'architettura behav
- configuration config of sistema is
- for struct
- for dec:decoder_c
- use entity work.decoder(behav);
- end for;
- end for;
- end configuration config;
- -- Per usare l'architettura struct
- configuration config of sistema is
- for struct
- for dec:decoder_c
- use entity work.decoder(struct);
- for struct
- for all: nand_port
- use entity work.nand_porta(behav);
- end for;
- for all: inverter
- use entity work.inv_porta(behav);
- end for;
- for all: and_inv_port
- use entity work.and_inv_porta(behav);
- end for;
- end for;
- end for;
- end for;
- end configuration config;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement