Skip to content

Commit 8d43039

Browse files
Merge pull request #20 from Minchan-Kwon/Edits
Verilog Syntax Issues Resolved
2 parents aa0e6bb + 3f5aeaf commit 8d43039

File tree

9 files changed

+391
-254
lines changed

9 files changed

+391
-254
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
Command: all_clocks
3+
Description:
4+
-Returns a list of all defined clocks
5+
6+
SDC Example:
7+
all_clocks
8+
*/
9+
10+
module all_clocks(
11+
input wire clk1,
12+
input wire clk2,
13+
input wire D,
14+
output reg Q
15+
);
16+
always @(posedge clk1) begin
17+
Q <= D;
18+
end
19+
endmodule

auto_generated/netlist_files/set_clock_uncertainty_netlist.v

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module set_clock_uncertainty(
1919
);
2020
//Simple CDC for inter-clock uncertainty
2121
//Internal data from clk1 to clk2
22-
wire data_internal;
22+
reg data_internal;
2323

2424
always @(posedge clk1) begin
2525
data_internal <= port1;
@@ -41,12 +41,6 @@ module set_clock_uncertainty(
4141
//Instance to create pin inputs (ff_pin/pin1 and ff_pin/pin2)
4242
wire ff_pin_out;
4343
module_pin ff_pin(.clk(clk1), .pin1(clk1), .pin2(clk2), .out(ff_pin_out));
44-
45-
//Dummy logic
46-
always @(posedge clk1) begin
47-
out <= port1 & port2
48-
end
49-
5044
endmodule
5145

5246
//Module defining pins
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
Command: set_disable_timing
3+
Description:
4+
-Disables timing through paths specified by the command
5+
6+
7+
SDC Example:
8+
set_disable_timing -from
9+
set_disable_timing
10+
*/
11+
12+
//Main module
13+
module set_disable_timing(
14+
input wire clk1,
15+
input wire D,
16+
output reg Q
17+
);
18+
always @(posedge clk1) begin
19+
Q <= D;
20+
end
21+
22+
endmodule

auto_generated/netlist_files/set_false_path_netlist.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module inst2(
4646
output reg net2_out
4747
);
4848
always @(posedge clk2) begin
49-
pin2 <= net1_in
50-
net2_out <= ~net1_in
49+
pin2 <= net1_in;
50+
net2_out <= ~net1_in;
5151
end
5252
endmodule

auto_generated/netlist_files/set_max_delay_netlist.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module inst2(
4646
output reg net2_out
4747
);
4848
always @(posedge clk2) begin
49-
pin2 <= net1_in
50-
net2_out <= ~net1_in
49+
pin2 <= net1_in;
50+
net2_out <= ~net1_in;
5151
end
5252
endmodule

auto_generated/netlist_files/set_min_delay_netlist.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module inst2(
4646
output reg net2_out
4747
);
4848
always @(posedge clk2) begin
49-
pin2 <= net1_in
50-
net2_out <= ~net1_in
49+
pin2 <= net1_in;
50+
net2_out <= ~net1_in;
5151
end
5252
endmodule

auto_generated/netlist_files/set_multicycle_path_netlist.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module inst2(
4646
output reg net2_out
4747
);
4848
always @(posedge clk2) begin
49-
pin2 <= net1_in
50-
net2_out <= ~net1_in
49+
pin2 <= net1_in;
50+
net2_out <= ~net1_in;
5151
end
5252
endmodule

auto_generated/netlist_files/set_output_delay_netlist.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module set_output_delay (
1818

1919
//Instance to create 'ref_pin' (ff_ref/clk)
2020
wire ff_ref_q;
21-
FF ff_ref (.clk(src_clk), .D(data_in), .Q(ff_ref_q));
21+
FF_ref ff_ref (.clk(src_clk), .D(data_in), .Q(ff_ref_q));
2222

2323
//Instance to create pin outputs(ff_pin/pin1 and ff_pin/pin2)
2424
wire ff_pin_pin1;

0 commit comments

Comments
 (0)