AshkanYJM
Junior Member level 3
- Joined
- Aug 3, 2014
- Messages
- 25
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 262
The last link worked great, much better than the BRAM PDF I read in CoreGen.
Now I have chosen to use the simple dual port ram. two ports, 1 for in,1 for out, 2 clocks. exactly what I needed.
Now guys, do you see this approach appropriate according to what has been said till now ? it's not the exact code just the abstract.
Now I have chosen to use the simple dual port ram. two ports, 1 for in,1 for out, 2 clocks. exactly what I needed.
Now guys, do you see this approach appropriate according to what has been said till now ? it's not the exact code just the abstract.
Code:
reg [11:0] B;
reg [11:0] A;
reg [11:0] C;
input [11:0] Time_Delay;
integer k;
always@(posedge clka)//for the input port A
begin
if(addra==12'd4096)
addra=0;
else
addra=addra+1;
end
end
end
// for echo
always@(posedge clkb)//the output port B
begin
addrb=0;
B<=doutb;
repeat(1)
addrb = Time_Delay;
end
//for chorus
always@(posedge clkb)
begin
addrb=0;
A<=doutb;
repeat(1)
for (k=1;k<=801;k=k+1)
case (k)
1: addrb=12'd1600;
2: addrb=12'd1604;
....
endcase
end
B<=addrb;
B=B>>1;
C=A+B;
end
Last edited: