Programming An FPGA Is Joy
When we learn an HDL to program an FPGA by following examples from books and online. We always see ports like 3 downto 0, 7 downto 0. In this way we use same switches or leds again and again which might make a few switches unusable in the near future and remaining switches will be intact. So, in place of 3 downto 0 we can use 5 downto 2,15 downto 12 and so on.
Another point is that we can name ports as sw1, sw2 and so on. But there is difficulty in port map to assign each switch individually. So, we should use array like naming sw[0], sw[1] and so on which helps in port map.
I think that using a wrapper file for mapping ports in a constraint file is far better than directly editing a constraint file.
Comments
Post a Comment