1
0
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:
aolofsson 2021-09-23 09:58:08 -04:00
parent 88dd3be734
commit eb16df1e3c
5 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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)
);