Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17257 Discussions

Technology Map Viewer showing wrong code for simple D latch?

Altera_Forum
Honored Contributor II
1,070 Views

Sorry, found what I had missed: There *was* a gnarly inverter on the output of the latch, should have picked up on the Qa~0 name. Would have deleted the post again but that doesn't seem to be an option.. 

 

Hi, not sure where to report this, so I figured I'd go with the Quartus forum. I'm simply walking through the DE1 labs and noticed that the circuit drawn by the Technology Map Viewer (Post-Mapping) looks wrong for the following piece of code: 

 

module D_latch(clk,D,Q); input clk, D; output Q; wire S, R, S_g, R_g, Qa, Qb; assign R = ~D; assign S_g = ~(D & clk); assign R_g = ~(R & clk); assign Qa = ~(S_g & Qb); assign Qb = ~(R_g & Qa); assign Q = Qa; endmodule I get the attached diagram, no inverters outside - what's the inverter doing on the upper and gate? Synthesized design works as expected, RTL Viewer looks good, too. I must have missed something, but what?
0 Kudos
0 Replies
Reply