matin-kh
Member level 3
hi every one,
I want to use both edge of the clock but I have problem to develop it.
I write a simple code for the process like below to check it:
it has error, so I changed it to:
i have error in that code too! I write like below:
I have error in thatcode too!
just a process with an edge is without any error. so what should I do?
Regards
Matin
I want to use both edge of the clock but I have problem to develop it.
I write a simple code for the process like below to check it:
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 process(x(3),res) begin if(res='1') then a<='0'; b<='0'; elsif (x(3)'event and x(3)='1') then a<='1'; b<='0'; elsif (x(3)'event and x(3)='0') then a<='0'; b<='1'; end if; end process;
it has error, so I changed it to:
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 process(x(3),res) begin if(res='1') then a<='0'; b<='0'; elsif (x(3)'event) then if(x(3)='1')then a<='1'; b<='0'; elsif (x(3)='0') then a<='0'; b<='1'; end if; end if; end process;
i have error in that code too! I write like below:
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 process(x(3),res) begin if(res='1') then a<='0'; b<='0'; elsif (x(3)'event and x(3)='1') then a<='1'; b<='0'; end if; end process; process(x(3),res) begin if(res='1') then a<='0'; b<='0'; elsif (x(3)'event and x(3)='0') then a<='0'; b<='1'; end if; end process;
I have error in thatcode too!
just a process with an edge is without any error. so what should I do?
Regards
Matin
Last edited by a moderator: