Kosyas41
Member level 3
- Joined
- Apr 12, 2016
- Messages
- 62
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 502
Thanks for reply,but Im still dont understand this problem.My code looks like
and the same for another port. Compiler didnt show me any problems.but you told that I missing we_a or we_b.is it right now?
- - - Updated - - -
after when my project compiled.Im open Modelsim and got the following screens.I want to check how my project works,but as I can see nothing((
Code:
shared variable ram : memory_t;
begin
process(clk)
begin
if(rising_edge(clk)) then -- Port A
if(we_a = '1') then
ram(addr_a) := data_a;
-- Read-during-write on the same port returns NEW data
case addr_a is
when 0 =>
q_a <= "10000000";
when 16 =>
q_a <= "10000000";
when others =>
q_a <="00000000";
end case;
q_a <= data_a;
else
-- Read-during-write on the mixed port returns OLD data
case addr_a is
when 0 =>
q_a <= "10000000";
when 16 =>
q_a <= "10000000";
when others =>
q_a <="00000000";
end case;
q_a <= ram(addr_a);
end if;
end if;
end process;
- - - Updated - - -
after when my project compiled.Im open Modelsim and got the following screens.I want to check how my project works,but as I can see nothing((