mirror of
https://github.com/aolofsson/oh.git
synced 2025-02-07 06:44:09 +08:00
Fixing wait circuit in dut (randome wait gen was removed from top)
This commit is contained in:
parent
fbcf58d642
commit
4637f90546
@ -313,15 +313,13 @@ module dut(/*AUTOARG*/
|
|||||||
wire emem_wait;
|
wire emem_wait;
|
||||||
|
|
||||||
//"Arbitration" between read/write transaction
|
//"Arbitration" between read/write transaction
|
||||||
assign emem_access = ~elink1_rxwr_wait & (elink1_rxwr_access | elink1_rxrd_access);
|
assign emem_access = elink1_rxwr_access | elink1_rxrd_access;
|
||||||
|
|
||||||
assign emem_packet[PW-1:0] = elink1_rxwr_access ? elink1_rxwr_packet[PW-1:0]:
|
assign emem_packet[PW-1:0] = elink1_rxwr_access ? elink1_rxwr_packet[PW-1:0]:
|
||||||
elink1_rxrd_packet[PW-1:0];
|
elink1_rxrd_packet[PW-1:0];
|
||||||
|
|
||||||
assign elink1_rxrd_wait = emem_wait |
|
assign elink1_rxrd_wait = emem_wait | elink1_rxwr_access;
|
||||||
elink1_rxwr_access |
|
assign elink1_rxwr_wait = emem_wait;
|
||||||
elink1_rxwr_wait;
|
|
||||||
|
|
||||||
|
|
||||||
/*ememory AUTO_TEMPLATE (
|
/*ememory AUTO_TEMPLATE (
|
||||||
// Outputs
|
// Outputs
|
||||||
@ -335,27 +333,16 @@ module dut(/*AUTOARG*/
|
|||||||
.clk (clk),
|
.clk (clk),
|
||||||
.wait_out (emem_wait),
|
.wait_out (emem_wait),
|
||||||
.coreid (12'h0),
|
.coreid (12'h0),
|
||||||
.access_in (emem_access), // Templated
|
.access_in (emem_access),
|
||||||
/*AUTOINST*/
|
/*AUTOINST*/
|
||||||
// Outputs
|
// Outputs
|
||||||
.access_out (elink1_txrr_access), // Templated
|
.access_out (elink1_txrr_access), // Templated
|
||||||
.packet_out (elink1_txrr_packet[PW-1:0]), // Templated
|
.packet_out (elink1_txrr_packet[PW-1:0]), // Templated
|
||||||
// Inputs
|
// Inputs
|
||||||
.nreset (nreset),
|
.nreset (nreset),
|
||||||
|
|
||||||
.packet_in (emem_packet[PW-1:0])); // Templated
|
.packet_in (emem_packet[PW-1:0])); // Templated
|
||||||
|
|
||||||
|
|
||||||
//Write wait circuit
|
|
||||||
reg [7:0] wait_counter;
|
|
||||||
always @ (posedge clk or negedge nreset)
|
|
||||||
if(!nreset)
|
|
||||||
wait_counter[7:0] <= 'b0;
|
|
||||||
else
|
|
||||||
wait_counter[7:0] <= wait_counter+1'b1;
|
|
||||||
|
|
||||||
assign elink1_rxwr_wait = (|wait_counter[4:0]);//(|wait_counter[3:0]);//1'b0;
|
|
||||||
|
|
||||||
endmodule // dv_elink
|
endmodule // dv_elink
|
||||||
// Local Variables:
|
// Local Variables:
|
||||||
// verilog-library-directories:("." "../hdl" "../../emesh/dv" "../../emesh/hdl")
|
// verilog-library-directories:("." "../hdl" "../../emesh/dv" "../../emesh/hdl")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user