> For the complete documentation index, see [llms.txt](https://docs.aic-eec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aic-eec.com/fpga-design/basic-fpga/untitled.md).

# LAB2: Hardware Description Language Work Flow

Syntax Reference : <http://www.iitg.ac.in/hemangee/cs224_2020/verilog2.pdf>

### STEP 2.1 : Synthesizable code&#x20;

&#x20;       ส่วนแรกจะเป็นการสร้างฟังก์ชันการทำงานในการใช้งานจริง ซึ่งภายในจะประกอบด้วยพอร์ตที่ใช้ รวมถึงการกำหนดฟังก์ชันการทำงาน ในการทดลองนี้จะนำความรู้พื้นฐานตรรกศาสตร์ เช่น AND ,OR และ Not มาสร้าง Logic gate เพื่อให้ใช้งานจริงได้

1. สร้าง synthesizable verilog เพื่อที่จะเขียนโมดูลที่ใช้ในการทำงานเลือก Project manager → add source ที่อยู่ด้านขวาหลังจากขึ้นหน้า add source ให้เลือก design source

![](https://paper-attachments.dropbox.com/s_D2B2D05BDFD5FE101431EC9DD3A565A58C8AEEC7D82625A85FAA79EBDB2CD993_1600930882279_Screenshot+from+2020-09-24+14-00-19.png)

2\. เลือก create file → ตั้งชื่อ lab00\_par1\_and\_gate

![](https://paper-attachments.dropbox.com/s_D2B2D05BDFD5FE101431EC9DD3A565A58C8AEEC7D82625A85FAA79EBDB2CD993_1600930954967_Screenshot+from+2020-09-24+14-02-05.png)

3\. หลังจากทำตามผู้สอน แล้วในส่วนแรกจะได้ผลลัพท์ดังนี้

![](https://paper-attachments.dropbox.com/s_D2B2D05BDFD5FE101431EC9DD3A565A58C8AEEC7D82625A85FAA79EBDB2CD993_1600932332343_Screenshot+from+2020-09-24+14-23-32.png)

**`หมายเหตุ`** คำสั่งที่ทำตามต้องส่งด้วย


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aic-eec.com/fpga-design/basic-fpga/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
