1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00

Removed autoinst for dut.v

-Had to remove the dummy dut.v to make scripts and links cleaner
This commit is contained in:
Andreas Olofsson 2016-03-08 19:36:44 -05:00
parent 450f398065
commit 6e22772420

View File

@ -9,19 +9,21 @@ module dv_top();
//local variables
integer r;
wire [IDW-1:0] dv_coreid;
wire [N*N-1:0] vdd;
wire vss;
wire clkout;
wire dut_active;
wire [N-1:0] dut_wait;
wire [N-1:0] dut_access;
wire [N*PW-1:0] dut_packet;
/*AUTOWIRE*/
// Beginning of automatic wires (for undeclared instantiated-module outputs)
wire clk1; // From dv_ctrl of dv_ctrl.v
wire clk2; // From dv_ctrl of dv_ctrl.v
wire clkout; // From dut of dut.v
wire [N-1:0] dut_access; // From dut of dut.v
wire dut_active; // From dut of dut.v
wire [N*PW-1:0] dut_packet; // From dut of dut.v
wire [N-1:0] dut_wait; // From dut of dut.v
wire nreset; // From dv_ctrl of dv_ctrl.v
wire start; // From dv_ctrl of dv_ctrl.v
wire [N-1:0] stim_access; // From dv_driver of dv_driver.v
@ -59,33 +61,25 @@ module dv_top();
// DEVICE UNDER TEST
// -create your own module named dut to include at compile time
//#############################################################
/*dut AUTO_TEMPLATE(
.\(.*\)_out (dut_\1[]),
.\(.*\)_in (stim_\1[]),
);
*/
dut #(.PW(PW),
.N(N)
)
dut (/*AUTOINST*/
// Outputs
.dut_active (dut_active),
.clkout (clkout),
.access_out (dut_access[N-1:0]), // Templated
.packet_out (dut_packet[N*PW-1:0]), // Templated
.wait_out (dut_wait[N-1:0]), // Templated
.N(N)
)
dut (// Outputs
.dut_active (dut_active),
.clkout (clkout),
.wait_out (dut_wait[N-1:0]),
.access_out (dut_access[N-1:0]),
.packet_out (dut_packet[N*PW-1:0]),
// Inputs
.clk1 (clk1),
.clk2 (clk2),
.nreset (nreset),
.vdd (vdd[N*N-1:0]),
.vss (vss),
.access_in (stim_access[N-1:0]), // Templated
.packet_in (stim_packet[N*PW-1:0]), // Templated
.wait_in (stim_wait[N-1:0])); // Templated
.clk1 (clk1),
.clk2 (clk2),
.nreset (nreset),
.vdd (vdd[N*N-1:0]),
.vss (vss),
.access_in (stim_access[N-1:0]),
.packet_in (stim_packet[N*PW-1:0]),
.wait_in (stim_wait[N-1:0]));
//##############################
//# STIMULUS + MONITORS