Compare commits
16 Commits
dbc23d80e4
...
lab-08
| Author | SHA1 | Date | |
|---|---|---|---|
|
171a6d1f77
|
|||
|
3835618ef9
|
|||
|
b00650f91b
|
|||
|
a125ae533b
|
|||
|
2d6ec06741
|
|||
|
7e4a63e155
|
|||
|
41ecb62082
|
|||
|
a110f7c042
|
|||
|
7c0645eaa1
|
|||
|
d217faf166
|
|||
|
8dbdebb9ce
|
|||
|
800b80ef85
|
|||
|
585d9713d2
|
|||
|
cdfaa51626
|
|||
|
73aa647c9b
|
|||
|
6fa94cfe59
|
@@ -114,7 +114,6 @@ no_of_pass = no_of_pass + 1;
|
|||||||
result[ridx] = DATA_R1; ridx=ridx+1;
|
result[ridx] = DATA_R1; ridx=ridx+1;
|
||||||
|
|
||||||
// TODO: Read and write from the same address at the same time?
|
// TODO: Read and write from the same address at the same time?
|
||||||
// TODO: Write when WRITE=0 should be tested
|
|
||||||
|
|
||||||
#5 READ=1'b0; WRITE=1'b0; // No op
|
#5 READ=1'b0; WRITE=1'b0; // No op
|
||||||
|
|
||||||
|
|||||||
@@ -42,11 +42,8 @@ output [`DATA_INDEX_LIMIT:0] DATA_R1;
|
|||||||
output [`DATA_INDEX_LIMIT:0] DATA_R2;
|
output [`DATA_INDEX_LIMIT:0] DATA_R2;
|
||||||
|
|
||||||
wire [31:0] Q [31:0];
|
wire [31:0] Q [31:0];
|
||||||
wire [31:0] r_write_sel, r_write;
|
wire [31:0] r_write;
|
||||||
DECODER_5x32 d_write(r_write_sel, ADDR_W);
|
DECODER_5x32 d_write(r_write, ADDR_W);
|
||||||
|
|
||||||
// only write when WRITE=1
|
|
||||||
and write_active [31:0] (r_write, r_write_sel, WRITE);
|
|
||||||
|
|
||||||
REG32 r[31:0] (Q, DATA_W, r_write, CLK, RST);
|
REG32 r[31:0] (Q, DATA_W, r_write, CLK, RST);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user