- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey all,
I wrote the next code: module increase_duration_1(in, clk, out, reset); parameter LEN=10; input in,clk, reset; output out; wire [LEN-1:0] or_out,path; wire rstn; or U2(or_out[0],path[0],path[1]); assign out=path[LEN-1]; assign path[0]=in; not not1(rstn,reset); genvar i; generate for (i=0; i<LEN-1;i=i+1) begin: shift_reg dff u( .clk(clk), .d(path),.q(path[i+1]),
.clrn(rstn),
.prn(1'b1));
end
endgenerate
generate
for (i=1; i<len-1;i=i+1)
begin: or_connections
or u3 (or_out,or_out[i-1],path[i+1]); end endgenerate endmodule attached photo shows what I get in RTL viewer. why I don't see logic gates? what am I doing wrong? Thanks in advance
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The or gates are ignored, because they don't generate any output signal in your design.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or gates generate or_out[i].
and what is about not gate?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Or gates generate or_out[i]. --- Quote End --- or_out isn't an output of your design. out is the only one, wired to the DFF chain output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much, now I have OR gates.
What is about the NOT gate. his output is connected to CLRN of DFFs and input to RESET. Why I don't see him? Thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- What is about the NOT gate. --- Quote End --- Look sharp, it has been simply absorbed by inverting the signal. But this doesn't mean much, because RTL is just a functional circuit. You have to review the synthesiszed netlist to see how the cicruit is implemented in LEs.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page