ahmad_abdulghany
Advanced Member level 4
- Joined
- Apr 12, 2005
- Messages
- 1,206
- Helped
- 102
- Reputation
- 206
- Reaction score
- 22
- Trophy points
- 1,318
- Location
- San Jose, California, USA
- Activity points
- 11,769
Hi,
I want to make the VHDL code for a simple block that simply map every di-bit input to four-bit output, as follows:
I did it concurrently in this block architecture simply as follows:
Will this be done every clock edge of that block clock?? Notice that i didn't put it inside process..
Do you have comments on the method as well as the code?
Also I have a little question here, how will this code be synthesized on the FPGA?
Thanks in advance,
Ahmad,
I want to make the VHDL code for a simple block that simply map every di-bit input to four-bit output, as follows:
00 >>> 01 01
01 >>> 01 11
11 >>> 11 11
10 >>> 11 01
01 >>> 01 11
11 >>> 11 11
10 >>> 11 01
I did it concurrently in this block architecture simply as follows:
out_s(0) <= '1';
out_s(2) <= '1';
out_s(1) <= in_s(0);
out_s(3) <= in_s(1);
out_s(2) <= '1';
out_s(1) <= in_s(0);
out_s(3) <= in_s(1);
Will this be done every clock edge of that block clock?? Notice that i didn't put it inside process..
Do you have comments on the method as well as the code?
Also I have a little question here, how will this code be synthesized on the FPGA?
Thanks in advance,
Ahmad,