Question
Make a counter, count till 255 --> then back,
When count = 0 - 127, write <= '1';
Otherwise write '0'
When count = 128 - 255, read <= '1'
else read <= '0'
Also, add two output ports for read/write and generate address by incrementing the counter.
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
module Counter( Clk, Reset, Rd, Wr);input Clk;
input Reset;
output reg Rd;
output reg Wr;
reg [7:0] counter;...