mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Fixing syntax errors found by surelog
This commit is contained in:
parent
88dd3be734
commit
eb16df1e3c
@ -9,12 +9,12 @@ module oh_and2 #(parameter N = 1, // block width
|
||||
parameter SYN = "TRUE", // synthesizable
|
||||
parameter TYPE = "DEFAULT" // implementation type
|
||||
)
|
||||
#(parameter N = 1 ) // array width
|
||||
(
|
||||
input [N-1:0] a,
|
||||
input [N-1:0] b,
|
||||
output [N-1:0] z
|
||||
);
|
||||
|
||||
generate
|
||||
if(SYN == "TRUE") begin
|
||||
assign z = a & b;
|
||||
|
@ -5,10 +5,9 @@
|
||||
//# License: MIT (see LICENSE file in OH! repository) #
|
||||
//#############################################################################
|
||||
|
||||
module ohr_reg0 #(parameter N = 1 // data width
|
||||
)
|
||||
( input nreset, //async active low reset
|
||||
input clk, // clk, latch when clk=0
|
||||
module ohr_reg0 #(parameter N = 1) // data width
|
||||
( input nreset, //async active low reset
|
||||
input clk, // clk, latch when clk=0
|
||||
input [N-1:0] in, // input data
|
||||
output [N-1:0] out // output data (stable/latched when clk=1)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user