Altera_Forum
Honored Contributor
16 years agoCombine or concatenate bus signals -Quartus II 10.0 SP1
Hi everyone,
I've been scouring google and these forums for the answer to my problem, but solutions to problems that resemble my own don't seem to work. All I'm trying to do is concatenate (combine?) 4 1-bit signals into a single 4-bit signal, because I have the following module that takes a 4-bit "string" as input:ENTITY dec_7seg IS
PORT(hex_digit : IN STD_LOGIC_VECTOR(3 downto 0);
segment_a, segment_b, segment_c, segment_d, segment_e,
segment_f, segment_g : out std_logic);
END dec_7seg; This is what I have so far in my schematic (bdf) file (notice both bus names are "MSB[0..3]"): You can view the file at img (dot) photobucket.com/albums/v123/TheBlackDragon7/bus_problem (dot) png ... I guess I can't post a picture as it's not my 5th post yet... This is the closest I've gotten in terms of a successful compilation (I think) but I'm getting the following error: Error: Width mismatch in mapping block "hex_digit" of type DEC_7SEG and instance "inst5" for signal "MSB"
I don't understand how there's a width mismatch; they're both 4 bits wide... and if it's worth mentioning, I have two modules like this, the other is "LSB[3..0]" just in case it needs to be the other direction... I've tried everything I can think of, and everything I've found in the internet about it. Anyway I hope someone can point me in the right direction soon, thanks!