mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
Removing one level on redirection on clockor
- It was getting annoying....
This commit is contained in:
parent
128c4015b3
commit
a306aa5178
@ -16,8 +16,24 @@ module oh_clockor #(parameter N = 1) // number of clock inputs
|
||||
generate
|
||||
if(ASIC)
|
||||
begin : asic
|
||||
asic_clockor #(.N(N)) ior (.clkin(clkin[N-1:0]),
|
||||
.clkout(clkout));
|
||||
if(N==4)
|
||||
begin : g0
|
||||
asic_clockor4 ior (/*AUTOINST*/
|
||||
// Outputs
|
||||
.clkout (clkout),
|
||||
// Inputs
|
||||
.clkin (clkin[3:0]));
|
||||
|
||||
end // block: g0
|
||||
else if(N==2)
|
||||
begin : g0
|
||||
asic_clockor2 ior (/*AUTOINST*/
|
||||
// Outputs
|
||||
.clkout (clkout),
|
||||
// Inputs
|
||||
.clkin (clkin[1:0]));
|
||||
|
||||
end // block: g0
|
||||
end
|
||||
else
|
||||
begin : generic
|
||||
|
Loading…
x
Reference in New Issue
Block a user