mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Hard coding values in oh_verify
-Match up with stimulus. You can always construct your own using oh_random
This commit is contained in:
parent
7ba6be5a2f
commit
6b0cb3b24d
@ -83,7 +83,7 @@ module oh_stimulus
|
|||||||
.mask ({(PW){1'b1}}),
|
.mask ({(PW){1'b1}}),
|
||||||
.taps ({(PW){1'b1}}),
|
.taps ({(PW){1'b1}}),
|
||||||
.entaps (1'b0),
|
.entaps (1'b0),
|
||||||
.en (go),
|
.en (stim_valid),
|
||||||
.seed (seed),
|
.seed (seed),
|
||||||
/*AUTOINST*/
|
/*AUTOINST*/
|
||||||
// Inputs
|
// Inputs
|
||||||
|
@ -11,28 +11,25 @@ module oh_verify
|
|||||||
(
|
(
|
||||||
input clk,
|
input clk,
|
||||||
input nreset, //async reset
|
input nreset, //async reset
|
||||||
input en, // enable counter
|
input en, // enable random counter
|
||||||
input entaps, // enable taps input
|
|
||||||
input [N-1:0] taps, // user driven taps
|
|
||||||
input [N-1:0] seed, // seed
|
input [N-1:0] seed, // seed
|
||||||
input [N-1:0] mask, // mask output (1 = active)
|
|
||||||
input [N-1:0] in, // input data
|
input [N-1:0] in, // input data
|
||||||
output [N-1:0] out, // generated random number
|
output [N-1:0] out, // generated random number
|
||||||
output error // difference found
|
output error // difference found
|
||||||
);
|
);
|
||||||
|
|
||||||
// Recreate random number
|
// Recreate random number
|
||||||
oh_random oh_random(/*AUTOINST*/
|
oh_random oh_random(.mask ({(PW){1'b1}}),
|
||||||
|
.taps ({(PW){1'b1}}),
|
||||||
|
.entaps (1'b0),
|
||||||
|
/*AUTOINST*/
|
||||||
// Outputs
|
// Outputs
|
||||||
.out (out[N-1:0]),
|
.out (out[N-1:0]),
|
||||||
// Inputs
|
// Inputs
|
||||||
.clk (clk),
|
.clk (clk),
|
||||||
.nreset (nreset),
|
.nreset (nreset),
|
||||||
.en (en),
|
.en (en),
|
||||||
.entaps (entaps),
|
.seed (seed[N-1:0]));
|
||||||
.taps (taps[N-1:0]),
|
|
||||||
.seed (seed[N-1:0]),
|
|
||||||
.mask (mask[N-1:0]));
|
|
||||||
|
|
||||||
|
|
||||||
// Compare random number to data
|
// Compare random number to data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user