mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
Fixing unconnected wire bug
This commit is contained in:
parent
2d953d5639
commit
dd811ab417
@ -30,7 +30,7 @@ module oh_lat0 (/*AUTOARG*/
|
||||
|
||||
/* verilator lint_off COMBDLY */
|
||||
// # Real lat0
|
||||
always @ (/*AUTOSENSE*/clk or in_sl)
|
||||
always @ (clk or in_sl)
|
||||
if (~clk)
|
||||
out_real_sh[DW-1:0] <= in_sl[DW-1:0];
|
||||
/* verilator lint_on COMBDLY */
|
||||
|
@ -15,14 +15,13 @@ module oh_lat1 (/*AUTOARG*/
|
||||
// Outputs
|
||||
out_sl,
|
||||
// Inputs
|
||||
in_sh, clk, lat_clk
|
||||
in_sh, clk
|
||||
);
|
||||
|
||||
parameter DW=99;
|
||||
|
||||
input [DW-1:0] in_sh;
|
||||
input clk;
|
||||
input lat_clk;
|
||||
output [DW-1:0] out_sl;
|
||||
|
||||
// # lat_clk is created in the following way:
|
||||
@ -34,8 +33,8 @@ module oh_lat1 (/*AUTOARG*/
|
||||
|
||||
/* verilator lint_off COMBDLY */
|
||||
// # Real lat1
|
||||
always @ (/*AUTOSENSE*/in_sh or lat_clk)
|
||||
if (lat_clk)
|
||||
always @ (clk or in_sh)
|
||||
if (clk)
|
||||
out_real_sl[DW-1:0] <= in_sh[DW-1:0];
|
||||
/* verilator lint_on COMBDLY */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user